← Back to release summary

Special handling of localhost.localdomain host

Category
Network / Connectivity
Type
Feature removal
Status
In development (Chrome In development)
Intent stage
Start incubating

WPT details: Not tested yet. We could add entries for localhost.domain 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, host name "localhost.localdomain" resolves to the loopback addresses ::1 and 127.0.0.1, bypassing native DNS, and the corresponding origin is 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 "localhost.localdomain". Removing this 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