Bug 1676803 - Make the Remote Agent part of remote debugging within GeckoView. r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D112004
This commit is contained in:
Henrik Skupin 2021-04-26 19:46:08 +00:00
Родитель 2489bd2d16
Коммит 8bcc373610
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -54,14 +54,16 @@ var GeckoViewRemoteDebugger = {
this._isEnabled = false;
this._usbDebugger = new USBRemoteDebugger();
// This lets Marionette start listening (when it's enabled). Both
// GeckoView and Marionette do most of their initialization in
// "profile-after-change", and there is no order enforced between
// them. Therefore we defer asking Marionette to startup until
// This lets Marionette and the Remote Agent (used for our CDP and the
// upcoming WebDriver BiDi implementation) start listening (when enabled).
// Both GeckoView and these two remote protocols do most of their
// initialization in "profile-after-change", and there is no order enforced
// between them. Therefore we defer asking Marionette to startup until
// after all "profile-after-change" handlers (including this one)
// have completed.
Services.tm.dispatchToMainThread(() => {
Services.obs.notifyObservers(null, "marionette-startup-requested");
Services.obs.notifyObservers(null, "remote-startup-requested");
});
},