Closed Bug 1657153 Opened 5 years ago Closed 5 years ago

Update ResourceWatcher cache on update and destroyed events

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(Fission Milestone:M6c, firefox81 fixed)

RESOLVED FIXED
81 Branch
Fission Milestone M6c
Tracking Status
firefox81 --- fixed

People

(Reporter: ochameau, Assigned: bomsy)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(1 file)

Use a resourceId attribute in resource-updated-form and resource-destroyed-form in order to:

  • update the existing, matching cached resource which is in the cache array
  • remove it from the cache when it is destroyed

There is many ways to support how to update the cache resource in resource-updated-form.
For now, I think only network_event would really benefit from that, so we may drive decision from bug 1644191's requirements.
NETWORK_EVENT server implementation is most likely going to land preffed off for a bit, and so we may change this depending on the progress of this particular resource.
We should be careful if some other resource starts depending on this particular feature.

The resourceId for NETWORK_EVENT will be the nsIChannel's channelId. In other cases, if we don't have an ID coming from platform objects, we may use actorID or an integer increment as last resort?

Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c).

Fission Milestone: --- → M6c
Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a99b36412992 Use the resource id for updating and deleting a resource r=ochameau
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: