From f18d2c684143929bcfee7b1e80d4dee28432e778 Mon Sep 17 00:00:00 2001 From: "martijn.martijn%gmail.com" Date: Mon, 23 Jul 2007 22:09:25 +0000 Subject: [PATCH] Backing out the patch for bug 386729 again to see if it fixes the rlk increase --- browser/base/content/nsContextMenu.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 9269442c2a5..604ca518a39 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -559,10 +559,7 @@ nsContextMenu.prototype = { .getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIEditingSession); - if (editingSession.windowIsEditable(win) && - this.getComputedStyle(this.target, "-moz-user-modify") == "read-write") { - isEditable = true; - } + isEditable = editingSession.windowIsEditable(win); } catch(ex) { // If someone built with composer disabled, we can't get an editing session. @@ -590,9 +587,9 @@ nsContextMenu.prototype = { // Returns the computed style attribute for the given element. getComputedStyle: function(aElem, aProp) { - return aElem.ownerDocument - .defaultView - .getComputedStyle(aElem, "").getPropertyValue(aProp); + return elem.ownerDocument + .defaultView + .getComputedStyle(aElem, "").getPropertyValue(prop); }, // Returns a "url"-type computed style attribute value, with the url() stripped.