Граф коммитов

836029 Коммитов

Автор SHA1 Сообщение Дата
Rob Wu e505210f70 Bug 1821303 - Add hasPostData bool to nsISHEntry r=smaug
To avoid unnecessary cloning of nsIInputStream, add a hasPostData
boolean attribute to tell whether a nsISHEntry has populated postData.

Differential Revision: https://phabricator.services.mozilla.com/D173237
2023-03-29 15:50:45 +00:00
Rob Wu dbf7c989d2 Bug 1821303 - Detect POST in condition for allowAllRequests action r=rpl,peterv
Differential Revision: https://phabricator.services.mozilla.com/D173236
2023-03-29 15:50:44 +00:00
Rob Wu b4a2a0a4d0 Bug 1821303 - Add getter for activeSessionHistoryEntry to BC r=peterv
Add activeSessionHistoryEntry attribute to CanonicalBrowsingContext to
expose the existing implementation of
CanonicalBrowsingContext::GetActiveSessionHistoryEntry.

Differential Revision: https://phabricator.services.mozilla.com/D173235
2023-03-29 15:50:44 +00:00
Micah Tigley c5f443ac55 Bug 1821075 - Add support for Italian phrases: Card Holder and Card Number. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D173852
2023-03-29 15:36:20 +00:00
Matthew Gaudet b4e92e2132 Bug 1825135 - Change DOM Streams module ownership r=saschanaz,zeid
Differential Revision: https://phabricator.services.mozilla.com/D173883
2023-03-29 15:31:34 +00:00
Lata 5528bda290 Bug 1823612 - Remove usage of marionette.log.level from Log.sys.mjs. r=whimboo,webdriver-reviewers,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D173207
2023-03-29 15:21:16 +00:00
Nicolas Chevobbe c490270104 Bug 1824950 - Initialize ScriptLoadContext mColumnNo. r=mgaudet.
Differential Revision: https://phabricator.services.mozilla.com/D173933
2023-03-29 15:19:01 +00:00
serge-sans-paille 5fd3f3868e Bug 1825285 - Do not use implicit arch parameter when loading r=RyanVM
Otherwise we end up with potentially invalid configuration when
generating code for specific architectures.

Differential Revision: https://phabricator.services.mozilla.com/D173965
2023-03-29 15:02:20 +00:00
James Graham 50df903910 Bug 1823471 - Fix popover metadata, a=testonly CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D173968
2023-03-29 15:05:23 +00:00
Daniel Holbert 8b80901ea8 Bug 1824284: Use Ahem font to avoid antialiasing-related fuzzy test-failures in WPT clip-path-text-*.svg r=longsonr
Before this patch, these tests compare the string "CLIP" used as a green rect's
clip-path, with the reference case just being plain green text.  Unfortunately,
there's no guarantee that the text's antialiased fringes will produce precisely
the same rendered result, when comparing these two modes of rendering; so this
setup can produce some spurious test-failures, with large numbers of
mismatching pixels along the antialiased edges of the characters.

The Ahem font can help here, by reducing the amount of curves and antialiasing,
and by removing the choice-of-default-font as a source of cross-browser &
cross-platform variability in these tests.

So: this patch switches these tests to use the Ahem font, with a reduced
font-size (and standard font-weight) to keep the string approximately the same
length.  I've also adjusted the text's y-position in some of the tests (the
"text-over-a-polygon" tests), so that it's easier to visually distinguish the
bar of Ahem text from the polygon.  I've also changed the test to use "X" as
the only rendered character, since it's specially defined to produce a square
glyph, per https://web-platform-tests.org/writing-tests/ahem.html

With this patch, these tests pass in Firefox, with no fuzzy annotation required.

Differential Revision: https://phabricator.services.mozilla.com/D173917
2023-03-29 14:18:39 +00:00
Ebilite Uchenna 01b50467c7 Bug 1820256 - Implemented Use moz-button-group in the print dialog. r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D173364
2023-03-29 14:06:57 +00:00
Julian Descottes d705cecf89 Bug 1812236 - Extend individual browser mochitest timeout for MOZ_CHAOSMODE=0xfb r=jmaher
Bug 1734020 already extended the overall timeout for the test suite in verify mode, but individual tests remained capped at their initial timeout value.
This changeset aims to multiply the timeout by 2 for individual tests when MOZ_CHAOSMODE=0xfb is set in the environment variables.

