Bug 1567341 - Properly initialize GeckoView in xpcshell-test. r=jmaher

Differential Revision: https://phabricator.services.mozilla.com/D106202
This commit is contained in:
Agi Sferro 2021-03-24 21:49:34 +00:00
Родитель 66b035f4a2
Коммит 1f3a058709
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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 {