Introduce Resource API for listening to console messages, sources, ... from all the Targets
Categories
(DevTools :: Framework, enhancement, P1)
Tracking
(Fission Milestone:M6, firefox76 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: yulia, Assigned: ochameau)
References
(Blocks 3 open bugs)
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(1 file, 7 obsolete files)
Rather than listing on all panels, it would make sense for us to have a way to just listen to new processes as they are created. We can reuse onFront for this.
Some open questions:
- where do we start listening for new processes?
- how do we remove processes?
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 2•5 years ago
|
||
Depends on D43449
Reporter | ||
Comment 3•5 years ago
|
||
Depends on D43449
Reporter | ||
Comment 4•5 years ago
|
||
Reporter | ||
Comment 5•5 years ago
|
||
Depends on D45533
Reporter | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
A siginificant part of this bug is going to be done in bug 1471754.
Once that is done we should revisit this bug as well as bug 1548557 in order to focus on resources (console messages, sources and elements) instead of only Targets (frame, process, worker).
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
The Resource API would actually be similar to the TargetList
. It would most likely take a TargetList as constructor argument.
And expose methods like:
- watchResources(["console", "network-request", "source"], { mayBeSomeFilterParams }, onResourceAvailable, onResourceDestroyed)
- unwatchResources(["console", "network-request", "source"], onResourceAvailable, onResourceDestroyed)
It is meant to unify the subtle different ways we currently have to:
- start/stop listening to a given type of resources
- notify from the server that a resource is created or destroyed
Each level of abstraction would then have similar API:
- Front.watchFronts
- TargetList.watchTargets
- ResourceAPI.watchResources
Comment 9•5 years ago
|
||
Tracking Fission DevTools bugs for Fission Nightly (M6)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
This focus on implementing a client side version of the Resources API.
This helps demonstrate that this API can works against existing and old Firefox runtimes, using existing actor APIs.
A following changeset (bug 1620243) will introduce a server-side implementation, which will help listening to resources early.
And will help getting rid of the LegacyImplementation object which is introduced by the next changeset (bug 1620234).
Comment 12•5 years ago
|
||
Comment on attachment 9131119 [details]
Bug 1576624 - Use the Resources API for console messages.
Revision D65526 was moved to bug 1620234. Setting attachment 9131119 [details] to obsolete.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
Description
•