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:
philringnalda%gmail.com 2007-04-22 01:55:13 +00:00
parent 0a84a92c86
commit 7e717f89ef

View File

@ -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);