зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
45f5a763d7
Коммит
24ee7b3b4a
|
@ -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 ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче