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

Commit

Permalink
Merge pull request #25217 from lissyx/bug1083729
Browse files Browse the repository at this point in the history
Bug 1083729 - Avoid callscreen window leakage r=etienne_s
  • Loading branch information
lissyx committed Oct 17, 2014
2 parents 2e38469 + 549c754 commit 43a9e1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/callscreen/js/index.js
Expand Up @@ -11,6 +11,9 @@ window.addEventListener('load', function callSetup(evt) {
KeypadManager.init(true);
});

// Bug 1083729: add an empty unload event listener to circumvent bug 1078448.
window.addEventListener('unload', function unloadCallScreen(evt) { });

// Don't keep an audio channel open when the callscreen is not displayed
document.addEventListener('visibilitychange', function visibilitychanged() {
if (document.hidden) {
Expand Down

0 comments on commit 43a9e1d

Please sign in to comment.