Bug 1385528 - Fix tools_menu in newly opened windows r=kmag
authorTomislav Jovanovic <tomica@gmail.com>
Sat, 29 Jul 2017 20:51:47 +0200
changeset 420545 33a4c8cd16c566c2b6347f293e5984954abfa007
parent 420544 bf1af6cd743df11f6e567c1f22f66e5d34ec82de
child 420546 a15f665d03f4d868cadd28d52bb64713e1d583fb
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1385528
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1385528 - Fix tools_menu in newly opened windows r=kmag MozReview-Commit-ID: B9gTIzYDVdk
browser/components/extensions/ext-menus.js
--- a/browser/components/extensions/ext-menus.js
+++ b/browser/components/extensions/ext-menus.js
@@ -584,17 +584,17 @@ const menuTracker = {
   },
 
   observe(subject, topic, data) {
     subject = subject.wrappedJSObject;
     gMenuBuilder.build(subject);
   },
 
   onWindowOpen(window) {
-    for (const id of this.menuIds) {
+    for (const id of menuTracker.menuIds) {
       const menu = window.document.getElementById(id);
       menu.addEventListener("popupshowing", menuTracker);
     }
   },
 
   handleEvent(event) {
     const menu = event.target;
     if (menu.id === "menu_ToolsPopup") {