Return early in Page.navigate for all non-http traffic
Categories
(Remote Protocol :: CDP, defect, P1)
Tracking
(firefox78 fixed)
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: impossibus, Assigned: impossibus)
References
Details
(Whiteboard: [puppeteer-beta-reserve])
Attachments
(2 files)
It already returns early for data: and about: schemes, so this just expands the condition.
Otherwise the command times out because the current implementation is waiting for events that don't occur in these cases.
This at least makes the command usable for file:// etc while follow-up bugs get fixed (such as Bug 1634690)
Assignee | ||
Comment 1•5 years ago
|
||
While writing a test for file urls, I saw RemoteAgent.close() hit an error in test teardown because a destructor was unable to look up the id of a target to clean up. For some reason, that target did not have a browsing context id. (Perhaps it wasn't fully initialized after file:// navigation?)
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=300284517&repo=try&lineNumber=4798
Excerpt:
RemoteAgent ERROR unable to stop listener: TypeError: can't access property "id", this.browsingContext is null(chrome://remote/content/targets/TabTarget.jsm:55:5) JS Stack trace: get id@TabTarget.jsm:55:5
destroyTarget@TargetList.jsm:104:5
destructor@TargetList.jsm:114:12
close@RemoteAgent.jsm:115:22
fn@head.js:90:25
Async*Tester_execTest/<@browser-test.js:1039:34
async*Tester_execTest@browser-test.js:1074:11
nextTest/<@browser-test.js:904:14
SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@SimpleTest.js:918:23
!!! could not start server on port 9222: [Exception... "Component returned failure code: 0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.init]" nsresult: "0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE)" location: "JS frame :: chrome://remote/content/server/HTTPD.jsm :: _start :: line 567" data: no]
1588278702525 RemoteAgent ERROR unable to stop listener: [Exception... "Unexpected error" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://remote/content/server/HTTPD.jsm :: stop :: line 621" data: no] Stack trace: stop()@HTTPD.jsm:621
close()@RemoteAgent.jsm:119
asyncListen()@RemoteAgent.jsm:100
Assignee | ||
Comment 2•5 years ago
|
||
This fixes exceptions hit in destructors when the browsing context
is null.
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D73459
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6253f484818a
https://hg.mozilla.org/mozilla-central/rev/c3478c000960
Updated•5 years ago
|
Updated•4 years ago
|
Description
•