Index: lib/filterComposer.js |
diff --git a/lib/filterComposer.js b/lib/filterComposer.js |
index 304aac40647e3144042119453262a2d5ed807d0e..fe6d51eb9b0bb32f0fc574dced0c2b81a39a3352 100644 |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -223,6 +223,14 @@ port.on("composer.openDialog", (message, sender) => |
height: 200, |
type: "popup" |
}).then(window => |
+ { |
+ // The windows.create API with versions of Firefox < 52 doesn't seem to |
+ // populate the tabs property reliably. |
+ if ("tabs" in window) |
+ return window; |
+ else |
+ return browser.windows.get(window.id, {populate: true}); |
+ }).then(window => |
{ |
let popupPageId = window.tabs[0].id; |