Bug 687292 - gContextMenu.menu is undefined r=neil
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sun, 18 Sep 2011 00:20:28 +0100
changeset 9194 8bc77d471b32f082e08df026811b2b23d3f736db
parent 9193 31a247f6426c2ee4fc894d7ada338c71b9ee9f7d
child 9195 d95685da754f9fd17562462facf86c66c34a2f45
push id230
push userbugzilla@standard8.plus.com
push dateTue, 08 Nov 2011 22:55:24 +0000
treeherdercomm-beta@63dad5648415 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil
bugs687292
Bug 687292 - gContextMenu.menu is undefined r=neil
suite/browser/nsBrowserStatusHandler.js
--- a/suite/browser/nsBrowserStatusHandler.js
+++ b/suite/browser/nsBrowserStatusHandler.js
@@ -299,23 +299,23 @@ nsBrowserStatusHandler.prototype =
     }
   },
 
   onLocationChange : function(aWebProgress, aRequest, aLocation)
   {
     if (gContextMenu) {
       // Optimise for the common case
       if (aWebProgress.DOMWindow == content)
-        gContextMenu.menu.hidePopup();
+        document.getElementById("contentAreaContextMenu").hidePopup();
       else {
         for (var contextWindow = gContextMenu.target.ownerDocument.defaultView;
              contextWindow != contextWindow.parent;
              contextWindow = contextWindow.parent) {
           if (contextWindow == aWebProgress.DOMWindow) {
-            gContextMenu.menu.hidePopup();
+            document.getElementById("contentAreaContextMenu").hidePopup();
             break;
           }
         }
       }
     }
 
    if (document.tooltipNode) {
      // Optimise for the common case