Automatic update from web-platform-tests
[FlexNG] Adjust flexbox info for item expansion
When a flex-item expands due to fragmentation, we need to adjust the
intrinsic-block-size and subsequent offsets.
To accomplish this, store the original block-size of each item on
NGFlexItem, and reduce the original block-size as the item is
fragmented. If this block-size becomes negative, we know the item
expanded as a result of fragmentation.
This expansion is then accumulated within the NGFlexLine where it
can be used to adjust the offsets of subsequent items.
LayoutWithBlockFragmentation() was also removed, and its logic
was moved into GiveItemsFinalPositionAndSizeForFragmentation() for
convenience.
Bug: 660611
Change-Id: I67524cd436a87aebd52382682b2cea9d9d32b018
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3290486
Commit-Queue: Alison Maher <almaher@microsoft.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#943323}
--
wpt-commits: 4dbe77e9bdb59b6b01ceec2fce327ceda5310b06
wpt-pr: 31669
Automatic update from web-platform-tests
Refactor out common code in partitioned service worker test iframes
The partitioned service worker WPT iframes have some common code
(generally around registering and unregistering service workers) that
this CL refactors into a utility function.
Bug: 1246549
Change-Id: I05aa0e97b7ab8afb01c6ea4fd7f6c7b3109692c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3288452
Reviewed-by: Ben Kelly <wanderview@chromium.org>
Commit-Queue: Steven Bingler <bingler@chromium.org>
Cr-Commit-Position: refs/heads/main@{#943313}
--
wpt-commits: ec05bd84ebcaaa27af1eb1b34bb7b05e06aa8af7
wpt-pr: 31661
Automatic update from web-platform-tests
[GridNG] Basic parsing of subgrid keyword
In this CL basic parsing of subgrid in grid-template-columns/rows is
introduced, as well as a web test to validate the behavior. A TODO was
added to allow empty line names in subgrid's track list.
Additionally, the TestExpectations file is changed to unskip the web
tests under css-grid/subgrid.
Bug: 618969
Change-Id: I7af3939717b463b7b3654deddf6c033bf1ca6bfe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3259861
Reviewed-by: Ethan Jimenez <ethavar@microsoft.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Ana Sollano Kim <ansollan@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#943309}
--
wpt-commits: 8e083afc86ee199432abf167a2a9ff6ee3cc5d7a
wpt-pr: 31529
Automatic update from web-platform-tests
AppHistory should restore sameDocument / state in non-current entries
When navigating cross-document, AppHistory reconstructs its entries()
array from information provided by the browser process. It has much
less information for the non-current entries, but that information
should include everything exposed by the AppHistory API.
Currently, the sameDocument bit and state value are not restored, so
they will have default values (false and undefined, respectively).
Actually plumb and restore them.
Bug: 1269851
Change-Id: I58ea07349ef849f1362e0dc24411f3d266e6d095
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3279565
Commit-Queue: Nate Chapin <japhet@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#943277}
--
wpt-commits: a1c7025f371f499d4fd022d1005dee46066841ce
wpt-pr: 31622
Automatic update from web-platform-tests
[SPC] Remove prefix from SPC test names (#31675)
Tests are already in the SPC folder, so don't need a prefix - and removing it
substantially shortens the filenames!
--
wpt-commits: 30fb55c8e36352ed919dcdc152892ddcf727363c
wpt-pr: 31675
Automatic update from web-platform-tests
[SPC] Test cross-origin authentication ceremony, and SPC in an iframe (#31662)
--
wpt-commits: 70d295cbc1821a3a0d4b265afaaa94e213d77ee5
wpt-pr: 31662
Automatic update from web-platform-tests
[Fixit] Move some frameNavigation web tests to WPTs.
Convert some older web tests into WPTs.
Bug: 1187081
Change-Id: I6b24765bb311608110646259ca6db0d4faebb8ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3284525
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Reviewed-by: Titouan Rigoudy <titouan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#943060}
--
wpt-commits: 6a8753030e1d0064d35c84c2225632c3e4f3c3d6
wpt-pr: 31660
Automatic update from web-platform-tests
Add a test for hit testing in transformed element under multicol
Bug: 1066629
Change-Id: I4b285bd1d425765dc68f15be49f65f550dcd1248
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3288730
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#943059}
--
wpt-commits: 231059865611e8b9b981cf08644e2761cb752096
wpt-pr: 31667
Automatic update from web-platform-tests
New tets for use of currentColor in @font-palette-values
--
wpt-commits: e14ed8613f431e528b83f074ce37cf6e22dd95b6
wpt-pr: 31517
Automatic update from web-platform-tests
Workers: fix setting-port-members.html
This fixes https://github.com/web-platform-tests/wpt/issues/31125.
According to https://webidl.spec.whatwg.org/#LegacyTreatNonObjectAsNull callback functions can be objects if they are annotated with the [LegacyTreatNonObjectAsNull] extended attribute.
Hence, the value of worker.port.onmessage should be the object itself instead of null.
--
wpt-commits: d3cd862e6474a8f97305ba1bca4531864971238a
wpt-pr: 31673
Automatic update from web-platform-tests
SVG Text NG: Fix text layout after ancestor transform change
If 'transform' property of an ancestor is changed, and <text> is
painted without laying out, the content was painted at a wrong position
because the <text> kept positions computed with the old scaling factor.
This CL fixes it by invalidating <text> layout on 'transform' changes
on any ancestors.
Note: Why the legacy SVG <text> didn't need the invalidation?
Actually it's necessary for the legacy SVG <text> too. Fortunately the
legacy SVG <text> stores unscaled positions, and paint text on the
almost right positions. However the positions were computed with the
old scaled fonts, and they are not ideal results with the new scaling
factor.
Bug: 1270713
Change-Id: I2d972a16f1203bb3505c3ac4d78388167b6ee383
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3289567
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#942976}
--
wpt-commits: 41ce16f8d09d9ab0ef7db55d9460119a298b75b4
wpt-pr: 31670
Automatic update from web-platform-tests
Add a WPT for pointerevent user activation trigger.
Related to HTML issue: https://github.com/whatwg/html/issues/3849
Bug: 826293
Change-Id: I9e4bc0df46df63e05dac64af32c1aab7cdabffe4
--
wpt-commits: 266273172093e63a85e72b184735342d5c298797
wpt-pr: 31632
Automatic update from web-platform-tests
[Fixit] Clean up Navigating-across-documents WPT section.
Reorganize external/wpt/html/browsers/browsing-the-web/navigating-across-documents/
before rewriting http/tests/security/frameNavigation/ as WPTs into that folder.
In details:
- Move common simple html files into the resources/ folder.
- Change 009.html expectation to Timeout, update the outdated bug with
a newly created one.
Bug: 1187081
Change-Id: I31a78a2a4b916be2e9d47bab0dec48911ed4acfa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3282188
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#942555}
--
wpt-commits: 55a5e683c80f1254f413f498ad828859cbe15dcc
wpt-pr: 31633
Automatic update from web-platform-tests
Fix `position:sticky` tests to not depend on scrollbar size (#31656)
Some sticky tests have a dependency on the size of the vertical and
horizontal scrollbars. Some browser engines do not make room for a
scrollbar or have scrollbars of different sizes, so rewrite the tests to
no longer have this dependency. Also, disable scrollbars (using
`overflow: hidden` instead of `overflow:scroll`) in order to avoid
introducing this kind of dependency when writing new tests.
--
wpt-commits: 040266edb6d5defe9eb3325120639e8e70eaf06f
wpt-pr: 31656
mach will initialize from comm/build/mach_initialize.py if it's present.
See bug 1731160. The initialization function wraps the one in build/mach_initialize.py,
then extends sys.path and loads more mach_commands.py files
Differential Revision: https://phabricator.services.mozilla.com/D131869
Previously, we tried to get a COM proxy even when the cache was enabled, which just crashed.
As part of this, use a RefPtr instead of manually managing references.
Differential Revision: https://phabricator.services.mozilla.com/D132104
XUL images use nsImageBoxFrame, not nsImageFrame.
AccessibleType() returns eNoType on nsImageBoxFrame.
Changing this to return eImageType seems a bit risky and adding a new type just for an assertion seems pointless.
Therefore, we just check the frame type.
Differential Revision: https://phabricator.services.mozilla.com/D132051
We only need to default `browser.urlbar.merino.enabled` to true. If the user has
opted in (either through the modal or by toggling on the data collection pref in
the prefs UI), then `quicksuggest.dataCollection.enabled` will also be true and
we'll fetch Merino suggestions. Otherwise it will be false and we won't fetch
Merino suggestions. That logic is implemented here:
https://searchfox.org/mozilla-central/rev/9a5f36b0ddb9cb8ae556fc5b45f8ccea0f0da6f8/browser/components/urlbar/UrlbarProviderQuickSuggest.jsm#144
Note this defaults the pref to true for everyone, even users in offline. It make
senses now that we have a separate toggle for data collection in the preferences
UI. Even offline users can opt in to Merino and data collection.
I also updated the various sets of prefs for test suites so that the Merino
endpoint URL is empty when running tests so they don't hit the network. I could
have forced `merino.enabled` to false instead, but setting the endpoint URL has
a couple of benefits, although admittedly they're very small:
* It runs a little more of the Merino code path (i.e., calls
`_fetchMerinoSuggestions`)
* It lets Merino tests set only one pref, the endpoint URL, instead of two, both
the endpoint pref and enabled pref
Differential Revision: https://phabricator.services.mozilla.com/D131988
When we use OP_OVER for the final blit in WindowSurfaceX11Image::Commit,
this causes Cairo to hit a compositing fallback that uses XGetImage on
the window to get the pixel data, blends to it, then XPutImage's the
result back. We want to avoid this both because XGetImage may cause
errors and it is slow to read back from the window server.
If we use CopySurface/OP_SOURCE instead we avoid the readback via
XGetImage and so bypass both problems.
Differential Revision: https://phabricator.services.mozilla.com/D132319