Closed Bug 1557083 Opened 1 year ago Closed 1 year ago

Intermittent devtools/client/netmonitor/test/browser_net_block.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_block.js:67 - TypeError: contextUnblock is null

Categories

(DevTools :: Netmonitor, defect, P5)

defect

Tracking

(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox69 wontfix, firefox70 wontfix, firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- fixed

People

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

Details

(Keywords: intermittent-failure, regression)

Attachments

(3 files)

Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=250157457&repo=try
Full log: https://queue.taskcluster.net/v1/task/dmvPybcDQzevQi783l83HA/runs/0/artifacts/public/logs/live_backing.log


13:49:30 INFO - TEST-START | devtools/client/netmonitor/test/browser_net_block.js
13:49:31 INFO - TEST-INFO | started process screenshot
13:49:31 INFO - TEST-INFO | screenshot: exit 0
13:49:31 INFO - Buffered messages logged at 13:49:30
13:49:31 INFO - Entering test bound
13:49:31 INFO - Initializing a network monitor pane.
13:49:31 INFO - Adding a new tab with URL: http://example.com/browser/devtools/client/netmonitor/test/html_simple-test-page.html
13:49:31 INFO - Tab added and finished loading
13:49:31 INFO - Net tab added successfully: http://example.com/browser/devtools/client/netmonitor/test/html_simple-test-page.html
13:49:31 INFO - Network monitor pane shown successfully.
13:49:31 INFO - Disabling cache and reloading page.
13:49:31 INFO - Got marker: dom-interactive
13:49:31 INFO - Got marker: dom-complete
13:49:31 INFO - Got two timeline markers, done waiting
13:49:31 INFO - Request server1.conn6.netEvent4 for http://example.com/browser/devtools/client/netmonitor/test/html_simple-test-page.html done
13:49:31 INFO - All requests finished
13:49:31 INFO - Cache disabled when the current and all future toolboxes are open.
13:49:31 INFO - TEST-PASS | devtools/client/netmonitor/test/browser_net_block.js | Request to reconfigure the tab was recorded. -
13:49:31 INFO - Clearing requests in the console client.
13:49:31 INFO - Clearing requests in the UI.
13:49:31 INFO - Starting test...
13:49:31 INFO - Console message: [JavaScript Warning: "Relative positioning of table rows and row groups is now supported. This site may need to be updated because it may depend on this feature having no effect." {file: "resource://devtools/client/netmonitor/src/components/RequestListHeader.js" line: 423}]
13:49:31 INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 0/1, got NetMonitor:NetworkEvent for server1.conn6.netEvent23
13:49:31 INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 1/1, got NetMonitor:PayloadReady for server1.conn6.netEvent23
13:49:31 INFO - Buffered messages logged at 13:49:31
13:49:31 INFO - Captured normal request
13:49:31 INFO - Set request to blocked
13:49:31 INFO - Reloading to check block
13:49:31 INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 0/1, got NetMonitor:NetworkEvent for server1.conn6.netEvent42
13:49:31 INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 1/1, got NetMonitor:PayloadReady for server1.conn6.netEvent42
13:49:31 INFO - Captured blocked request
13:49:31 INFO - Buffered messages finished
13:49:31 INFO - TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_block.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_block.js:67 - TypeError: contextUnblock is null
13:49:31 INFO - Stack trace:
13:49:31 INFO - @chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_block.js:67:5
13:49:31 INFO - Leaving test bound
13:49:31 INFO - GECKO(4240) | console.warn: "Error while detaching the thread front: 'detach' request packet to 'server1.conn6.child1/context18' can't be sent as the connection is closed."
13:49:31 INFO - Removing tab.
13:49:31 INFO - Waiting for event: 'TabClose' on [object XULElement].
13:49:31 INFO - Got event: 'TabClose' on [object XULElement].
13:49:31 INFO - Tab removed and finished closing
13:49:31 INFO - finish() was called, cleaning up...
13:49:31 INFO - Not taking screenshot here: see the one that was previously logged
13:49:31 INFO - TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_block.js | A promise chain failed to handle a rejection: Error while calling method getResponseHeaders: 'getResponseHeaders' pending request packet to 'server1.conn6.netEvent42' can't be sent as the connection just closed. - stack: _requestData/response</<@resource://devtools/client/netmonitor/src/connector/firefox-data-provider.js:527:15
13:49:31 INFO - safeOnResponse@resource://devtools/shared/client/debugger-client.js:342:14
13:49:31 INFO - listenerJson@resource://devtools/shared/client/debugger-client.js:362:14
13:49:31 INFO - emit@resource://devtools/shared/event-emitter.js:186:24
13:49:31 INFO - emit@resource://devtools/shared/event-emitter.js:267:18
13:49:31 INFO - reject@resource://devtools/shared/client/debugger-client.js:774:15
13:49:31 INFO - purgeRequests/<@resource://devtools/shared/client/debugger-client.js:785:48
13:49:31 INFO - purgeRequests@resource://devtools/shared/client/debugger-client.js:785:29
13:49:31 INFO - onClosed@resource://devtools/shared/client/debugger-client.js:729:10
13:49:31 INFO - close@resource://devtools/shared/transport/local-transport.js:154:20
13:49:31 INFO - close@resource://devtools/shared/transport/local-transport.js:150:13
13:49:31 INFO - close@resource://devtools/shared/transport/local-transport.js:150:13
13:49:31 INFO - cleanup@resource://devtools/shared/client/debugger-client.js:204:25
13:49:31 INFO - detachClients@resource://devtools/shared/client/debugger-client.js:229:9
13:49:31 INFO - DebuggerClient.requester/</<@resource://devtools/shared/client/debugger-client.js:118:9
13:49:31 INFO - exports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:22
13:49:31 INFO - safeOnResponse@resource://devtools/shared/client/debugger-client.js:342:14
13:49:31 INFO - listenerJson@resource://devtools/shared/client/debugger-client.js:362:14
13:49:31 INFO - emit@resource://devtools/shared/event-emitter.js:186:24
13:49:31 INFO - emit@resource://devtools/shared/event-emitter.js:267:18
13:49:31 INFO - emitReply@resource://devtools/shared/client/debugger-client.js:647:45
13:49:31 INFO - callFunctionWithAsyncStack@resource://devtools/shared/platform/stack.js:61:13
13:49:31 INFO - onPacket@resource://devtools/shared/client/debugger-client.js:649:9
13:49:31 INFO - send/<@resource://devtools/shared/transport/local-transport.js:64:23
13:49:31 INFO - exports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:22
13:49:31 INFO - callFunctionWithAsyncStack@resource://devtools/shared/platform/stack.js:61:13
13:49:31 INFO - executor@resource://devtools/shared/DevToolsUtils.js:57:9
13:49:31 INFO - exports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:22
13:49:31 INFO - Rejection date: Wed Jun 05 2019 13:49:31 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 257

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

This middleware will be useful to wait for actions from tests

This failure is becoming a permafail on ash (https://treeherder.mozilla.org/#/jobs?repo=ash) where session history refactor is ongoing.
The test is not properly waiting for requests to be blocked/unblocked before triggering document reloads, so it's exposed to race conditions when document reload changes.

Depends on D45498
This makes the test run fine on top of the changes for the session history rewrite.

Assignee: nobody → jdescottes
Status: REOPENED → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/613f24ecf1c3
Add thunk middleware to netmonitor; r=Honza
https://hg.mozilla.org/integration/autoland/rev/576da2d2bf32
Webconsole actor should wait for block/unblock requests to be processed by netmonitors r=nchevobbe,Honza
https://hg.mozilla.org/integration/autoland/rev/82611a6d116f
Emit actions from netmonitor store after requests are blocked/unblocked r=Honza
Flags: needinfo?(jdescottes)
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5fef40e6012f
Add thunk middleware to netmonitor; r=Honza
https://hg.mozilla.org/integration/autoland/rev/2f5ac95ff064
Webconsole actor should wait for block/unblock requests to be processed by netmonitors r=nchevobbe,Honza
https://hg.mozilla.org/integration/autoland/rev/5ee0e90097cb
Emit actions from netmonitor store after requests are blocked/unblocked r=Honza
Status: ASSIGNED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
You need to log in before you can comment on or make changes to this bug.