Closed Bug 1637475 Opened 5 years ago Closed 5 years ago

Very frequent toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html | Error: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: moz-extension://2039ba3f-0d0b-d546-ad02-9bac5aa723e3/%7Be2e62f4c

Categories

(WebExtensions :: General, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell disabled])

Attachments

(2 files)

Filed by: rmaries [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=302029424&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Y6qi3povSkSvQ0WmuztBBg/runs/0/artifacts/public/logs/live_backing.log


[task 2020-05-13T02:34:28.655Z] 02:34:28 INFO - TEST-START | toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html
[task 2020-05-13T02:34:28.656Z] 02:34:28 INFO - GECKO(2470) | Console message: [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "http://mochi.test:8888/tests/toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html" line: 0}]
[task 2020-05-13T02:34:28.710Z] 02:34:28 INFO - TEST-INFO | started process screencapture
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - TEST-INFO | screencapture: exit 0
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - Buffered messages logged at 02:34:28
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - add_task | Entering test test_background_canvas
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - Extension loaded
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - Buffered messages finished
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html | Error: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: moz-extension://2039ba3f-0d0b-d546-ad02-9bac5aa723e3/%7Be2e62f4c-a02f-4348-a70f-65553fd53e21%7D.js :: background :: line 9" data: no] :: background@moz-extension://2039ba3f-0d0b-d546-ad02-9bac5aa723e3/%7Be2e62f4c-a02f-4348-a70f-65553fd53e21%7D.js:9:7
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - @moz-extension://2039ba3f-0d0b-d546-ad02-9bac5aa723e3/%7Be2e62f4c-a02f-4348-a70f-65553fd53e21%7D.js:16:5
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO -
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:299:16
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - testHandler@SimpleTest/ExtensionTestUtils.js:72:18
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - testResult@SimpleTest/ExtensionTestUtils.js:82:18
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - Asynctest_background_canvas@toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html:43:19
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - nextTick/<@SimpleTest/SimpleTest.js:2090:34
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - nextTick@SimpleTest/SimpleTest.js:2115:11
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - setTimeout handler
SimpleTest_setTimeoutShim@SimpleTest/SimpleTest.js:788:41
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - add_task@SimpleTest/SimpleTest.js:2045:17
[task 2020-05-13T02:34:28.860Z] 02:34:28 INFO - @toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html:15:9
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html | background-canvas
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:299:16
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - testResult@SimpleTest/ExtensionTestUtils.js:79:20
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - Asynctest_background_canvas@toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html:43:19
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - nextTick/<@SimpleTest/SimpleTest.js:2090:34
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - nextTick@SimpleTest/SimpleTest.js:2115:11
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - setTimeout handler
SimpleTest_setTimeoutShim@SimpleTest/SimpleTest.js:788:41
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - add_task@SimpleTest/SimpleTest.js:2045:17
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - @toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html:15:9
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - TEST-PASS | toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html | test result correct
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - add_task | Leaving test test_background_canvas
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - GECKO(2470) | MEMORY STAT | vsize 6754MB | residentFast 114MB | heapAllocated 15MB
[task 2020-05-13T02:34:28.861Z] 02:34:28 INFO - TEST-OK | toolkit/components/extensions/test/mochitest/test_ext_background_canvas.html | took 134ms

Assignee: nobody → apavel
Status: NEW → ASSIGNED
Pushed by apavel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb421eb632f6 disable test_ext_background_canvas.html on opt linux and mac, 64bits r=jmaher
Flags: needinfo?(mixedpuppy)
Flags: needinfo?(emilio)
Keywords: leave-open
Regressed by: 1584935
Whiteboard: [stockwell disable-recommended] → [stockwell disabled]
Has Regression Range: --- → yes
Keywords: regression
Assignee: apavel → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(emilio)

Before bug 1584935, the frame for the browser element was created
directly after the .appendChild call, but after that we need to wait
for layout to happen in order to guarantee it.

We could manually flush layout, or do a double-RAF for that. I've gone
for the later.

The code was duplicated in ExtensionXPCShellUtils.jsm so I also put the
wait there.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(mixedpuppy)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/671c6fcdb861 Wait until the browser element gets its frames created when creating background pages. r=mixedpuppy
Attachment #9151264 - Attachment description: Bug 1637475 - Wait until the browser element gets its frames created when creating background pages. r=mixedpuppy,kmag → Bug 1637475 - Wait until the browser element gets its frames created when creating background pages. r=mixedpuppy
Attachment #9151264 - Attachment description: Bug 1637475 - Wait until the browser element gets its frames created when creating background pages. r=mixedpuppy → Bug 1637475 - Flush layout when creating background pages so the browser element gets its frames created. r=mixedpuppy
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0542461e3da7 Flush layout when creating background pages so the browser element gets its frames created. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(emilio)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: