[Origin] Use the normal expectation for the 'file:' Origin.
'file:' is special, because it produces a non opaque origin, uses port= = 0, and the conversion from/blink blink preserves port == 0. Previous patch: https://chromium.googlesource.com/chromium/src/+/a444094dd1d17b48a5a93629ac864a5c43671287 provided a different expectations for origins with (port == 0). When this happens, blink replace zero by DefaultPortForPrototocol(scheme): - http => 80 - https => 443 - ws => 80 - wss => 443 - ftp => 21 - ftps => 990 - _ => 0 So when the scheme is "file", zero is replaced by zero and the transformation can be reversed. Fixed: 1143052 Bug: 1144091 Change-Id: I8368cba6fa341a67b579ccfd9c972aace9e1e2b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2510052 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#825279}
Showing
Please register or sign in to comment