Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1083053 - [Midori] The screenshot preview window still overlays a…
Browse files Browse the repository at this point in the history
…n app when switching apps
  • Loading branch information
Luke Chang authored and rvandermeulen committed Nov 11, 2014
1 parent 6c19cb0 commit 3cada9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions apps/gallery/js/open.js
Expand Up @@ -46,6 +46,13 @@ navigator.mozL10n.once(function() {
frame.container.addEventListener('swipe', handleSwipe);

window.addEventListener('resize', frame.resize.bind(frame));
if (activityData.exitWhenHidden) {
window.addEventListener('visibilitychange', function() {
if (document.hidden) {
done();
}
});
}

// Report errors if we're passed an invalid image
frame.onerror = function invalid() {
Expand Down
3 changes: 2 additions & 1 deletion apps/system/js/screenshot.js
Expand Up @@ -137,7 +137,8 @@
data: {
type: imgblob.type,
filename: filename,
blob: imgblob
blob: imgblob,
exitWhenHidden: true
}
});
};
Expand Down

0 comments on commit 3cada9a

Please sign in to comment.