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