Closed Bug 1721369 Opened 4 years ago Closed 4 years ago

browser_inspector_highlighter-eyedropper-xul.js fails with server side target switching enabled

Categories

(DevTools :: Inspector, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

RESOLVED FIXED
92 Branch
Fission Milestone MVP
Tracking Status
firefox92 --- fixed

People

(Reporter: ochameau, Assigned: nchevobbe)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file, 1 obsolete file)

./mach mochitest --headless devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js --setpref devtools.target-switching.server.enabled=true

This test seems to fails because of a pending promise that is rejected.
And because the test harness see such unhandled rejected promise, it reports a failure.
But at first sight, it is probably a pending request made against the previous, destroyed target, which we may just ignore.

First, we could get rid of old promises... the async stack would be easier to read.

Then, there is this call to apply which is async and rejected.
Could it be done against the previous, destroying or to be destroyed target?

so this is failing when we navigate:

  • will-navigate is emitted
  • the inspector set the selected node front to null
  • the color picker, which is still open, gets closed
  • this triggers onTooltipHidden, which calls commit, which calls previewPropertyValue , apply and finaly setRuleText
  • the connection gets closed while the call is pending

so we can't check if the ruleFront is destroyed before calling setRuleText, as it's not destroyed yet.

We might want to:

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Fission Milestone: --- → MVP
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee8e0e45d89f [devtools] Fix browser_inspector_highlighter-eyedropper-xul.js with server side target switching enabled. r=ochameau.
Attachment #9232150 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: