Bug 1492895 - Fix intermittent failure in browser_ext_search.js r=rpl
authorRob Wu <rob@robwu.nl>
Fri, 15 Mar 2019 08:27:48 +0000
changeset 522025 cb57c95a5e8261473504b04ec42a221b5ef5d2a5
parent 522024 77e55a8270d1dc6e24c55568f436977f052a0b7a
child 522026 a75c0f1d25e5cc5e12af608a571d6894365e6583
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrpl
bugs1492895
milestone67.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 1492895 - Fix intermittent failure in browser_ext_search.js r=rpl Differential Revision: https://phabricator.services.mozilla.com/D23503
browser/components/extensions/test/browser/browser_ext_search.js
--- a/browser/components/extensions/test/browser/browser_ext_search.js
+++ b/browser/components/extensions/test/browser/browser_ext_search.js
@@ -34,17 +34,17 @@ add_task(async function test_search() {
     browser.test.sendMessage("engines", engines);
 
     // Search with no tabId
     browser.search.search({query: SEARCH_TERM + "1", engine: "Search Test"});
     let result = await awaitSearchResult();
     browser.test.sendMessage("searchLoaded", result.url);
 
     // Search with tabId
-    let tab = await browser.tabs.create({});
+    let tab = await browser.tabs.create({url: "about:blank"});
     browser.search.search({query: SEARCH_TERM + "2", engine: "Search Test",
                            tabId: tab.id});
     result = await awaitSearchResult();
     browser.test.assertEq(result.tabId, tab.id, "Page loaded in right tab");
     browser.test.sendMessage("searchLoaded", result.url);
   }
 
   let extension = ExtensionTestUtils.loadExtension({