Bug 1574290, browser_html_options_ui.js should wait for the load event before expecting that the whole extension page has been loaded, r=mstriemer
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Fri, 30 Aug 2019 21:08:32 +0000
changeset 554706 ac42ae777d5cdab6ddbe4b01411be39910c2a069
parent 554705 4d4271a0ccad1e5a561ca93bd4144767cf0503a4
child 554707 734d2434e08bc19e3b904085e670b507daaf1759
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstriemer
bugs1574290
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1574290, browser_html_options_ui.js should wait for the load event before expecting that the whole extension page has been loaded, r=mstriemer Differential Revision: https://phabricator.services.mozilla.com/D44143
toolkit/mozapps/extensions/test/browser/browser_html_options_ui.js
--- a/toolkit/mozapps/extensions/test/browser/browser_html_options_ui.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_html_options_ui.js
@@ -376,17 +376,17 @@ add_task(async function testUpgradeTempo
         `,
         "options.js": () => {
           browser.test.onMessage.addListener(msg => {
             if (msg === "get-version") {
               let version = document.querySelector("pre").textContent;
               browser.test.sendMessage("version", version);
             }
           });
-          browser.test.sendMessage("options-loaded");
+          window.onload = () => browser.test.sendMessage("options-loaded");
         },
       },
       useAddonManager: "temporary",
     });
     await extension.startup();
     return extension;
   }