[Bug 1331081] omit addEventListener/removeEventListener's third parameter when it's false

Upstream changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1331081; this patch also covers one file, `pdf_print_service.js`, that's not present in mozilla-central.

Fixes 7962.
This commit is contained in:
Jonas Jenwald 2017-01-17 17:45:46 +01:00
parent c1703e977d
commit 70c1a6b120
4 changed files with 12 additions and 13 deletions

View file

@ -320,8 +320,8 @@
event.stopImmediatePropagation();
}
};
window.addEventListener('beforeprint', stopPropagationIfNeeded, false);
window.addEventListener('afterprint', stopPropagationIfNeeded, false);
window.addEventListener('beforeprint', stopPropagationIfNeeded);
window.addEventListener('afterprint', stopPropagationIfNeeded);
}
var overlayPromise;