Differential Revision: https://phabricator.services.mozilla.com/D173930
2023-03-29 13:17:52 +00:00
Noemi Erli 72b1d23089 Backed out changeset 5e7cb6ffae85 (bug 1824675) for causing perma damp failures CLOSED TREE 2023-03-29 16:11:47 +03:00
Nicolas Chevobbe 7c443c375b Bug 1825048 - [devtools] Fix class toggle layout. r=devtools-reviewers,jdescottes.
In Bug 1815557 we set a display:grid on a rule that
matched both the pseudo-class panel and the class
toggle one.
We don't want to make change to the class toggle
panel, so we revert the changes to only apply them
to the pseudo-class panel.

Differential Revision: https://phabricator.services.mozilla.com/D173861
2023-03-29 13:03:23 +00:00
Andreas Farre 7d3b320651 Bug 1815663 - Pack synced fields. r=peterv
We use empty base optimization to reorder storage of synced fields to
loose as little as possible to padding.

Differential Revision: https://phabricator.services.mozilla.com/D173296
2023-03-29 13:00:15 +00:00
Matthew Gregan e1b7efc19a Bug 1533220 - Enable AudioIPC on Windows arm64. r=cubeb-reviewers,padenot
Depends on D134931

Differential Revision: https://phabricator.services.mozilla.com/D173911
2023-03-29 12:58:47 +00:00
stransky 0e1a5de915 Bug 1824943 [VAAPI] Don't init VAAPI in child process r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173950
2023-03-29 12:57:36 +00:00
moz-wptsync-bot 29f51ffcf3 Bug 1823471 - [wpt-sync] Update web-platform-tests to 1b93b258c8257e5361c2f41c7dd1b1a9e43f8dea, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: 1b93b258c8257e5361c2f41c7dd1b1a9e43f8dea
wpt-type: landing
2023-03-29 12:52:33 +00:00
moz-wptsync-bot 4ab6b487cb Bug 1823277 [wpt PR 39073] - Update wpt metadata, a=testonly
wpt-pr: 39073
wpt-type: metadata
2023-03-29 12:52:32 +00:00
Andrew Williams 5fa110350b Bug 1823277 [wpt PR 39073] - Fix console error in anonymous-iframe/worker-cookies SW test, a=testonly
Automatic update from web-platform-tests
Fix console error in anonymous-iframe/worker-cookies SW test

Fixes the following console error that appears when running
anonymous-iframe/worker-cookies.tentative.https.window.html?worker=service_worker:

CONSOLE ERROR: Uncaught (in promise)
  ReferenceError: add_completion_callback is not defined

Bug: None
Change-Id: I613b8adf0105d0798c6807896437d12f3c10e22e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4350542
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119288}

--

wpt-commits: 1b93b258c8257e5361c2f41c7dd1b1a9e43f8dea
wpt-pr: 39073
2023-03-29 12:52:31 +00:00
moz-wptsync-bot 92d4f4c64c Bug 1822836 [wpt PR 39034] - Update wpt metadata, a=testonly
wpt-pr: 39034
wpt-type: metadata
2023-03-29 12:52:31 +00:00
Henrik Skupin d223cae391 Bug 1822836 [wpt PR 39034] - Set custom default timeouts for WebDriver classic session, a=testonly
Automatic update from web-platform-tests
Set custom default timeouts for WebDriver classic session

--

wpt-commits: 1a44d855cb79fd0e1bc19332f2c995b058925310
wpt-pr: 39034
2023-03-29 12:52:30 +00:00
dependabot[bot] ad955ef226 Bug 1823101 [wpt PR 39061] - Bump cairocffi from 1.3.0 to 1.5.0 in /tools, a=testonly
Automatic update from web-platform-tests
Bump cairocffi from 1.3.0 to 1.5.0 in /tools

