Index: composer.js |
diff --git a/composer.js b/composer.js |
index e45c948e153387e7a0140f94862c9809c92bc5f6..0c4571e226558a62a3b619ae19e44ce9dd0ab7d4 100644 |
--- a/composer.js |
+++ b/composer.js |
@@ -100,6 +100,15 @@ function init() |
filtersTextArea.value = msg.filters.join("\n"); |
filtersTextArea.disabled = false; |
$("#addButton").button("option", "disabled", false); |
+ |
+ // Firefox sometimes tells us this window had loaded before it has[1], |
+ // to work around that we send the "composer.dialog.init" message again |
+ // when sending failed. Unfortunately sometimes sending is reported as |
+ // successful when it's not, but with the response of `undefined`. We |
+ // therefore send a response here, and check for it to see if the |
+ // message really was sent successfully. |
+ // [1] - https://bugzilla.mozilla.org/show_bug.cgi?id=1418655 |
+ sendResponse(true); |
break; |
case "composer.dialog.close": |
closeMe(); |