mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Help > Report Web Forgery..." does nothing; "this.appContext is null. b=420667 r=gavin a=blocking-firefox3 (beltzner)
This commit is contained in:
parent
44eeab6d8d
commit
a5205cae6e
@ -38,13 +38,13 @@ var safebrowsing = {
|
||||
appContext: null,
|
||||
|
||||
startup: function() {
|
||||
setTimeout(safebrowsing.deferredStartup, 2000);
|
||||
setTimeout(function() {
|
||||
safebrowsing.deferredStartup();
|
||||
}, 2000);
|
||||
window.removeEventListener("load", safebrowsing.startup, false);
|
||||
},
|
||||
|
||||
deferredStartup: function() {
|
||||
this.appContext = Cc["@mozilla.org/safebrowsing/application;1"].
|
||||
getService().wrappedJSObject;
|
||||
this.appContext.initialize();
|
||||
},
|
||||
|
||||
@ -56,6 +56,15 @@ var safebrowsing = {
|
||||
else
|
||||
broadcaster.disabled = true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Lazy init getter for appContext
|
||||
*/
|
||||
get appContext() {
|
||||
delete this.appContext;
|
||||
return this.appContext = Cc["@mozilla.org/safebrowsing/application;1"]
|
||||
.getService().wrappedJSObject;
|
||||
},
|
||||
|
||||
/**
|
||||
* Used to report a phishing page or a false positive
|
||||
|
Loading…
Reference in New Issue
Block a user