Automatic update from web-platform-tests
[iframe] Reset the size when navigating cross-origin
This patch resets the intrinsic size info from `<iframe>`
content when the content navigates cross-origin, to prevent
leaking the size information.
To do this, when `DocumentLoader` for an `<iframe>` child
content checks if it's a cross-origin navigation in
`CommitNavigation()`, and clears the natural dimension if so.
`FrameLoader` is changed to keep the old document origin.
`RenderWidgetHostViewChildFrame` needs a new queue for the
intrinsic size events, as its `frame_connector_` isn't set yet
at the `CommitNavigation()` timing.
`content_switch_dependent_feature_overrides.cc` is needed to
change to enable the flag in the browser when testing. In the
non-testing environments, the flag in Blink and Browser are
automatically synchronized.
The existing test `responsive-iframe-navigation.html` is
extended to test cross-origin as a new variant. In addition,
it tests the initial viewport size of the child frame.
All changes are under a runtime flag.
Bug: 418397278
Change-Id: If8977a4fab2f9bf0c7bdb7bd2dc7c939b2b03f64
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7893591
Commit-Queue: Koji Ishii <[email protected]>
Reviewed-by: Rakina Zata Amni <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1644590}
--
wpt-commits: baafee6d47fb8e90bdcd186d9cf2378042081b96
wpt-pr: 60522
Automatic update from web-platform-tests
Make flex/grid automatic min size support single-axis scroll container
Use axis-specific overflow checks when deciding whether to collapse
automatic minimum sizes for flex, grid, and aspect-ratio sizing.
Scrollability in the orthogonal axis no longer suppresses the
content-based minimum size.
Bug: 440038212
Fixed: 478922098
Change-Id: I2037d8324dde7227ac7fa27cd0847a1b7dffc398
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7511763
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Robert Flack <[email protected]>
Reviewed-by: Robert Flack <[email protected]>
Auto-Submit: Free Debreuil <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1641645}
--
wpt-commits: ff1994f3a92f96f90e356f806df883ccb6e20f32
wpt-pr: 60380
Automatic update from web-platform-tests
[iframe] Rename tests to be more descriptive
This patch adds `-meta-` to `-dynamic-` file names, because
they are about dynamic tree manipulations of`<meta>` tags.
Bug: 418397278
Change-Id: Ic435e61dfe8baba97aaa3473008cfb79dcd1d65b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7895363
Commit-Queue: Kent Tamura <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1640714}
--
wpt-commits: b8feb1ba24bb89b6f22546bb830ab65f423f7ba0
wpt-pr: 60353
Automatic update from web-platform-tests
[iframe] Add a test for changing the `name` of `<meta>`
Changing the `name` attribute of the `<meta>` tag shouldn't
set the responsive embedded sizing flag.
Bug: 418397278
Change-Id: I5ceb64394758db4c64ea23fbf6db8b75ac756e33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7844655
Auto-Submit: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1630452}
--
wpt-commits: 96931ea247ef38ae9c345f66af7a402421ae9fc7
wpt-pr: 59871
Automatic update from web-platform-tests
[iframe] Use the utility function for `requestAnimationFrame`
This patch uses the utility function in `rendering-utils.js`
instead of using `requestAnimationFrame` directly, for better
interoperability and readability.
Bug: 418397278
Change-Id: Ib31a032f0dbddd123d92907cc797bd6918121b09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7768031
Reviewed-by: Kent Tamura <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1616176}
--
wpt-commits: 57d29c91fd3356d5cf194d8495db93d1dcb1ef5c
wpt-pr: 59300
Automatic update from web-platform-tests
[iframe] Add a cross-origin test
This patch increases the test coverage of crrev.com/c/7761006
by adding a cross-origin case to a existing test.
This patch has no behavior changes.
Bug: 418397278
Change-Id: I7d6921ac9c4ca5cb9855394c8e1ddb37b1b26f49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7760565
Auto-Submit: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1615657}
--
wpt-commits: 44501b979c79632151c0a744445aca226005b9a4
wpt-pr: 59302
Automatic update from web-platform-tests
[iframe] Remove tests for fallback sizing
The fallback sizing is pending since the Jan F2F, and there is
no active discussion to support it as of now.
This patch removes the obsolete test.
Bug: 418397278
Change-Id: I6c53e4c46d4647b2948111bd578070d54cd4e337
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7767754
Auto-Submit: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1616175}
--
wpt-commits: 7fe20e42e81cd163c0e5f90c09377f3a31a8e4c2
wpt-pr: 59299
Automatic update from web-platform-tests
[iframe] Clear the natural size if navigated to non-responsive page
This patch implements one of the CSS WG resolutions[1]:
> RESOLVED: Once we know the new page is not opted-in, we
> clear the size
To do this across renderer processes for OOPIF, a new flag
`is_cleared` is added to the mojo `IntrinsicSizingInfo` struct.
This flag is set when an `<iframe>` content starts processing
`<body>` without seeing the `<meta>` tag that opts-in to the
responsive sizing of the `<iframe>`, to clear natural sizes
received from its previous content.
[1]: https://github.com/w3c/csswg-drafts/issues/13589
Bug: 418397278
Change-Id: I19676dd72273fa66ba48894117aff77822f7ea75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7761006
Reviewed-by: Sam McNally <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1615630}
--
wpt-commits: fb35c08b1d9a26738699519403b285d97dd0f843
wpt-pr: 59253
Automatic update from web-platform-tests
[iframe] Make the `<meta>` valid only in the `<head>`
According to the [comment], "immutable" means:
(a) it can only be set by a parser-created <meta>
(b) it's set and frozen by the first such <meta> the parser
sees, and
(c) if the parser closes the <head> without seeing the meta
This patch implements the (c). The (a) and (b) are already
implemented.
Technically speaking, (c) means that "sees `<body>` or tags
that imply `<body>`", because the ["after head" insertion mode]
pushes `<meta>` elements after `<head>` but before `<body>`
into `<head>`. This patch has a test for this case too.
[comment]: https://github.com/w3c/csswg-drafts/issues/1771#issuecomment-3806639752
["after head" insertion mode]: https://html.spec.whatwg.org/multipage/parsing.html#the-after-head-insertion-mode
Bug: 418397278
Change-Id: Ic01b94eb3e502562cdd479435b6d0f77b30bb229
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7747506
Reviewed-by: Kent Tamura <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1613459}
--
wpt-commits: eb04f31bdab15b6cf6f503d1361c5b159b225367
wpt-pr: 59133
Automatic update from web-platform-tests
[iframe] Make the meta tag valid only by the parser
This patch changes to set the responsive embedded sizing flag
of the document only when `is_sync_parser_` flag is set, which
is used by the `Accept-CH`/`Delegate-CH` headers.
Bug: 418397278
Change-Id: I766aab06ae07841ed1f0a4d8e02efed1b4eae846
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7743780
Reviewed-by: Ian Kilpatrick <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1612619}
--
wpt-commits: 2e89ca7833c87aa2204bb880228fe261b21ed54a
wpt-pr: 59069
Automatic update from web-platform-tests
[iframe] Make the `<meta>` tag immutable
This patch changes the `responsive_embedded_sizing_` flag
to be immutable once it's set.
Bug: 418397278
Change-Id: I6fe832a1fae8861d85907abb30e40640bb26139a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7740881
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1612595}
--
wpt-commits: d7455807fa2ee3042175b55654eddba50258869c
wpt-pr: 59070
Automatic update from web-platform-tests
[iframe] Keep the last natural size
This patch keeps the last natural size received from the
embedded content in `HTMLFrameOwnerElement`.
When the content navigates out, and that `ChildFrameView` no
longer has a natural size, `LayoutIFrame` uses it.
There are some conditions this needs to be reset. They will be
in future patches.
Bug: 418397278
Change-Id: If4b5e9bbd19031145a10bf5eae881748718dff1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7714084
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1610706}
--
wpt-commits: 3f02a242f87fb34a87c816b7004bad14be50cc3a
wpt-pr: 59017
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=309086 (#58401)
glance.cx: Home page shows stretched image next to `Employee Workspaces` section
1. Go to https://www.glance.cx/
2. Scroll down till you find `Employee Workspace` section and next to it on left side, the image is stetched.
Results:
Image should not be stretched and should be as nice as other browsers (Google Chrome Canary 146 + Firefox Nightly 149 both works fine).
--
wpt-commits: 8969634965bc798ef46cbab5df70b6b9beab9ac2
wpt-pr: 58401
Automatic update from web-platform-tests
WebKit export: Absolutely positioned elements with intrinsic height incorrectly resolve percentage heights of children (#58161)
https://bugs.webkit.org/show_bug.cgi?id=308648
Co-authored-by: Brandon Stewart <[email protected]>
--
wpt-commits: aa5269d0206259397af4ee941297e35a04a56527
wpt-pr: 58161
Automatic update from web-platform-tests
layout: Ensure layout damage clears inline content size cache of parent
This change fixes an issue where layout damage to a node was not
clearing the inline content size cache of the parent node. In addition
it start to clean up the damage traversal logic is in preparation for
changes to the way that damage is processed and box tree layout is done.
Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Oriol Brufau <[email protected]>
Co-authored-by: Luke Warlow <[email protected]>
--
wpt-commits: eee28ab54459e33c0f1e3a57bbb727fd2935391c
wpt-pr: 57741
Automatic update from web-platform-tests
layout: SVG with zero size should get natural ratio from viewBox
This logic was (accidentally?) changed in 40761. Revert it back to the
original one, which is simpler, and matches Blink and WebKit.
Signed-off-by: Oriol Brufau <[email protected]>
--
wpt-commits: c7e6a1f0ed48a59074e23b10d4aa676e56668d90
wpt-pr: 57731
Automatic update from web-platform-tests
[iframe] Add backgrounds to some tests
This patch adds backgrounds to some tests so that they are
easier to analyze.
This patch has no behavior changes.
Bug: 418397278
Change-Id: Icdf37c86139793db1a8b6b0b1c2a1e386cfe964f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7557191
Commit-Queue: Kent Tamura <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1582069}
--
wpt-commits: 3314e513456091cdb259136ea3413793bea9613a
wpt-pr: 57668
Automatic update from web-platform-tests
[iframe] Support all values and `writing-mode`s
This patch supports all values of the `frame-sizing` property,
including its logical values. New tests include vertical flow
tests for the logical values.
To make the inline direction work, the tests set the `width`
of the root element. This is fine for the widget use cases,
but the WG discussion is still going on for when embedding
normal documents.
All changes are under an experimental runtime flag.
Bug: 418397278
Change-Id: I5e966ee7d379787ea4bbf322d036293b60f55d05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7532696
Commit-Queue: Koji Ishii <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1577259}
--
wpt-commits: 4e8040a9429f72a812532c27d8b58ee6f0f0d830
wpt-pr: 57437
Automatic update from web-platform-tests
[iframe] Switch the property to `frame-sizing`
This patch switches the responsive iframe CSS property from
`contain-intrinsic-block-size` to `frame-sizing`, as resolved
on Jan 27th[1].
Tests are also updated, with two exceptions:
* `responsive-iframe-logical.tentative.html` isn't meaningful
that it is removed.
* The fallback sizing was postponed to resolve, and thus its
test `responsive-iframe-fallback.tentative.html` is expected
to fail.
All changes are under a runtime flag currently experimental.
[1] https://github.com/w3c/csswg-drafts/issues/1771#issuecomment-3806716273
Bug: 418397278
Change-Id: If0f1db67a9690f9a58392b6a704d3dc405954cfd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7532195
Reviewed-by: Kent Tamura <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1576859}
--
wpt-commits: 2b23bedee17818e17710901799685a481712309d
wpt-pr: 57429