mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 340866: Anti-phishing only works on the last opened window (fails otherwise)
r=brettw,a=bryner
This commit is contained in:
parent
3f649fb148
commit
56d35d22bc
@ -120,7 +120,7 @@ function PROT_PhishingWarden() {
|
||||
|
||||
// hook up our browser listener
|
||||
this.progressListener_ = Cc["@mozilla.org/browser/safebrowsing/navstartlistener;1"]
|
||||
.getService(Ci.nsIDocNavStartProgressListener);
|
||||
.createInstance(Ci.nsIDocNavStartProgressListener);
|
||||
this.progressListener_.callback = this;
|
||||
this.progressListener_.enabled = this.phishWardenEnabled_;
|
||||
// ms to wait after a request has started before firing JS callback
|
||||
@ -436,7 +436,10 @@ PROT_PhishingWarden.prototype.maybeLocateProblem_ = function(request) {
|
||||
* test URLs
|
||||
*/
|
||||
PROT_PhishingWarden.prototype.isBlacklistTestURL = function(url) {
|
||||
return kTestUrls[url];
|
||||
// Explicitly check for URL so we don't get JS warnings in strict mode.
|
||||
if (kTestUrls[url])
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user