Closed Bug 1667526 Opened 4 years ago Closed 4 years ago

Intermittent browser_toolbox_options_enable_serviceworkers_testing.js | A promise chain failed to handle a rejection: can't access property "isTopLevel", resource.targetFront is null - stack: _onResourceAvailable@resource://*/highlighters-overlay.js:1644:

Categories

(DevTools :: Framework, defect, P5)

defect

Tracking

(firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

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

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

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


[task 2020-09-26T05:03:52.667Z] 05:03:52 INFO - TEST-START | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js
[task 2020-09-26T05:03:53.233Z] 05:03:53 INFO - GECKO(7964) | console.log: "[DISPATCH] action type:" "UPDATE_GRIDS"
[task 2020-09-26T05:03:53.243Z] 05:03:53 INFO - GECKO(7964) | console.log: "[DISPATCH] action type:" "CLEAR_FLEXBOX"
[task 2020-09-26T05:03:53.322Z] 05:03:53 INFO - GECKO(7964) | console.log: "[DISPATCH] action type:" "UPDATE_GRIDS"
[task 2020-09-26T05:03:53.324Z] 05:03:53 INFO - GECKO(7964) | console.log: "[DISPATCH] action type:" "UPDATE_OFFSET_PARENT"
[task 2020-09-26T05:03:53.324Z] 05:03:53 INFO - GECKO(7964) | console.log: "[DISPATCH] action type:" "UPDATE_LAYOUT"
[task 2020-09-26T05:03:53.343Z] 05:03:53 INFO - GECKO(7964) | console.log: "[DISPATCH] action type:" "CLEAR_FLEXBOX"
[task 2020-09-26T05:03:53.775Z] 05:03:53 INFO - GECKO(7964) | console.error: "Exception while calling a ResourceWatcher" "available" "callback" ":" (new TypeError("can't access property "isTopLevel", resource.targetFront is null", "resource://devtools/client/inspector/inspector.js", 1305))
[task 2020-09-26T05:03:54.462Z] 05:03:54 INFO - GECKO(7964) | JavaScript error: resource://devtools/client/inspector/shared/highlighters-overlay.js, line 1644: TypeError: can't access property "isTopLevel", resource.targetFront is null
[task 2020-09-26T05:03:54.462Z] 05:03:54 INFO - GECKO(7964) | JavaScript error: resource://devtools/client/inspector/markup/markup.js, line 1383: TypeError: can't access property "isTopLevel", resource.targetFront is null
[task 2020-09-26T05:03:54.563Z] 05:03:54 INFO - TEST-INFO | started process screenshot
[task 2020-09-26T05:03:54.622Z] 05:03:54 INFO - TEST-INFO | screenshot: exit 0
[task 2020-09-26T05:03:54.622Z] 05:03:54 INFO - Buffered messages logged at 05:03:52
[task 2020-09-26T05:03:54.622Z] 05:03:54 INFO - Adding a new tab with URL: http://example.com/browser/devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html
[task 2020-09-26T05:03:54.622Z] 05:03:54 INFO - Tab added and finished loading
[task 2020-09-26T05:03:54.622Z] 05:03:54 INFO - Buffered messages logged at 05:03:53
[task 2020-09-26T05:03:54.622Z] 05:03:54 INFO - TEST-PASS | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | Register should fail with security error -
[task 2020-09-26T05:03:54.623Z] 05:03:54 INFO - Checking checkbox to enable service workers testing
[task 2020-09-26T05:03:54.623Z] 05:03:54 INFO - TEST-PASS | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | Register should success -
[task 2020-09-26T05:03:54.623Z] 05:03:54 INFO - TEST-PASS | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | Register should success -
[task 2020-09-26T05:03:54.623Z] 05:03:54 INFO - Buffered messages logged at 05:03:54
[task 2020-09-26T05:03:54.623Z] 05:03:54 INFO - Console message: [JavaScript Error: "TypeError: can't access property "isTopLevel", resource.targetFront is null" {file: "resource://devtools/client/inspector/shared/highlighters-overlay.js" line: 1644}]
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - Console message: [JavaScript Error: "TypeError: can't access property "isTopLevel", resource.targetFront is null" {file: "resource://devtools/client/inspector/markup/markup.js" line: 1383}]
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - TEST-PASS | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | Register should fail with security error -
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - TEST-PASS | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | The main process DevToolsServer has no pending connection when the test ends -
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - Buffered messages finished
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - TEST-UNEXPECTED-FAIL | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | A promise chain failed to handle a rejection: can't access property "isTopLevel", resource.targetFront is null - stack: _onResourceAvailable@resource://devtools/client/inspector/shared/highlighters-overlay.js:1644:11
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - _notifyWatchers@resource://devtools/shared/resources/resource-watcher.js:553:24
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - later@resource://devtools/shared/throttle.js:33:19
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - notify@resource://gre/modules/Timer.jsm:62:17
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - Rejection date: Sat Sep 26 2020 05:03:54 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - Stack trace:
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - chrome://mochikit/content/browser-test.js:nextTest:615
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1512
[task 2020-09-26T05:03:54.624Z] 05:03:54 INFO - chrome://mochikit/content/browser-test.js:run:1427
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - TEST-UNEXPECTED-FAIL | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | A promise chain failed to handle a rejection: can't access property "isTopLevel", resource.targetFront is null - stack: _onResourceAvailable@resource://devtools/client/inspector/markup/markup.js:1383:11
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - _notifyWatchers@resource://devtools/shared/resources/resource-watcher.js:553:24
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - later@resource://devtools/shared/throttle.js:33:19
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - notify@resource://gre/modules/Timer.jsm:62:17
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - Rejection date: Sat Sep 26 2020 05:03:54 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - Stack trace:
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - chrome://mochikit/content/browser-test.js:nextTest:615
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1512
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - chrome://mochikit/content/browser-test.js:run:1427
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - GECKO(7964) | MEMORY STAT | vsize 2104821MB | vsizeMaxContiguous 65533654MB | residentFast 665MB | heapAllocated 277MB
[task 2020-09-26T05:03:54.625Z] 05:03:54 INFO - TEST-OK | devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.js | took 1933ms

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

The failure seems to indicate some activity in the inspector, I guess since we're opening the toolbox without specified tool.
The test has some old style (no add_task, chained Promises) and is quite hard to follow + it sets prefs it never reverts.
I'm going to refactor the test and remove the annotation that were added to it.

Assignee: nobody → nchevobbe
Blocks: 1601891
Status: REOPENED → ASSIGNED

We migrate the test to add_task and async functions and
properly set preferences at the beginning of the test.

Attachment #9199562 - Attachment description: Bug 1667526 - [devtools] Refactor and fix intermittent on browser_toolbox_options_enable_serviceworkers_testing.js. r=jdescottes. → Bug 1667526 - [devtools] Refactor and fix intermittent on browser_toolbox_options_enable_serviceworkers_testing.js. r=ladybenko.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/130d87d496e0 [devtools] Refactor and fix intermittent on browser_toolbox_options_enable_serviceworkers_testing.js. r=ladybenko.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: