Backing out the patch for bug 386729 again to see if it fixes the rlk increase

This commit is contained in:
2007-07-23 15:09:25 -07:00
parent 0c9c38e8ee
commit 6f3b6b10c4

View File

@@ -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.