bug 292774 - view image context menu allows chrome access, patch by neil, r=bz, sr+a=dveditz

This commit is contained in:
mconnor%steelgryphon.com 2006-07-29 05:44:11 +00:00
parent e36783fbb9
commit ab88abd5db

View File

@ -585,10 +585,12 @@ nsContextMenu.prototype = {
},
// Change current window to the URL of the image.
viewImage : function () {
urlSecurityCheck( this.imageURL, document )
openTopWin( this.imageURL );
},
// Change current window to the URL of the background image.
viewBGImage : function () {
urlSecurityCheck( this.bgImageURL, document )
openTopWin( this.bgImageURL );
},
setWallpaper: function() {