Bumps [cairocffi](https://github.com/Kozea/cairocffi) from 1.3.0 to 1.5.0.
- [Release notes](https://github.com/Kozea/cairocffi/releases)
- [Changelog](https://github.com/Kozea/cairocffi/blob/master/NEWS.rst)
- [Commits](https://github.com/Kozea/cairocffi/compare/v1.3.0...v1.5.0)

---
updated-dependencies:
- dependency-name: cairocffi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: 3426f51fe3ae9913062b02c90338baac1e8cace7
wpt-pr: 39061
2023-03-29 12:52:29 +00:00
dependabot[bot] 462c34e7a9 Bug 1808152 [wpt PR 37718] - Bump sphinx-js from 3.1.2 to 3.2.1 in /docs, a=testonly
Automatic update from web-platform-tests
Bump sphinx-js from 3.1.2 to 3.2.1 in /docs

Bumps [sphinx-js](https://github.com/mozilla/sphinx-js) from 3.1.2 to 3.2.1.
- [Release notes](https://github.com/mozilla/sphinx-js/releases)
- [Commits](https://github.com/mozilla/sphinx-js/commits)

---
updated-dependencies:
- dependency-name: sphinx-js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: e9d1046792b252486aa26753be2bd231aa4d9ceb
wpt-pr: 37718
2023-03-29 12:52:29 +00:00
dependabot[bot] d9874f1cad Bug 1822830 [wpt PR 39032] - Bump hypothesis from 6.31.3 to 6.70.0 in /tools, a=testonly
Automatic update from web-platform-tests
Bump hypothesis from 6.31.3 to 6.70.0 in /tools

Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.31.3 to 6.70.0.
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.31.3...hypothesis-python-6.70.0)

---
updated-dependencies:
- dependency-name: hypothesis
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: 4f8e806fc8f2b31b5b2dc33909f342f69593a1dd
wpt-pr: 39032
2023-03-29 12:52:28 +00:00
moz-wptsync-bot c0660be03a Bug 1819243 [wpt PR 38732] - Update wpt metadata, a=testonly
wpt-pr: 38732
wpt-type: metadata
2023-03-29 12:52:27 +00:00
Thiago Perrotta 410f845c61 Bug 1819243 [wpt PR 38732] - BiDi: consolidate BiDi fixtures in webdriver/tests/support/fixtures_bidi, a=testonly
Automatic update from web-platform-tests
BiDi: consolidate BiDi fixtures in webdriver/tests/support/fixtures_bidi

This fixtures file is already globally included in
webdriver/tests/conftest.py via `pytest_plugins`.

Stop having webdriver/tests/bidi/conftest.py be a duplicate of the
support fixture.

--

wpt-commits: 969b345fb0c50a5fff56ea3a081629fd95c24ff9
wpt-pr: 38732
2023-03-29 12:52:26 +00:00
moz-wptsync-bot 9128a1ce53 Bug 1822990 [wpt PR 39050] - Update wpt metadata, a=testonly
wpt-pr: 39050
wpt-type: metadata
2023-03-29 12:52:25 +00:00
Anders Hartvoll Ruud c1bbe5c478 Bug 1822990 [wpt PR 39050] - [@scope] Allow CSSNestingType::kScope without having a parent rule, a=testonly
Automatic update from web-platform-tests
[@scope] Allow CSSNestingType::kScope without having a parent rule

Scopes without a <scope-start> selector are scoped to the owner node's
parent. The selectors within such @scope rules should parse according
to the behavior of CSSNestingType::kScope (i.e. relative rules allowed,
implicit :scope descendant if needed), even though there is no
parent rule. Therefore this CL changes CSSSelectorParser to check
for `nesting_type` instead of `parent_rule_for_nesting` when setting
the initial value of in_nested_style_rule.

Bug: 1280240
Change-Id: Ie8d90b8ef059e519919b89a13b93d340d0917d8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4345880
Reviewed-by: Steinar H Gunderson <sesse@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119277}

--

wpt-commits: e9ef5fdaa91bd718b3479f437015d5c82dce85ea
wpt-pr: 39050
2023-03-29 12:52:25 +00:00
dependabot[bot] e65bd291e2 Bug 1822202 [wpt PR 38968] - Bump urllib3[secure] from 1.26.14 to 1.26.15 in /tools, a=testonly
Automatic update from web-platform-tests
Bump urllib3[secure] from 1.26.14 to 1.26.15 in /tools

Bumps [urllib3[secure]](https://github.com/urllib3/urllib3) from 1.26.14 to 1.26.15.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.14...1.26.15)

---
updated-dependencies:
- dependency-name: urllib3[secure]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: dcb1255abf548cf449d048b896667595b77b9a5a
wpt-pr: 38968
2023-03-29 12:52:24 +00:00
moz-wptsync-bot e5f7acf39f Bug 1823351 [wpt PR 39078] - Update wpt metadata, a=testonly
wpt-pr: 39078
wpt-type: metadata
2023-03-29 12:52:23 +00:00
Anne van Kesteren 12dda92a46 Bug 1823351 [wpt PR 39078] - Fetch: correct blob: URL Range header tests, a=testonly
Automatic update from web-platform-tests
Fetch: correct blob: URL Range header tests

--

wpt-commits: 1f41dfbb4b25ba9ee196e334c620dfa0d8771d1c
wpt-pr: 39078
2023-03-29 12:52:23 +00:00
dependabot[bot] bbcbcbb1bd Bug 1823102 [wpt PR 39062] - Bump types-setuptools from 63.2.3 to 67.6.0.5 in /tools, a=testonly
Automatic update from web-platform-tests
Bump types-setuptools from 63.2.3 to 67.6.0.5 in /tools

Bumps [types-setuptools](https://github.com/python/typeshed) from 63.2.3 to 67.6.0.5.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-setuptools
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: fd7d528ec48c92bd5a400429495f54d149c1fb03
wpt-pr: 39062
2023-03-29 12:52:22 +00:00
moz-wptsync-bot ca73f144dc Bug 1822476 [wpt PR 39005] - Update wpt metadata, a=testonly
wpt-pr: 39005
wpt-type: metadata
2023-03-29 12:52:21 +00:00
Anders Hartvoll Ruud f7b0d262fa Bug 1822476 [wpt PR 39005] - [@scope] Enable nesting features within @scope's body, a=testonly
Automatic update from web-platform-tests
[@scope] Enable nesting features within @scope's body

This CL passes a parent rule and accompanying CSSNestingType
to the ConsumeRuleList call which handles @scope's body. This has
the following effects:

 - A :scope descendant compound is implicitly inserted if the selector
   is not scope-containing.
 - The parent selector (&) now refers to the <scope-start>
   selector list.
 - Relative selectors are enabled.

The code to resize the arena in ConsumeStyleRule must now be detached
from whether or not parent_rule_for_nesting is nullptr. This is because
we can now enter ConsumeStyleRule with parent_rule_for_nesting!=nullptr
without another call to ConsumeStyleRule below us on the stack
(via ConsumeScopeRule).

Bug: 1280240
Change-Id: Ibe6b1e40e22d535a094b0ec464ae119952b015f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4272459
Reviewed-by: Steinar H Gunderson <sesse@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119257}

--

wpt-commits: 00b9747943d4c008b366cb42a2b50d5717189e0e
wpt-pr: 39005
2023-03-29 12:52:21 +00:00
Philip Jägenstedt 08a5329ca9 Bug 1823361 [wpt PR 39079] - Update additional Python 3.6 versions to 3.7, a=testonly
Automatic update from web-platform-tests
Update additional Python 3.6 versions to 3.7 (#39079)

Follow-up to https://github.com/web-platform-tests/wpt/pull/38911.
--

wpt-commits: 91963dba3924d63a78720f13fbc00c581d62758a
wpt-pr: 39079
2023-03-29 12:52:20 +00:00
James Graham b16df8f886 Bug 1821391 [wpt PR 38911] - Drop Python 3.6 support from tools/, a=testonly
Automatic update from web-platform-tests
Drop Python 3.6 support from tools/

This replaces the 3.6-based CI jobs with Python 3.7, and drops 3.6
from test configurations.

It also updates requirements files that have specific pinned package
versions for 3.6, but does not attempt to update dependencies in
general (either through requirements or pinned).

--

wpt-commits: 8cf108d380ee91ef2667a05dd2389ad5cd6d6529
wpt-pr: 38911
2023-03-29 12:52:20 +00:00
moz-wptsync-bot 050d07e361 Bug 1823131 [wpt PR 39069] - Update wpt metadata, a=testonly
wpt-pr: 39069
wpt-type: metadata
2023-03-29 12:52:19 +00:00
Anne van Kesteren dd894b2c15 Bug 1823131 [wpt PR 39069] - URL: URL.canParse(), a=testonly
Automatic update from web-platform-tests
URL: URL.canParse()

For https://github.com/whatwg/url/pull/763.
--

wpt-commits: 7c5c3cc125979b4768d414471e6ab655b473aae8
wpt-pr: 39069
2023-03-29 12:52:18 +00:00
Kent Tamura c706e046a9 Bug 1823325 [wpt PR 39076] - LayoutMedia: Should not handle OOF boxes, a=testonly
Automatic update from web-platform-tests
LayoutMedia: Should not handle OOF boxes

After LayoutMediaNGContainer task, LayoutMedia could be a container of
its OOF descendants, but NGReplacedLayoutAlgorithm has no ability to lay
out OOF boxes.

This CL fixes the issue by making LayoutMedia children OOF containers
by forcing paint containment.

Bug: 1425520
Change-Id: I19e10c9a94341cba376883bf544ef69ea413dca5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4349736
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119211}

--

wpt-commits: 78f0f7dfccc8ea071919199e9c36d0dc87c8b19f
wpt-pr: 39076
2023-03-29 12:52:18 +00:00
Tim Nguyen 7452a4012f Bug 1823297 [wpt PR 39074] - Include Ahem in mask-text-001.svg and reference, a=testonly
Automatic update from web-platform-tests
Include Ahem in mask-text-001.svg and reference

This test references Ahem, but never includes the stylesheet.
--

wpt-commits: 1a963a601aa0ce5dd7eb88cd70af32f38f5307d0
wpt-pr: 39074
2023-03-29 12:52:17 +00:00
BruceDai 017f4f7c79 Bug 1822745 [wpt PR 39025] - [webnn] Remove reduction/slice/split tests with negative axis, a=testonly
Automatic update from web-platform-tests
[webnn] Remove reduction/slice/split tests with negative axis (#39025)

* [webnn] Remove reduction tests and split tests with negative axis

* Remove slice tests with negative axis
--

wpt-commits: f0d5cb6bfb6ee297c79274ecd6a9a6e078d2ea76
wpt-pr: 39025
2023-03-29 12:52:17 +00:00
moz-wptsync-bot 6fc80880f6 Bug 1823107 [wpt PR 39063] - Update wpt metadata, a=testonly
wpt-pr: 39063
wpt-type: metadata
2023-03-29 12:52:16 +00:00
Khushal Sagar a454d12701 Bug 1823107 [wpt PR 39063] - view-transitions: Ensure elements in the transition are stacking contexts., a=testonly
Automatic update from web-platform-tests
view-transitions: Ensure elements in the transition are stacking contexts.

This change ensures that the rendering constraints added by
view-transition-name continue to apply even if the property is removed,
if they are participating in an ongoing transition.

Change-Id: I8eb485233eefe1282baf15eb8bbdbd6a42f14f02
Fixed: 1424312
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4343032
Commit-Queue: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119071}

--

wpt-commits: 2bf9cc74a8b58bb0af9ae9d31f9919e8a3b56205
wpt-pr: 39063
2023-03-29 12:52:15 +00:00
Xiaocheng Hu f3b1dbb880 Bug 1823108 [wpt PR 39064] - Fix a TextIterator crash in Greek text-transform, a=testonly
Automatic update from web-platform-tests
Fix a TextIterator crash in Greek text-transform

CSS text-transform can change text length in either ways, resulting in
more or fewer characters in LayoutText. The former case is more well
known and has been largely worked around.

Now that we see the latter case being possible, this patch works around
it in TextIterator to avoid reaching a NOTREACHED().

Fixed: 1424324
Bug: 750990
Change-Id: I4b8ba886bcacc06e9e491badb30af98d0f22c37c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4351287
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119018}

--

wpt-commits: ceb972b009e1b43c589dce3f36b050121493d2e0
wpt-pr: 39064
2023-03-29 12:52:15 +00:00
Tim Nguyen 0d52704118 Bug 1823110 [wpt PR 39065] - Delete tests assuming device aspect ratio of 1280/1024, a=testonly
Automatic update from web-platform-tests
Delete tests assuming device aspect ratio of 1280/1024 (#39065)

* device-aspect-ratio-001.html
* device-aspect-ratio-005.html
--

wpt-commits: e2c9f6a70093bdf5b268a774fc51a0825e703582
wpt-pr: 39065
2023-03-29 12:52:14 +00:00
Chris Harrelson 8325e0f826 Bug 1823099 [wpt PR 39060] - De-flake two tests, a=testonly
Automatic update from web-platform-tests
De-flake two tests

These tests were timing out because window.screenX and window.screenY
were never set during the test run, leading to the code to wait 15
seconds before giving up trying to find them. But once it gave up,
it got the correct result, because there is no expected_screenX
or expected_screenY for these tests anyway.

Tests are:

external/wpt/html/browsers/the-window-object/open-close/open-features-non-integer-innerwidth.html
external/wpt/html/browsers/the-window-object/open-close/open-features-non-integer-width.html

Fixed: 1048149

Change-Id: I9e9620254b0e9284923e7a683213b1c0721ffc81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4347589
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1118959}

--

wpt-commits: cb19b01d65d9677bf53223322e32211c190eee5c
wpt-pr: 39060
2023-03-29 12:52:13 +00:00
Xiaocheng Hu 30550a7c5c Bug 1822920 [wpt PR 39041] - [anchor-position] Make `anchor` attribute work for non-popovers, a=testonly
Automatic update from web-platform-tests
[anchor-position] Make `anchor` attribute work for non-popovers

This patch reimplements how we mark elements that are implicit anchors.
Previously it was only marked for popover element's implicit anchors,
and now it works for all implicit anchors. This is done by a new class
AnchorElementObserver that observes all possible changes in implicit
anchor and replaces the old PopoverAnchorObserver.

This patch also reveals two existing issues:
1. Element::GetElementAttribute() may return non-null result even if
   the element is out of tree scope. As fixing the bug is out of the
   scope here, this patch just works around it. crbug.com/1425215 was
   filed.
2. popover-anchor-idl-property.html has some bugs that made it pass
   previously. This patch fixes those bugs.

Fixed: 1417346
Change-Id: I798977ab1ed7df0c528b7eb98c64fc04476e6106
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4338487
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1118933}

--

wpt-commits: e1dabe08c494d1b7aaf5e2e9437b71e51997c299
wpt-pr: 39041
2023-03-29 12:52:12 +00:00
moz-wptsync-bot 333c7c3918 Bug 1822414 [wpt PR 38998] - Update wpt metadata, a=testonly
wpt-pr: 38998
wpt-type: metadata
2023-03-29 12:52:12 +00:00
Xiaocheng Hu cc00170a6b Bug 1822414 [wpt PR 38998] - [anchor-position] Use scroll-adjusted IMCB for position fallback, a=testonly
Automatic update from web-platform-tests
[anchor-position] Use scroll-adjusted IMCB for position fallback

Previously, we've been using the inset-modified containing block for
position fallback, which doesn't work well with scrolling.

This patch fixes the issue by using the scroll-adjusted IMCB instead,
which was introduced earlier on the spec side [1].

As an implementation detail, this patch also calculates and stores
the non-overflowing scroll ranges [2] for each fallback position, so
that we can still use composited scrolling, and need to invalidate
layout only when we have scrolled out of that range.

This patch also adds WPT tests under various writing modes and
directions to cover all the new code paths.

[1] https://drafts4.csswg.org/css-anchor-position-1/#determine-the-position-fallback-styles
[2] https://github.com/w3c/csswg-drafts/issues/8059#issuecomment-1444616906

Bug: 1418725
Change-Id: If9e104c6ac3c51ccdfc4fa7d3cf9cbffcc5af46d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4292618
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1118926}

--

wpt-commits: e2169b6b0b5ca89b61b976f512e9ad52bace8597
wpt-pr: 38998
2023-03-29 12:52:11 +00:00