Bug 349757: fix "Show only this frame" which was broken because of a simple omission from the patch for bug 335334, r=obvious_fix

This commit is contained in:
gavin%gavinsharp.com 2006-08-22 22:58:23 +00:00
Родитель b52c0767f1
Коммит fb31e7f374
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -4810,12 +4810,14 @@ nsContextMenu.prototype = {
},
// Open clicked-in frame in the same window.
showOnlyThisFrame : function () {
try {
var frameURL = this.target.ownerDocument.location.href;
urlSecurityCheck(frameURL, gBrowser.currentURI.spec,
nsIScriptSecMan.DISALLOW_SCRIPT);
window.loadURI(frameURL, null, null, false);
} catch(e) {}
const nsIScriptSecMan = Components.interfaces.nsIScriptSecurityManager;
var frameURL = this.target.ownerDocument.location.href;
try {
urlSecurityCheck(frameURL, gBrowser.currentURI.spec,
nsIScriptSecMan.DISALLOW_SCRIPT);
window.loadURI(frameURL, null, null, false);
} catch(e) {}
},
// View Partial Source
viewPartialSource : function ( context ) {