mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
aaf89c475e
Backed out changeset 653df21ca861 (bug 1231784) Backed out changeset 0aac20bc3619 (bug 1231784) Backed out changeset edcbd7c0aa36 (bug 1231784) --HG-- rename : testing/mochitest/start_b2g.js => testing/mochitest/b2g_start_script.js extra : commitid : DLurSs6PJ1G
16 lines
659 B
JavaScript
16 lines
659 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
const flavor = __marionetteParams[0]
|
|
const url = __marionetteParams[1]
|
|
|
|
let wm = Cc["@mozilla.org/appshell/window-mediator;1"]
|
|
.getService(Ci.nsIWindowMediator);
|
|
let win = wm.getMostRecentWindow("navigator:browser");
|
|
|
|
// mochikit's bootstrap.js has set up a listener for this event. It's
|
|
// used so bootstrap.js knows which flavor and url to load.
|
|
let ev = new CustomEvent('mochitest-load', {'detail': [flavor, url]});
|
|
win.dispatchEvent(ev);
|