mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1287007 - Remove dead code r=billm
MozReview-Commit-ID: LtuKY5DjB68 --HG-- extra : rebase_source : d79d45cef78822977766f67f2172239d523a7182
This commit is contained in:
parent
0baf41ff20
commit
2b7962648c
@ -190,9 +190,7 @@ class ExtensionContext extends BaseContext {
|
||||
apiManager.global.initializeBackgroundPage(contentWindow);
|
||||
}
|
||||
|
||||
if (this.externallyVisible) {
|
||||
this.extension.views.add(this);
|
||||
}
|
||||
this.extension.views.add(this);
|
||||
}
|
||||
|
||||
get cloneScope() {
|
||||
@ -210,10 +208,6 @@ class ExtensionContext extends BaseContext {
|
||||
}
|
||||
}
|
||||
|
||||
get externallyVisible() {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Called when the extension shuts down.
|
||||
shutdown() {
|
||||
this.unload();
|
||||
@ -231,10 +225,7 @@ class ExtensionContext extends BaseContext {
|
||||
|
||||
super.unload();
|
||||
this.childManager.close();
|
||||
|
||||
if (this.externallyVisible) {
|
||||
this.extension.views.delete(this);
|
||||
}
|
||||
this.extension.views.delete(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,10 +26,8 @@ function BackgroundPage(options, extension) {
|
||||
this.extension = extension;
|
||||
this.page = options.page || null;
|
||||
this.isGenerated = !!options.scripts;
|
||||
this.contentWindow = null;
|
||||
this.windowlessBrowser = null;
|
||||
this.webNav = null;
|
||||
this.context = null;
|
||||
}
|
||||
|
||||
BackgroundPage.prototype = {
|
||||
@ -91,10 +89,9 @@ BackgroundPage.prototype = {
|
||||
});
|
||||
});
|
||||
|
||||
// TODO(robwu): This is not webext-oop compatible.
|
||||
this.webNav = browser.docShell.QueryInterface(Ci.nsIWebNavigation);
|
||||
|
||||
let window = this.webNav.document.defaultView;
|
||||
this.contentWindow = window;
|
||||
|
||||
|
||||
// Set the add-on's main debugger global, for use in the debugger
|
||||
|
Loading…
Reference in New Issue
Block a user