Skip to content

Commit

Permalink
Workaround for empty properties window with disabled e10s
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Feb 10, 2018
1 parent 986de6b commit 6f96072
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion properties.js
Expand Up @@ -44,7 +44,19 @@ function onPrefChanged(key, newVal) {
}

browser.windows.getCurrent().then(function(win) {
if(win.type == "popup") addEventListener("beforeunload", function() { // Note: can't save on unload
if(win.type != "popup")
return;

// Workaround for empty window with disabled e10s mode
browser.windows.update(win.id, {
height: win.height + 1
}).then(function() {
browser.windows.update(win.id, {
height: win.height
});
});

addEventListener("beforeunload", function() { // Note: can't save on unload
browser.storage.local.set({
windowPosition: {
x: screenX,
Expand Down

0 comments on commit 6f96072

Please sign in to comment.