Closed Bug 1757951 Opened 3 years ago Closed 3 years ago

Implement a "Root" Resource API to observe context-less data

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

For now the ResourceCommand can only work against a given Descriptor/Watcher.
This requires:

  • focusing on one particular context (tab, addon, worker, ...)
  • spawning lots of things (descriptor, watcher actors and all deps of the watcher actor)

Whereas about:debugging observe all the available descriptors and want to observe events that aren't specific to any particular context. And want to do that without regressing performance.

So that it would be helpful to have an API similar to ResourceCommand which can be instantiated out of a DevToolsClient/RootFront and nothing else.
It requires getting away from commands as commands expect a descriptor as constructor argument.

This is equivalent to the ResourceCommand, but isn't related to any context/descriptor.
This helps listen to things right away when connecting to a RDP server.
That, without having to instantiate any descriptor/watcher actor.
It works right away via the root actor which is instantiated by default.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Blocks: 1758530
Blocks: 1748529
Blocks: 1758996
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8d51f9785661 [devtools] Implement "Root" Resources in order to be able to watch for context-less resources in the parent process. r=jdescottes,devtools-backward-compat-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: