Skip to content
Permalink
Browse files

Handle navigator:blank window in Firefox 60+

  • Loading branch information...
Infocatcher committed Mar 20, 2018
1 parent 7023a96 commit fb8d47219473d58e3a34bf9c745458f134459520
Showing with 6 additions and 0 deletions.
  1. +6 −0 bootstrap.js
@@ -47,6 +47,12 @@ var privateTab = {

for(var window of this.windows)
this.initWindow(window, reason);
if(reason == APP_STARTUP) {
// https://bugzilla.mozilla.org/show_bug.cgi?id=1336227
// browser.startup.blankWindow = true, Firefox 60+
var blankWindow = Services.wm.getMostRecentWindow("navigator:blank");
blankWindow && this.observe(blankWindow, "domwindowopened");
}
Services.ww.registerNotification(this);
if(this.oldSessionStore)
Services.obs.addObserver(this, "sessionstore-state-write", false);

0 comments on commit fb8d472

Please sign in to comment.
You can’t perform that action at this time.