From 2db5636f6a24c242311e34475f75181bd1043193 Mon Sep 17 00:00:00 2001 From: Mike West Date: Tue, 26 Mar 2019 03:58:47 -0700 Subject: [PATCH] Verify `Sec-Fetch-Site` is correct for domains with trailing dots. `example.com` != `example.com.`. These are clearly distinct origins, and we don't currently consider them to have the same registrable domain (though there's a bit of a question about that. See https://github.com/publicsuffix/list/issues/792), so they ought to compare as `cross-site` This patch adds a test for this behavior, and teaches the test harness to resolve domains that end in `.test.`. Closes https://github.com/mikewest/sec-metadata/issues/15. Bug: 843478 Change-Id: Ic71afeda69f274c23c19608177756d882307a59d --- .../trailing-dot.tentative.https.sub.html | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 fetch/sec-metadata/trailing-dot.tentative.https.sub.html diff --git a/fetch/sec-metadata/trailing-dot.tentative.https.sub.html b/fetch/sec-metadata/trailing-dot.tentative.https.sub.html new file mode 100644 index 000000000000000..85f9c73c6ae22fb --- /dev/null +++ b/fetch/sec-metadata/trailing-dot.tentative.https.sub.html @@ -0,0 +1,45 @@ + + + + +