Bug 497098: add imageURL getter to nsContextMenu for extension compat, r=gavin

This commit is contained in:
Mark Finkle 2009-06-09 21:59:18 -04:00
parent 369698b453
commit 71094b75ef

View File

@ -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 "";
}
};