Closed Bug 1576624 Opened 5 years ago Closed 4 years ago

Introduce Resource API for listening to console messages, sources, ... from all the Targets

Categories

(DevTools :: Framework, enhancement, P1)

enhancement

Tracking

(Fission Milestone:M6, firefox76 fixed)

RESOLVED FIXED
Firefox 76
Fission Milestone M6
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?
Assignee: nobody → ystartsev
Status: NEW → ASSIGNED
Whiteboard: dt-fission
Priority: -- → P1
Attached file Bug 1576624 - WIP (obsolete) —

Depends on D43449

Depends on D43449

Blocks: 1471754
Attached file Bug 1576624 - WIP with resource API (obsolete) —

Depends on D45533

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).

Assignee: ystartsev → nobody
Status: ASSIGNED → NEW
Priority: P1 → P2
Priority: P2 → P3
Whiteboard: dt-fission → dt-fission-reserve

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
Summary: Introduce Resource API for listening to new processes → Introduce Resource API for listening to console messages, sources, ... from all the Targets

Tracking Fission DevTools bugs for Fission Nightly (M6)

Fission Milestone: --- → M6
Blocks: 1614291
Attachment #9088140 - Attachment is obsolete: true
Attachment #9089400 - Attachment is obsolete: true
Attachment #9089854 - Attachment is obsolete: true
Attachment #9092077 - Attachment is obsolete: true
Attachment #9093035 - Attachment is obsolete: true
Attachment #9098470 - Attachment is obsolete: true
Blocks: 1620243
Depends on: 1620234
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

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 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.

Attachment #9131119 - Attachment is obsolete: true
Priority: P3 → P1
Whiteboard: dt-fission-reserve → dt-fission-m2-mvp
Depends on: 1620280
Attachment #9131120 - Attachment description: Bug 1576624 - Prototype a Resources API. → Bug 1576624 - Implement a Resources API.
Attachment #9131120 - Attachment description: Bug 1576624 - Implement a Resources API. → Bug 1576624 - Prototype a Resources API.
Blocks: 1624650
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/237c34042053
Prototype a Resources API. r=jdescottes,nchevobbe
Blocks: 1625930
Blocks: 1625909
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
No longer depends on: 1620280
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: