← Back to release summary

Remove special handling of localhost6 and localhost6.localdomain6 hosts

Category
Network / Connectivity
Type
Feature removal
Status
Removed (Chrome Removed)
Intent stage
Removed

WPT details: Not tested yet. We could add entries for localhost6 and localhost6.domain6 in https://web-platform-tests.org/running-tests/from-local-system.html#hosts-file-setup and then test whether the browser override DNS and or treat origins as "potentially trustworthy".

Summary

Currently, "localhost6" and "localhost6.localdomain6" host names resolve to the IPV6 loopback address ::1 only, bypassing native DNS, and corresponding origins are treated as secured. The goal of this entry is to remove this non-standard behavior.

Motivation

Standards describe an optional resolution of the "localhost" host name and trustworthiness of corresponding origin [1] [2]. Users have complained about inconsistency between Chromium (which implements the spec), Firefox (which only implemented it recently) and WebKit (where patches are being submitted). Hopefully things can be make consistent and the specification a bit stricter. However, Chromium also has similar but non-standard behavior for "localhost6" and "localhost6.localdomain6". Removing these would help to make things more predictable for users.

Standards & signals

Ecosystem

Docs: https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06 https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy

View on chromestatus.com