Skip to content

Commit c5874d1

Browse files
mscdexitaloacasas
authored andcommitted
url: remove invalid file protocol check
'file' should have been 'file:' but since the WHATWG URL spec suggests using an opaque origin (which is what was already being used for file URLs), we'll just keep using that, making this merely a cleanup. PR-URL: #11691 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c627980 commit c5874d1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/internal/url.js

-1
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,6 @@ function originFor(url, base) {
10431043
case 'https:':
10441044
case 'ws:':
10451045
case 'wss:':
1046-
case 'file':
10471046
origin = new TupleOrigin(protocol.slice(0, -1),
10481047
url[context].host,
10491048
url[context].port,

0 commit comments

Comments
 (0)