bug 292774 - view image context menu allows chrome access, r=dveditz, sr=jst, a=dveditz

This commit is contained in:
mconnor%steelgryphon.com 2005-06-16 08:34:50 +00:00
Родитель 5b1fc5f58e
Коммит 4db0d7b738
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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