Handle HTTP Refresh header (#36393)

Move parsing of Refresh values to Document.
Send Refresh header to Document and have meta tags reuse the logic.

I transplanted the existing Regex and made some updates so that it
passed all the existing parser tests.
I added the comments that made sense but it is not very clean to add
many comments within the regex.

Testing: There are existing WPT tests

---------

Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
Sebastian C 2025-04-11 02:25:37 -05:00 committed by GitHub
parent 80a6ba5e42
commit 2c7aeca404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 147 additions and 373 deletions

View file

@ -0,0 +1,3 @@
[allow-scripts-flag-changing-1.html]
[Meta refresh is blocked by the allow-scripts sandbox flag at its creation time, not when refresh comes due]
expected: FAIL

View file

@ -0,0 +1,3 @@
[allow-scripts-flag-changing-2.html]
[Meta refresh of the original iframe is not blocked if moved into a sandboxed iframe]
expected: FAIL