From eaeb47f1af651e9346961478bd6d1342aac08e26 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Date: Mon, 4 Jun 2018 14:39:26 +0200
Subject: [PATCH 1/2] Build upon URL rather than PSL
Instead of "parsing" the Public Suffix List directly, use new terminology from the URL Standard.
Fixes #3711.
---
source | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
diff --git a/source b/source
index fdae91a1c58..0827288d3a6 100644
--- a/source
+++ b/source
@@ -2660,6 +2660,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
- host
+ - registrable domain
- domain
- IPv4 address
- IPv6 address
@@ -79672,28 +79673,24 @@ interface BarProp {
If host is failure, then return false.
-
-
If host is not equal to
- originalHost, then run these substeps:
+ If host does not equal originalHost,
+ then:
-
If host or originalHost is not a domain, then return false.
- This is meant to exclude hosts that are an
- IPv4 address or an IPv6 address.
+ This excludes hosts that are an IPv4
+ address or an IPv6 address.
If host, prefixed by a U+002E FULL STOP (.), does not exactly match the end
of originalHost, then return false.
+
- -
-
If host matches a suffix in the Public Suffix List, or, if host,
- prefixed by a U+002E FULL STOP (.), matches the end of a suffix in the Public Suffix List,
- then return false.
-
- Suffixes must be compared after applying the host parser algorithm.
-
+ If host's registrable domain is null, then return false.
@@ -120301,10 +120298,6 @@ INSERT INTERFACES HERE
- [PRESENTATION]
- Presentation API, M. Foltz, D. Röttsches. W3C.
- - [PSL]
- - Public Suffix List.
- Mozilla Foundation.
-
- [REFERRERPOLICY]
- Referrer Policy, J. Eisinger, E. Stark. W3C.
From 563d9d8fc84c6b5afef6ccba922d63e1a1920b23 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Date: Thu, 7 Jun 2018 10:53:57 +0200
Subject: [PATCH 2/2] nit
---
source | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/source b/source
index 0827288d3a6..d55500e92c7 100644
--- a/source
+++ b/source
@@ -2660,7 +2660,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
- host
- - registrable domain
+ - public suffix
- domain
- IPv4 address
- IPv6 address
@@ -79689,8 +79689,8 @@ interface BarProp {
of originalHost, then return false.
- If host's registrable domain is null, then return false.
+ If host equals host's
+ public suffix, then return false.