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)
DevTools
Inspector
Tracking
(Fission Milestone:MVP, firefox92 fixed)
| 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.
| Reporter | ||
Comment 1•4 years ago
|
||
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?
| Assignee | ||
Comment 2•4 years ago
|
||
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 callspreviewPropertyValue,applyand finalysetRuleText - 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:
- close the tooltip in the test before navigating (this does fix the test)
- add a
try/catchblock or acatchcallback when calling one of the promise inrule-rewriter.js - don't call commit from
SwatchBasedEditorTooltipwhen the tooltip gets closed (here in the base swatch class https://searchfox.org/mozilla-central/rev/523ac2e17550f1f1da16aacdc6ac647af8b35508/devtools/client/shared/widgets/tooltip/SwatchBasedEditorTooltip.js#123). It's not useful for the color tooltip, but maybe it is for other tooltips.
Assignee: nobody → nchevobbe
| Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
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.
Updated•4 years ago
|
Attachment #9232150 -
Attachment is obsolete: true
Comment 5•4 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox92:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•