Aligns behavior with the standard in edge cases when changing the URL protocol to or from "file". Previously, attempting to change the protocol of a URL with credentials or a port to "file" would lead to an invalid URL. Similarly, attempting to change a URL with no host from "file" to "http" would lead to an invalid URL. Now the invalid change will be ignored for consistency with other browsers. This affects the "protocol" attribute on the URL API, location, and <a> and <area> elements.
Improved standards compliance and interoperability with other browsers.
Status in Chromium
Enabled by default in:
- Chrome for desktop release 90
- Chrome for Android release 90
- Android WebView release 90
Consensus & Standardization
Last updated on 2021-05-23