Bug 359471 - Disable auth, plugins and subframes in the phishing provider EULA iframe's docshell, patch by Ryan Flint <ryan@ryanflint.com>, r=mano
git-svn-id: svn://10.0.0.236/trunk@224846 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0a84a92c86
commit
7e717f89ef
@ -92,9 +92,15 @@ var gPhishDialog = {
|
||||
|
||||
// add progress listener to enable OK, radios when page loads
|
||||
var frame = document.getElementById("phishPolicyFrame");
|
||||
var webProgress = frame.docShell
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIWebProgress);
|
||||
var docShell = frame.docShell;
|
||||
|
||||
// disable unnecessary features
|
||||
docShell.allowAuth = false;
|
||||
docShell.allowPlugins = false;
|
||||
docShell.allowSubframes = false;
|
||||
|
||||
var webProgress = docShell.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIWebProgress);
|
||||
webProgress.addProgressListener(this._progressListener,
|
||||
Ci.nsIWebProgress.NOTIFY_STATE_WINDOW);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user