diff --git a/toolkit/components/extensions/test/mochitest/mochitest-common.ini b/toolkit/components/extensions/test/mochitest/mochitest-common.ini index 8f0a0f167206..7b3bd3dd12ca 100644 --- a/toolkit/components/extensions/test/mochitest/mochitest-common.ini +++ b/toolkit/components/extensions/test/mochitest/mochitest-common.ini @@ -109,7 +109,6 @@ skip-if = (toolkit == 'android') # bug 1342577 [test_ext_sendmessage_no_receiver.html] [test_ext_sendmessage_reply.html] [test_ext_sendmessage_reply2.html] -skip-if = true # Bug 1258897 [test_ext_storage_manager_capabilities.html] scheme=https [test_ext_subframes_privileges.html] diff --git a/toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html b/toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html index 348c4ca54d6e..c20a96fda258 100644 --- a/toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html +++ b/toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html @@ -14,8 +14,6 @@ "use strict"; function backgroundScript(token, id, otherId) { - browser.tabs.create({url: "tab.html"}); - browser.runtime.onMessage.addListener((msg, sender, sendReply) => { browser.test.assertEq(id, sender.id, `${id}: Got expected sender ID`); @@ -51,6 +49,8 @@ function backgroundScript(token, id, otherId) { browser.test.fail(`${id}: Unexpected runtime external message received: ${msg} ${uneval(sender)}`); } }); + + browser.tabs.create({url: "tab.html"}); } function contentScript(token, id, otherId) {