Intermittent browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | Test timed out | Extension left running at test shutdown -
Categories
(WebExtensions :: Untriaged, defect, P5)
Tracking
(firefox-esr60 unaffected, firefox65 wontfix, firefox66 fixed, firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | wontfix |
firefox66 | --- | fixed |
firefox67 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: rpl)
References
(Depends on 1 open bug)
Details
(Keywords: intermittent-failure, regression, Whiteboard: [TV-bf pass:pass][stockwell fixed])
Attachments
(1 file)
Comment hidden (Intermittent Failures Robot) |
Comment 2•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 5•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Updated•6 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 20•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 27•6 years ago
|
||
David any updates here?
There are 24 total failures in the last 7 days on linux64, linux32 opt, pgo
Recent failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=227392621&repo=autoland&lineNumber=3036
[task 2019-02-09T11:28:16.169Z] 11:28:16 INFO - TEST-START | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js
[task 2019-02-09T11:28:16.856Z] 11:28:16 INFO - GECKO(3865) | JavaScript error: resource:///actors/ContextMenuChild.jsm, line 478: TypeError: doc is null
[task 2019-02-09T11:29:01.182Z] 11:29:01 INFO - TEST-INFO | started process screentopng
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - TEST-INFO | screentopng: exit 0
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - Buffered messages logged at 11:28:16
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - Entering test bound getTargetElement_in_extension_tab
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - Extension loaded
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - Console message: Warning: attempting to write 16714 bytes to preference extensions.webextensions.uuids. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file. This preference will not be sent to any content processes.
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - TEST-PASS | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | should not get element of tab content in background - Expected: null, Actual: null -
[task 2019-02-09T11:29:01.655Z] 11:29:01 INFO - TEST-PASS | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | should get element in tab content - Expected: BUTTON, Actual: BUTTON -
[task 2019-02-09T11:29:01.656Z] 11:29:01 INFO - Leaving test bound getTargetElement_in_extension_tab
[task 2019-02-09T11:29:01.657Z] 11:29:01 INFO - Entering test bound getTargetElement_in_extension_tab_on_click
[task 2019-02-09T11:29:01.657Z] 11:29:01 INFO - Extension loaded
[task 2019-02-09T11:29:01.657Z] 11:29:01 INFO - Console message: Warning: attempting to write 16794 bytes to preference extensions.webextensions.uuids. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file. This preference will not be sent to any content processes.
[task 2019-02-09T11:29:01.659Z] 11:29:01 INFO - TEST-PASS | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | should get element in tab content on click - Expected: BUTTON, Actual: BUTTON -
[task 2019-02-09T11:29:01.660Z] 11:29:01 INFO - Console message: Ignoring response to aborted listener for 998
[task 2019-02-09T11:29:01.662Z] 11:29:01 INFO - Leaving test bound getTargetElement_in_extension_tab_on_click
[task 2019-02-09T11:29:01.664Z] 11:29:01 INFO - Entering test bound getTargetElement_in_browserAction_popup
[task 2019-02-09T11:29:01.665Z] 11:29:01 INFO - Extension loaded
[task 2019-02-09T11:29:01.667Z] 11:29:01 INFO - Console message: Warning: attempting to write 16874 bytes to preference extensions.webextensions.uuids. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file. This preference will not be sent to any content processes.
[task 2019-02-09T11:29:01.668Z] 11:29:01 INFO - Console message: Warning: attempting to write 9342 bytes to preference browser.uiCustomization.state. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file. This preference will not be sent to any content processes.
[task 2019-02-09T11:29:01.669Z] 11:29:01 INFO - TEST-PASS | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | Expect widget not to be overflowed -
[task 2019-02-09T11:29:01.670Z] 11:29:01 INFO - Console message: [JavaScript Error: "TypeError: doc is null" {file: "resource:///actors/ContextMenuChild.jsm" line: 478}]
[task 2019-02-09T11:29:01.671Z] 11:29:01 INFO - Buffered messages finished
[task 2019-02-09T11:29:01.672Z] 11:29:01 INFO - TEST-UNEXPECTED-FAIL | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | Test timed out -
[task 2019-02-09T11:29:01.673Z] 11:29:01 INFO - Not taking screenshot here: see the one that was previously logged
[task 2019-02-09T11:29:01.674Z] 11:29:01 INFO - TEST-UNEXPECTED-FAIL | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | Extension left running at test shutdown -
[task 2019-02-09T11:29:01.675Z] 11:29:01 INFO - Stack trace:
[task 2019-02-09T11:29:01.676Z] 11:29:01 INFO - chrome://mochikit/content/browser-test.js:test_ok:1304
[task 2019-02-09T11:29:01.677Z] 11:29:01 INFO - chrome://mochikit/content/tests/SimpleTest/ExtensionTestUtils.js:ExtensionTestUtils.loadExtension/<:109
[task 2019-02-09T11:29:01.678Z] 11:29:01 INFO - chrome://mochikit/content/browser-test.js:nextTest:705
[task 2019-02-09T11:29:01.678Z] 11:29:01 INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1202
[task 2019-02-09T11:29:01.679Z] 11:29:01 INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1164
[task 2019-02-09T11:29:01.680Z] 11:29:01 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:995
[task 2019-02-09T11:29:01.680Z] 11:29:01 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:803
[task 2019-02-09T11:29:01.682Z] 11:29:01 INFO - GECKO(3865) | JavaScript error: resource://gre/modules/WebProgressChild.jsm, line 58: NS_ERROR_UNEXPECTED:
[task 2019-02-09T11:29:01.683Z] 11:29:01 INFO - Console message: [JavaScript Error: "NS_ERROR_UNEXPECTED: " {file: "resource://gre/modules/WebProgressChild.jsm" line: 58}]
[task 2019-02-09T11:29:01.684Z] 11:29:01 INFO - GECKO(3865) | MEMORY STAT | vsize 2341MB | residentFast 425MB | heapAllocated 147MB
[task 2019-02-09T11:29:01.686Z] 11:29:01 INFO - TEST-OK | browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_targetElement_extension.js | took 45085ms
Updated•6 years ago
|
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 29•6 years ago
|
||
The intermittent failures from this test are always happening from the test task that is opening a context menu in a browserAction popup.
I have experienced a similar issue in Bug 1518883, which was intermittently failing for the same underlying reason (the one that triggers the [JavaScript Error: "TypeError: doc is null" {file: "resource:///actors/ContextMenuChild.jsm" line: 478}]
error message logged in the console right before the test gets stuck and then time out).
For Bug 1518883 I investigated it quite a bit before looking for a workaround, and as I described in Bug 1519808, the issue seems to be happening when a test is using DOMWindowUtils.sendMouseEvent (usually indirectly, by calling BrowserTestUtils.synthesizeMouse* helpers) to trigger a mouse event on a newly created remote browser element.
Locally I've also quickly verified that the workaround used for Bug 1518883 is also working on this intermittent, in short replacing
await BrowserTestUtils.synthesizeMouseAtCenter(selector, {type: "contextmenu"}, browser);
with something like:
await ContentTask.spawn(browser, null, () => {
let el = content.document.querySelector(selector);
el.dispatchEvent(new content.MouseEvent("contextmenu", {view: el.ownerGlobal, ...}));
});
triggers the context menu on the expected DOM element consistently, whereas the original BrowserTestUtils.synthesizeMouseAtCenter intermittently triggers it on the entire HTML document.
Bug 1519808 seems to be the actual issue behind a bunch of our intermittents, and so it may be more reasonable to have it investigated so that we may fix it instead of applying the above workaround.
Assignee | ||
Comment 30•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment 32•6 years ago
|
||
Comment 33•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 34•6 years ago
|
||
bugherder uplift |
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment hidden (Intermittent Failures Robot) |
Description
•