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:
Julian Descottes 2019-06-28 10:17:29 +00:00
parent 9897a987da
commit 3f24e7c69e

View File

@ -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();
}