fix: meta referrer updating to follow spec (#36390)

Previously the referrer policy used tree order but the spec only cares
about the most-recently-updated or most-recently-added meta referrer.

Testing: change has existing WPT tests

---------

Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
Sebastian C 2025-04-07 17:29:12 -05:00 committed by GitHub
parent bfbe464eba
commit 9bdc46d66b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 28 additions and 46 deletions

View file

@ -1,3 +0,0 @@
[first-meta-changed-after-second-added.http.html]
[document referrer policy is the value of the most recently modified <meta name="referrer"]
expected: FAIL

View file

@ -1,3 +0,0 @@
[meta-referrer-outofhead-fetch.http.html]
[Referer header was not send]
expected: FAIL

View file

@ -1,3 +0,0 @@
[meta-referrer-removed-2.http.html]
[referrer policy does not change when second <meta name="referrer"> is removed]
expected: FAIL