Bug 714602 - Use defaultPrevented instead of the deprecated getPreventDefault() [r=mbrubeck]
authorMark Finkle <mfinkle@mozilla.com>
Tue, 03 Jan 2012 13:57:36 -0500
changeset 84925 20ec67ea2f4a6d2bf9678a3e34ae249591486bed
parent 84924 e8589944b67174f3b828954eab1da8bd2604cc0c
child 84926 35b3c5ac6e8f695cef7abe1e6427dfb8877aabfe
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs714602
milestone12.0a1
Bug 714602 - Use defaultPrevented instead of the deprecated getPreventDefault() [r=mbrubeck]
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1004,17 +1004,17 @@ var NativeWindow = {
                              0, aX, aY, aX, aY, false, false, false, false,
                              0, null);
         rootElement.ownerDocument.defaultView.addEventListener("contextmenu", this, false);
         rootElement.dispatchEvent(event);
       }
     },
 
     _show: function(aEvent) {
-      if (aEvent.getPreventDefault())
+      if (aEvent.defaultPrevented)
         return;
 
       let popupNode = aEvent.originalTarget;
       let title = "";
       if ((popupNode instanceof Ci.nsIDOMHTMLAnchorElement && popupNode.href) ||
               (popupNode instanceof Ci.nsIDOMHTMLAreaElement && popupNode.href)) {
         title = this._getLinkURL(popupNode);
       } else if (popupNode instanceof Ci.nsIImageLoadingContent && popupNode.currentURI) {