Intermittent browser/components/extensions/test/browser/browser_ext_menus_targetElement.js | targetElementId from different tab should not resolve. - Expected: null, Actual: [object HTMLParagraphElement]
Categories
(WebExtensions :: General, defect, P5)
Tracking
(firefox127 fixed)
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: robwu)
References
Details
(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [addons-jira])
Attachments
(1 file)
Filed by: rob [at] robwu.nl
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=454798990&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NXUjhtIFTACSTvevzZ8WRg/runs/0/artifacts/public/logs/live_backing.log
Assignee | ||
Comment 1•1 year ago
|
||
All recently reported failures in bug 1775562 are associated with the following error:
TEST-UNEXPECTED-FAIL | browser/components/extensions/test/browser/browser_ext_menus_targetElement.js | targetElementId from different tab should not resolve. - Expected: null, Actual: [object HTMLParagraphElement] -
The failure comes from https://searchfox.org/mozilla-central/rev/b94e479d0b79b157029379832d05229df646e134/browser/components/extensions/test/browser/browser_ext_menus_targetElement.js#305,310-316
A potential way for this to happen is if targetElementId === targetElementId2
, which would be unlucky but not theoretically impossible. I'll submit a patch to retry getting a new ID when this unlucky situation happens.
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
I confirmed with --verify
(TV) that the proposed patch can catch an instance of an unexpected duplicate tab ID and that it can recover from that failure, as follows:
$ ./mach test browser/components/extensions/test/browser/browser_ext_menus_targetElement.js --log-mach-verbose --headless --verify
...
0:50.59 INFO Got same targetElementId 381, retrying for a new one
0:50.63 PASS targetElementId differ - 381 != 427 -
0:50.64 PASS Expected message - Expected: checkIsValid, Actual: checkIsValid -
0:50.65 PASS targetElementId from different tab should not resolve. - Expected: null, Actual: null -
Before this patch, the output would have been:
TEST-UNEXPECTED-FAIL | browser/components/extensions/test/browser/browser_ext_menus_targetElement.js | targetElementId from different tab should not resolve. - Expected: null, Actual: [object HTMLParagraphElement] -
Comment hidden (Intermittent Failures Robot) |
Description
•