зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1567341 - Properly initialize GeckoView in xpcshell-test. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D106202
This commit is contained in:
Родитель
66b035f4a2
Коммит
1f3a058709
|
@ -503,6 +503,16 @@ function _initDebugging(port) {
|
|||
}
|
||||
|
||||
function _execute_test() {
|
||||
if (runningInParent && _AppConstants.platform == "android") {
|
||||
_Services.obs.notifyObservers(null, "profile-after-change");
|
||||
// Wake up GeckoViewStartup
|
||||
let geckoViewStartup = Cc["@mozilla.org/geckoview/startup;1"].getService(
|
||||
Ci.nsIObserver
|
||||
);
|
||||
geckoViewStartup.observe(null, "profile-after-change", null);
|
||||
geckoViewStartup.observe(null, "app-startup", null);
|
||||
}
|
||||
|
||||
// _JSDEBUGGER_PORT is dynamically defined by <runxpcshelltests.py>.
|
||||
if (_JSDEBUGGER_PORT) {
|
||||
try {
|
||||
|
|
Загрузка…
Ссылка в новой задаче