mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1543710 - Remove contextmenu event handler from webext-panels.js r=rpl
No longer necessary after Bug 1505909. Depends on D33284 Differential Revision: https://phabricator.services.mozilla.com/D34627 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
9897a987da
commit
3f24e7c69e
@ -56,11 +56,6 @@ function getBrowser(panel) {
|
||||
/* fission */ false,
|
||||
E10SUtils.EXTENSION_REMOTE_TYPE));
|
||||
readyPromise = promiseEvent(browser, "XULFrameLoaderCreated");
|
||||
|
||||
window.messageManager.addMessageListener("contextmenu", openContextMenu);
|
||||
window.addEventListener("unload", () => {
|
||||
window.messageManager.removeMessageListener("contextmenu", openContextMenu);
|
||||
}, {once: true});
|
||||
} else {
|
||||
readyPromise = Promise.resolve();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user