injected script can throw

This commit is contained in:
gorhill 2015-05-16 16:31:44 -04:00
parent 11f349f54a
commit 334855dcf7
2 changed files with 8 additions and 4 deletions

View File

@ -284,8 +284,12 @@ const contentObserver = {
let lss = Services.scriptloader.loadSubScript;
let sandbox = this.initContentScripts(win, true);
try {
lss(this.contentBaseURI + 'vapi-client.js', sandbox);
lss(this.contentBaseURI + 'contentscript-start.js', sandbox);
} catch (ex) {
return;
}
let docReady = (e) => {
let doc = e.target;