Closed Bug 1590827 Opened 5 years ago Closed 5 years ago

Add remote-agent-requested system notification

Categories

(Remote Protocol :: Agent, enhancement, P1)

enhancement

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: ato, Assigned: ato)

References

Details

(Whiteboard: [puppeteer-alpha])

Attachments

(1 file)

The remote agent currently waits for the sessionstore-windows-restored
event, but we should reverse the model so that application code can
decide when it is safe to start the remote agent.

This is similar to the model used for Marionette, which listens for
marionette-startup-requested. We could probably rely on exactly
this event at the moment, but in the interest of decoupling Marionette
from the remote agent we should probably have a separate notification
for the remote agent.

The remote agent startup code changes as part of bug 1543115
which means it is a short-term blocker for addressing this.

Depends on: 1543115
Priority: -- → P3
Whiteboard: [puppeteer-alpha]
Whiteboard: [puppeteer-alpha] → [puppeteer-alpha-reserve]
Assignee: nobody → ato
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: [puppeteer-alpha-reserve] → [puppeteer-alpha]

This moves the Chromium remote debugging protocol implementation
in Firefox from using sessionstore-windows-restored to a new
remote-startup-requested notification observer.

This change makes it possible for applications to explicitly decide
at which stage it is considered safe to initialise the remote agent
listener. It is safe to emit this notification at any time since
the observer for it is only registered after the --remote-debugger
flag is is used.

The remote debugger only supports Firefox, so this patch does not
take care of GeckoView/Android.

Pushed by ato@sny.no:
https://hg.mozilla.org/integration/autoland/rev/e260a401d107
remote, browser: request remote agent startup; r=florian,remote-protocol-reviewers,maja_zf
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: