Releases: web-platform-tests/wpt
merge_pr_51960
Implement "Create a Trusted Type" algorithm
This algorithm is quite straightforward written in the specification,
but leads to some type awkwardness in Rust. Most notably, the callbacks
have different types and cannot be unified easily. They also return
different string types. Similarly, the returning objects are all unique
types and don't have a common denominator.
Therefore, rather than implementing it in 1-to-1 fashion with the
specification text, it instead uses callbacks to instruct the type
system of what to call when.
This is further complicated by the fact that the callback can exist
or not, as well as return a value or not. This requires multiple
unwrangling, combined with the fact that the algorithm should throw
or not.
All in all, the number of lines is relatively low compared to the
specification algorithm and the Rust compiler does a lot of heavy
lifting figuring out which type is what.
Part of #36258
Signed-off-by: Tim van der Lippe tvanderlippe@gmail.com
merge_pr_51959
Revert "Disable unstable test in CSSTransition-startTime.tentative.html"
This reverts commit 07b0abf.
merge_pr_51955
When stripping comments, take quoting into account.
When trying to locate the last non-comment non-whitespace,
we'd assume that /* always started a comment, without considering
that this may have been inside a quote. Properly track quoting
state throughout the string, which fixes this issue.
Fixed: 40926634
Change-Id: I8de4ce5c9fba2da776be0a64f83318c58928690e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6448432
Reviewed-by: Anders Hartvoll Ruud andruud@chromium.org
Commit-Queue: Steinar H Gunderson sesse@chromium.org
Cr-Commit-Position: refs/heads/main@{#1445855}
merge_pr_51954
[pathbuilder] Avoid path transformation in GetPathWithObjectZoom()
Instead of transforming the path result in GetPathWithObjectZoom(),
plumb a GetPath() scale factor |path_scale|, and apply at construction.
The GetPathFromCenter() |zoom| parameter is never used in
implementations, so |path_scale| replaces it.
Bug: 378688986
Change-Id: If5f9286ed95badb023fa1e7a9d7e0c8fd4ea63b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6449031
Reviewed-by: Fredrik Söderquist fs@opera.com
Commit-Queue: Florin Malita fmalita@chromium.org
Cr-Commit-Position: refs/heads/main@{#1445799}
merge_pr_51952
corner-shape: account for diagonal overlaps
The previous mechanism for rendering corner-shape with border
was to intersect two diagonal paths.
This assumes that diagonal corners cannot intercept.
However, there are extreme conditions (added in WPT) where
diagonal concave corners CAN overlap.
So instead of intersecting two paths, this intersects 4 paths,
one for each corner.
We can optimize this in the future by trimming beziers instead
of intersecting the whole path, but going with correctness first.
Bug: 399449172
Change-Id: Id8e14524633074bb8b69a11c1f99e4076de7d015
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6445851
Reviewed-by: Fredrik Söderquist fs@opera.com
Commit-Queue: Noam Rosenthal nrosenthal@chromium.org
Cr-Commit-Position: refs/heads/main@{#1445754}
merge_pr_51950
SpeculationRules: Add WPTs for speculation tags with multiple rulesets
Bug: 404294138
Change-Id: I845ab0b66ac43d0013fda40dcc91e752423eed2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6450100
Commit-Queue: Hiroki Nakagawa nhiroki@chromium.org
Reviewed-by: Huanpo Lin robertlin@chromium.org
Reviewed-by: Domenic Denicola domenic@chromium.org
Cr-Commit-Position: refs/heads/main@{#1445685}
merge_pr_51949
SpeculationRules: Add WPT for tags with prerender target hint
Bug: 404294138
Change-Id: I053ee6570a2ffe9b1cf0708cecf5b7ba552d8b39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6448772
Commit-Queue: Hiroki Nakagawa nhiroki@chromium.org
Reviewed-by: Domenic Denicola domenic@chromium.org
Reviewed-by: Huanpo Lin robertlin@chromium.org
Cr-Commit-Position: refs/heads/main@{#1445677}
merge_pr_51947
Fix encoded_body_size for the race-network-and-fetch-handler
This is the bug fix CL to address the issue that the encodedBodySize
in the resource timing API has 0
even if it actually has body data.
This is because the response head lacks was_fetched_via_service_worker
flag when the matched router source is race-network-and-fetch-handler
and the network wins the race. Without was_fetched_via_service_worker
,
the encoded body size is not calculated in DocumentLoader
[1].
This is a short-term fix, eventually we should change the code to handle
the response from the network as if the response came from the fetch
event for the case of race-network-and-fetch-handler
for the
consistnecy.
Bug: 404577046
Change-Id: I400a2563fc957a97053b98e64b28048b63cdcbf4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6432968
Commit-Queue: Shunya Shishido sisidovski@chromium.org
Reviewed-by: Yoshisato Yanagisawa yyanagisawa@chromium.org
Reviewed-by: Keita Suzuki suzukikeita@chromium.org
Reviewed-by: Shunya Shishido sisidovski@chromium.org
Cr-Commit-Position: refs/heads/main@{#1445641}
merge_pr_51946
Part 2 - Add WPT for spanning grid items with auto size that should not have content-based automatic minimum size.
The specific situation (min-width: 0 in particular) was not correctly handled
in Firefox. There was no WPT that tested only this case in isolation.
Differential Revision: https://phabricator.services.mozilla.com/D244448
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1946177
gecko-commit: 515513649418e528fb383ed565b5e4d2ed4c5f09
gecko-reviewers: TYLin
merge_pr_51945
Fixed wpt transparent-text tests to verify 'last' entry rather than look at count
The assert was previously written with the assumption that only the
desired entry would be in the list. While the desired entry does need to
be the last one, it doesn't need to be the only one.
Differential Revision: https://phabricator.services.mozilla.com/D241892
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1954610
gecko-commit: 72d7a5668f5c55d812a69bb484a4e5704f19bbed
gecko-reviewers: sefeng