author | Patrick Brosset <pbrosset@mozilla.com> |
Wed, 08 Jun 2016 09:47:02 +0200 | |
changeset 341295 | df7f0027c2af660e14c83f02c2e3d9984b167b43 |
parent 341294 | fae4bb6ae895ac8dd29da4242db79942c7f17ba1 |
child 341296 | f1c88261bd7310a5837cccffc767df53737fd9ce |
push id | 6389 |
push user | raliiev@mozilla.com |
push date | Mon, 19 Sep 2016 13:38:22 +0000 |
treeherder | mozilla-beta@01d67bfe6c81 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | ochameau |
bugs | 1262710 |
milestone | 50.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
|
--- a/devtools/server/tests/browser/head.js +++ b/devtools/server/tests/browser/head.js @@ -26,29 +26,21 @@ waitForExplicitFinish(); * Add a new test tab in the browser and load the given url. * @param {String} url The url to be loaded in the new tab * @return a promise that resolves to the new browser that the document * is loaded in. Note that we cannot return the document * directly, since this would be a CPOW in the e10s case, * and Promises cannot be resolved with CPOWs (see bug 1233497). */ var addTab = Task.async(function* (url) { - info("Adding a new tab with URL: '" + url + "'"); - let tab = gBrowser.selectedTab = gBrowser.addTab(); - let loaded = once(gBrowser.selectedBrowser, "load", true); - - content.location = url; - yield loaded; + info(`Adding a new tab with URL: ${url}`); + let tab = gBrowser.selectedTab = gBrowser.addTab(url); + yield once(gBrowser.selectedBrowser, "load", true); - info("URL '" + url + "' loading complete"); - - yield new Promise(resolve => { - let isBlank = url == "about:blank"; - waitForFocus(resolve, content, isBlank); - }); + info(`Tab added and URL ${url} loaded`); return tab.linkedBrowser; }); function* initAnimationsFrontForUrl(url) { const {AnimationsFront} = require("devtools/shared/fronts/animation"); const {InspectorFront} = require("devtools/shared/fronts/inspector");