mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Checking in the patch for bug 386729 again, it's not the cause for the rlk increase
This commit is contained in:
parent
67d4cd30c1
commit
1cadfdaae9
@ -559,7 +559,10 @@ nsContextMenu.prototype = {
|
||||
.getInterface(Ci.nsIWebNavigation)
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIEditingSession);
|
||||
isEditable = editingSession.windowIsEditable(win);
|
||||
if (editingSession.windowIsEditable(win) &&
|
||||
this.getComputedStyle(this.target, "-moz-user-modify") == "read-write") {
|
||||
isEditable = true;
|
||||
}
|
||||
}
|
||||
catch(ex) {
|
||||
// If someone built with composer disabled, we can't get an editing session.
|
||||
@ -587,9 +590,9 @@ nsContextMenu.prototype = {
|
||||
|
||||
// Returns the computed style attribute for the given element.
|
||||
getComputedStyle: function(aElem, aProp) {
|
||||
return elem.ownerDocument
|
||||
.defaultView
|
||||
.getComputedStyle(aElem, "").getPropertyValue(prop);
|
||||
return aElem.ownerDocument
|
||||
.defaultView
|
||||
.getComputedStyle(aElem, "").getPropertyValue(aProp);
|
||||
},
|
||||
|
||||
// Returns a "url"-type computed style attribute value, with the url() stripped.
|
||||
|
Loading…
Reference in New Issue
Block a user