Closed Bug 1788773 Opened 2 years ago Closed 2 years ago

Update the interface of the network observer to support non-devtools consumers

Categories

(DevTools :: Netmonitor, task, P1)

task
Points:
5

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m5])

Attachments

(13 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

The network observer should no longer emit anything which depends on DevTools network event actors.

The events & objects emitted should as much as possible follow the naming specified in the BiDi network events: https://github.com/w3c/webdriver-bidi/pull/204

I think devtools can still benefit from having more granular network event updates than BiDi, so I don't think the observer should adopt the 3 events design from the BiDi spec (but we can discuss).

This is also the opportunity to start removing the network event actor from the devtools codebase. Doing this cleanup here would be nice, to avoid having a translation layer between the observer and devtools.

Blocks: 1790362
Points: --- → 5
Priority: -- → P1
Whiteboard: [webdriver:m5]
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

This should rather be under devtools/netmonitor

Component: WebDriver BiDi → Netmonitor
Product: Remote Protocol → DevTools
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c35c9e5b1970
[devtools] Migrate CacheEntry to a JavaScript class r=ochameau
https://hg.mozilla.org/integration/autoland/rev/b8cea7ddc798
[devtools] Migrate Throttle helper classes to a JavaScript class r=ochameau
https://hg.mozilla.org/integration/autoland/rev/1c3f707fb4f1
[devtools] Use private properties in NetworkObserver.sys.mjs r=ochameau
https://hg.mozilla.org/integration/autoland/rev/e44aeee85f96
[devtools] Use private properties in NetworkResponseListener.sys.mjs r=ochameau
https://hg.mozilla.org/integration/autoland/rev/649ba7cbda10
[devtools] Rename owner to networkObserver in NetworkResponseListener r=ochameau
https://hg.mozilla.org/integration/autoland/rev/f144a7d387d4
[devtools] Remove owner property from NetworkObserver r=ochameau
https://hg.mozilla.org/integration/autoland/rev/cdc70361444e
[devtools] Remove filters argument from NetworkObserver r=ochameau
https://hg.mozilla.org/integration/autoland/rev/b2c25629b1ac
[devtools] Return a promise from CacheEntry.getCacheEntry r=ochameau
https://hg.mozilla.org/integration/autoland/rev/bc6f0d39eb47
[devtools] Reuse property names from nsICacheEntry in devtools ResponseCache object r=ochameau
https://hg.mozilla.org/integration/autoland/rev/753f2f079c5e
[devtools] Merge NetworkObserver init() in constructor r=ochameau
https://hg.mozilla.org/integration/autoland/rev/fa5e3a63ba67
[devtools] Use explicit getter and setter methods in NetworkObserver r=ochameau
https://hg.mozilla.org/integration/autoland/rev/3977ce574565
[devtools] Define QueryInterface in class definition instead of constructor for network observer modules r=ochameau
https://hg.mozilla.org/integration/autoland/rev/4585c14292c4
[devtools] network observer: set default values for properties in class definition r=ochameau
Blocks: 1800831
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: