Closed Bug 1697747 Opened 4 years ago Closed 4 years ago

Ignore already destroyed root node resources in onResourceAvailable callback

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(Fission Milestone:M7, firefox88 fixed)

RESOLVED FIXED
88 Branch
Fission Milestone M7
Tracking Status
firefox88 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

In the inspector, there are a few places where ROOT_NODE resources are used (See https://searchfox.org/mozilla-central/search?q=ROOT_NODE&path=devtools%2Fclient%2F&case=true&regexp=false)
Most of the time, the inspector check if the ROOT_NODE is associated with a top level target (via resource.targetFront.isTopLevel).

The issue is that the ROOT_NODE resource is a front, and as a front, it can be destroyed, and when it's destroyed, its targetFront property is nullified, which causes exception when trying to access a property on it.

It looks like this reduces the number of failures in browser_toolbox_backward_forward_navigation.js.

Severity: -- → S3
Priority: -- → P2
Attachment #9208337 - Attachment description: Bug 1697747 - [devtools] Ignore already destroyed root node resources in onResourceAvailable callback. r=jdescottes. → Bug 1697747 - [devtools] Ignore already resources which are fronts and already destroyed in onResourceAvailable callback. r=jdescottes.
Fission Milestone: --- → M8
Whiteboard: dt-fission-m3-mvp
Attachment #9208337 - Attachment description: Bug 1697747 - [devtools] Ignore already resources which are fronts and already destroyed in onResourceAvailable callback. r=jdescottes. → Bug 1697747 - [devtools] Ignore resources which are fronts and already destroyed in onResourceAvailable callback. r=jdescottes.
Attachment #9208337 - Attachment description: Bug 1697747 - [devtools] Ignore resources which are fronts and already destroyed in onResourceAvailable callback. r=jdescottes. → Bug 1697747 - [devtools] Ignore already resources which are fronts and already destroyed in onResourceAvailable callback. r=jdescottes.
Attachment #9208337 - Attachment description: Bug 1697747 - [devtools] Ignore already resources which are fronts and already destroyed in onResourceAvailable callback. r=jdescottes. → Bug 1697747 - [devtools] Ignore already destroyed root node resources in onResourceAvailable callback. r=jdescottes.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/596ffca60028 [devtools] Ignore already destroyed root node resources in onResourceAvailable callback. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Fission Milestone: M8 → M7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: