mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 497098: add imageURL getter to nsContextMenu for extension compat, r=gavin
This commit is contained in:
parent
369698b453
commit
71094b75ef
@ -1402,5 +1402,11 @@ nsContextMenu.prototype = {
|
||||
var clipboard = Cc["@mozilla.org/widget/clipboardhelper;1"].
|
||||
getService(Ci.nsIClipboardHelper);
|
||||
clipboard.copyString(this.mediaURL);
|
||||
},
|
||||
|
||||
get imageURL() {
|
||||
if (this.onImage)
|
||||
return this.mediaURL;
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user