Closed Bug 1382487 Opened 6 years ago Closed 6 years ago

Intermittent browser/components/extensions/test/browser/test-oop-extensions/browser_ext_devtools_panels_elements.js | Got the expected onSelectionChanged once the tab navigated - Got BODY, expected undefined


(WebExtensions :: Developer Tools, defect, P2)



(firefox56 fixed, firefox57 fixed)

Tracking Status
firefox56 --- fixed
firefox57 --- fixed


(Reporter: intermittent-bug-filer, Assigned: rpl)


(Keywords: intermittent-failure, Whiteboard: [stockwell fixed:other])


(1 file)

:andym, this has a high failure rate last week and a higher failure rate this week (when looking at the graph for august).  can you find someone to look into this as it appears to be a persistent failure.
Flags: needinfo?(amckay)
Whiteboard: [stockwell needswork]
Keywords: leave-open
Whiteboard: [stockwell needswork] → [stockwell disabled]
Pushed by
Skip test browser_ext_devtools_panels_elements.js for frequent intermittent failures; r=me,test-only
Component: WebExtensions: Untriaged → WebExtensions: Developer Tools
Flags: needinfo?(lgreco)
Thanks Kris,
I didn't noticed that this test got disabled because of it is intermittent.

Looking at the source of these selection events, the onNewRoot handler from the devtools inspector:


I'm pretty sure that the reason of the intermittent failure is that:
- while the first `this.selection.setNodeFront(null);` is always guaranteed to be called 
- the second one (`this.selection.setNodeFront(defaultNode, "navigateaway");`) can be cancelled by the early return at line 774

I'm going to tweak the test so that it doesn't assume that it is always going to receive 2 `undefined` selections before the final 'new body element' selection (once the page has been completely reloaded and the devtools inspector and it finally fires the new body element as the new selected element).
Assignee: nobody → lgreco
Flags: needinfo?(lgreco)
Flags: needinfo?(amckay)
Priority: -- → P2
Attachment #8898805 - Flags: review?(aswan)
Comment on attachment 8898805 [details]
Bug 1382487 - Fix devtools onSelectionChanged API event test case intermittency.
Attachment #8898805 - Flags: review?(aswan) → review+
Pushed by
Fix devtools onSelectionChanged API event test case intermittency. r=aswan
Closed: 6 years ago
Keywords: leave-open
Resolution: --- → FIXED
Whiteboard: [stockwell disabled] → [stockwell fixed:other]
Target Milestone: --- → mozilla57
Flags: qe-verify-
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.