layout: Allow same ScriptThread <iframe>s to be resized synchronously (#34656)

Post layout, when a `Window` has all of the new `<iframe>` sizes, size
any `Window`s for `Pipeline`s in the same `ScriptThread` synchronously.
This ensures that when laying out from the outermost frame to the
innermost frames, the frames sizes are set properly.

There is still an issue where a non-same-`ScriptThread` `<iframe>` sits
in between two `<iframe>`s of the same origin. According to the
specification these frames should all be synchrnously laid out --
something quite difficult in Servo. This is issue #34655.

This is the first change in a series of changes to improve the
consistency of `<iframe>` loading and sizing.

Fixes #14719.
Fixes #24569.
Fixes #24571.
Fixes #25269.
Fixes #25275.
Fixes #25285.
Fixes #30571.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2024-12-17 10:37:52 +01:00 committed by GitHub
parent 1e17dfdf31
commit 0a01d06968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 56 additions and 80 deletions

View file

@ -1,5 +1,4 @@
[element-img-environment-change.https.sub.html]
expected: TIMEOUT
[sec-fetch-site - Cross-site, no attributes]
expected: FAIL
@ -59,3 +58,9 @@
[sec-fetch-site - Same origin, no attributes]
expected: FAIL
[sec-fetch-storage-access - Cross-site, no attributes]
expected: FAIL
[sec-fetch-storage-access - Same site, no attributes]
expected: FAIL

View file

@ -1,46 +1,54 @@
[element-img-environment-change.sub.html]
expected: TIMEOUT
[sec-fetch-site - Not sent to non-trustworthy same-site destination, no attributes]
expected: FAIL
[sec-fetch-site - Not sent to non-trustworthy cross-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-mode - Not sent to non-trustworthy same-origin destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-mode - Not sent to non-trustworthy same-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-mode - Not sent to non-trustworthy cross-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-dest - Not sent to non-trustworthy same-origin destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-dest - Not sent to non-trustworthy same-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-dest - Not sent to non-trustworthy cross-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-user - Not sent to non-trustworthy same-origin destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-user - Not sent to non-trustworthy same-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-user - Not sent to non-trustworthy cross-site destination, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-site - HTTPS downgrade (header not sent), no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-site - HTTPS upgrade, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-site - HTTPS downgrade-upgrade, no attributes]
expected: NOTRUN
expected: FAIL
[sec-fetch-site - Not sent to non-trustworthy same-origin destination, no attributes]
expected: FAIL
[sec-fetch-storage-access - Not sent to non-trustworthy same-origin destination, no attributes]
expected: FAIL
[sec-fetch-storage-access - Not sent to non-trustworthy same-site destination, no attributes]
expected: FAIL
[sec-fetch-storage-access - Not sent to non-trustworthy cross-site destination, no attributes]
expected: FAIL