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

765757 Коммитов

Автор SHA1 Сообщение Дата
Jacek Kuzemczak 9a9fb72c85 Bug 1719124 Split PDF data into chunks to avoid hitting function call argument limit r=webdriver-reviewers,jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D121363
2021-08-06 15:36:40 +00:00
Olli Pettay ece46d2b64 Bug 1721306, hide the tooltip when deactivating a BrowserParent, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D121756
2021-08-06 15:13:36 +00:00
Jan de Mooij b1a7acb403 Bug 1716622 - Limit ImageData typed array to 2 GB. r=edgar
After we enabled support for large ArrayBuffers on 64-bit platforms, we could
also create larger ImageData objects. WebIDL bindings check for large ArrayBuffer{View}s
but not when they're wrapped in an ImageData.

It seems safest to limit ImageData arrays to the old 2 GB for now until we need larger
buffers.

Differential Revision: https://phabricator.services.mozilla.com/D121595
2021-08-06 14:23:24 +00:00
Jonathan Kew da11a216cc Bug 1724421 - Use template argument deduction to simplify callsites when checking the standard font-family visibility lists. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D122003
2021-08-06 14:06:53 +00:00
Emilio Cobos Álvarez 729cefdd10 Bug 1724115 - Don't force urlbar focus to black on white with system theme. r=harry,dao
Not sure whether this is the right fix, but makes sense to me and fixes
the bug.

Differential Revision: https://phabricator.services.mozilla.com/D121800
2021-08-06 13:27:50 +00:00
Geoff Brown 664426469c Bug 1724296 - Remove many skip-if(verify) test annotations (xpcshell); r=jmaher,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D121926
2021-08-06 13:25:50 +00:00
Geoff Brown 3f55d9180c Bug 1724296 - Remove many skip-if(verify) test annotations (crashtests); r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121914
2021-08-06 13:25:49 +00:00
Geoff Brown 1bc378075c Bug 1724296 - Remove many skip-if(verify) test annotations (reftest-plain); r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121920
2021-08-06 13:25:49 +00:00
Ryan VanderMeulen 52c9905518 Backed out changeset 83204ae613b7 (bug 1724196) for causing topcrash bug 1724408. 2021-08-06 09:22:57 -04:00
Jonathan Kew e9124763a1 Bug 1723874 - Update the list of standard macOS fonts to be current/correct. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D121997
2021-08-06 13:08:15 +00:00
Julian Descottes 54f4f0e437 Bug 1724028 - [remote] Implement handle in RemoteAgent and Marionette components r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D121768
2021-08-06 12:57:28 +00:00
Dragana Damjanovic df42c51758 Bug 1724240 - Setup fallback timer if a speculative connection is created for a fallback r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D121903
2021-08-06 12:40:12 +00:00
Sebastian Hengst 3f090aa07e Bug 1712814 - skip browser_bookmark_popup.js on Linux ASan. r=mak DONTBUILD
Got frequent for unknown reason. Disable until a person has time to investigate.

Differential Revision: https://phabricator.services.mozilla.com/D122000
2021-08-06 12:37:37 +00:00
Sebastian Streich 0818b99745 Bug 1721146 - Fix Missing ReferrerInfo on Blocked Downloads r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121608
2021-08-06 12:22:59 +00:00
Kagami Sascha Rosylight 7237431b99 Bug 1723050 - Part 5: Replace typedef by using in dom/cache/ r=janv
Differential Revision: https://phabricator.services.mozilla.com/D121297
2021-08-06 12:10:13 +00:00
André Bargull 139e2aaeaa Bug 1724203: Remove early TypeError in Intl.DisplayNames constructor. r=iain
The `CanonicalizeLocaleList` call in <https://tc39.es/ecma402/#sec-Intl.DisplayNames>,
step 3 can trigger side-effects, so it's not valid to execute step 4 earlier.

Depends on D121862

Differential Revision: https://phabricator.services.mozilla.com/D121863
2021-08-06 11:33:32 +00:00
André Bargull 2aeadb4a84 Bug 1720782: Handle "dayPeriod" when checking for conflicting options. r=iain
"dayPeriod" was missing in the list of properties we need to check.

Differential Revision: https://phabricator.services.mozilla.com/D121862
2021-08-06 11:33:31 +00:00
André Bargull 2a0478fab5 Bug 1724210: Handle generic and localised offset time zone names in GetFieldTypeForFormatField. r=iain
- `UDAT_TIMEZONE_GENERIC_FIELD` is used for the generic time zone name option.
- `UDAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD` is used for the time zone offset name option.

Differential Revision: https://phabricator.services.mozilla.com/D121873
2021-08-06 11:31:56 +00:00
Paul Bone 0001b756ab Bug 1724355 - Don't skip browser_gc_schedule.js for fission r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D117970
2021-08-06 11:14:22 +00:00
Andrew McCreight c9f0c60abd Bug 1714585 - Make Fission the primary way to run AWSY base. r=perftest-reviewers,AlexandruIonescu
This allows awsy-base to be run with Fission via the "variants" value.

It also makes us run it with Fission everywhere that we currently
run non-Fission, and changes it to be tier 1. For continuity, it
continues to run awsy-base with non-Fission on mozilla-central.
I'm not sure how much that matters, though in theory we could
have a regression there that doesn't show up with Fission.

This also disables bfcache in parent because it hits some process
selection issues that result in multiple about:blank ending up
in a single process.

I'm not sure if the bugbug-push-schedules.json changes are needed.

Differential Revision: https://phabricator.services.mozilla.com/D121682
2021-08-06 11:12:44 +00:00
Andrew Osmond fc62330ea6 Bug 1709629 - Block WebRender for NVIDIA drivers 8.17.12.8019/8026 on Windows 7. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D121916
2021-08-06 11:04:16 +00:00
Marian-Vasile Laza 9deb7cad8c Backed out changeset 3a3f6075172e (bug 1723958) for causing xpcshell failures on test_addon_debugging_connect.js. CLOSED TREE 2021-08-06 14:08:47 +03:00
Valentin Gosu 31a43b0d79 Bug 1722202 - Exempt WPAD requests from HTTPS-only mode upgrades r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D121939
2021-08-06 10:36:52 +00:00
Emilio Cobos Álvarez 9f18e86200 Bug 1723439 - Ensure we paint so that hit-testing works as we expect. r=nika
Otherwise we get a mouseevent targeted at the window and the autoscroll
code gets confused.

Differential Revision: https://phabricator.services.mozilla.com/D121525
2021-08-06 10:14:10 +00:00
Nicolas Chevobbe f73fdc7e79 Bug 1723958 - [devtools] Use targetActor.originalWindow instead of window in bfcache navigation. r=jdescottes.
During the pagehide event, we're checking that the target we're navigating away
from is the expected one.
We previously used the window property, but this is a getter that is updated when
a document is selected in the iframe picker.
Since the goal is to check the actual document the target was created for, we
can use the originalWindow property instead.

A test is added, which is failing without the fixes of this patch.

We take this as an opportunity to clear the iframe picker list on will-navigate,
(as the test was failing on Fission without this), which allows us to remove the
`_notifyDocShellDestroyAll` method of the `BrowsingContextTargetActor` that was
also called before emitting the `will-navigate` event.

Differential Revision: https://phabricator.services.mozilla.com/D121727
2021-08-06 10:12:56 +00:00
Emilio Cobos Álvarez 05cf2bb95e Bug 1723938 - Keep looking for background-colors when finding a background-image with transparent background-color. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D121770
2021-08-06 09:52:23 +00:00
moz-wptsync-bot 7abe2e60d4 Bug 1724306 - [wpt-sync] Update web-platform-tests to eb8bdce552a2a9b10010f7755ed9d8d0773d548e, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: eb8bdce552a2a9b10010f7755ed9d8d0773d548e
wpt-type: landing
2021-08-06 09:43:01 +00:00
Mathias Bynens c29b628801 Bug 1724151 [wpt PR 29909] - Correct shadow root identifier per WebDriver spec, a=testonly
Automatic update from web-platform-tests
Correct shadow root identifier per WebDriver spec

https://w3c.github.io/webdriver/#dfn-shadow-root-identifier

--
Move shadow root identifier check to test_get_shadow_root

--

wpt-commits: 8f997c11a3d17121e089b44a4adc473ac4473180, eb8bdce552a2a9b10010f7755ed9d8d0773d548e
wpt-pr: 29909
2021-08-06 09:43:00 +00:00
Moshe Atlow dbad0ad16c Bug 1723678 [wpt PR 29877] - [webdriver]: element cloned into iframe, a=testonly
Automatic update from web-platform-tests
[webdriver]: element cloned into iframe (#29877)

Co-authored-by: Moshe Atlow <moshea@testim.io>
Co-authored-by: Henrik Skupin <mail@hskupin.info>
--

wpt-commits: f777c7b348c1e98d42a7c28415c8817d7fb79776
wpt-pr: 29877
2021-08-06 09:43:00 +00:00
Frédéric Wang c437c8c01a Bug 1724190 [wpt PR 29912] - MathML tools : upgrade scripts to Python 3, a=testonly
Automatic update from web-platform-tests
MathML tools : upgrade scripts to Python 3 (#29912)

With this commit, the scripts in mathml/tools/ are upgraded to use
Python 3. A few more tweaks have been made.

- Use '#!/usr/bin/env python3' as header and make files executable.
- Use // for integer division.
- Don't import future print_function anymore.
- Use the latest Python3 API for urlopen.
- Fix url ofXML Entities's unicode.xml.
- Just use chr instead of unichr.
--

wpt-commits: 5a65cdf5c4f3ea2c637df92d837f613c75edf5b8
wpt-pr: 29912
2021-08-06 09:42:59 +00:00
Rob Buis a0c6ca3e1f Bug 1724171 [wpt PR 29910] - [css-contain] Remove paint-containment-with-fixed-position.html, a=testonly
Automatic update from web-platform-tests
[css-contain] Remove paint-containment-with-fixed-position.html

Remove paint-containment-with-fixed-position.html since
contain-paint-010.html is a similar test, it just needs to
also test inline.

Change-Id: Iaa3f7fe7fc830b4f7f53d4f41af5983bab69f29d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3071279
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rob Buis <rbuis@igalia.com>
Cr-Commit-Position: refs/heads/master@{#908827}

--

wpt-commits: 3fb14d74ca0731c860d70c396041569e8cfd8b71
wpt-pr: 29910
2021-08-06 09:42:59 +00:00
Rob Buis 7bfa2abff0 Bug 1723993 [wpt PR 29892] - [css-contain] Remove containment/contain-parse-and-apply.html, a=testonly
Automatic update from web-platform-tests
[css-contain] Remove containment/contain-parse-and-apply.html

Remove containment/contain-parse-and-apply.html by adding the subtests
to WPT. Testing that contain computed values do not apply to the
children is tested by contain-computed-children.html.
The remaining tests for invalid contain values are added to
contain-invalid.html.

Change-Id: I283f6ce7de2b87f5cb23a244e9f83355a066972c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3065665
Commit-Queue: Rob Buis <rbuis@igalia.com>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908822}

--

wpt-commits: e27bdc34b98e75aaa08e5542f772935ea587684b
wpt-pr: 29892
2021-08-06 09:42:58 +00:00
moz-wptsync-bot f0a74044ea Bug 1723915 [wpt PR 29890] - Update wpt metadata, a=testonly
wpt-pr: 29890
wpt-type: metadata
2021-08-06 09:42:58 +00:00
Morten Stenshorne 0d66498927 Bug 1723915 [wpt PR 29890] - Better monolithic content overflow handling., a=testonly
Automatic update from web-platform-tests
Better monolithic content overflow handling.

Be ruby-aware when checking if we need a break before a line. Since ruby
annotations aren't part of the line box, just checking if the
block-offset + block-size of the line box is below the fragmentation
line won't do. Include annotation overflow as well.

Also make sure that it works correctly for blocks in vertical-rl
writing-mode. This was done incorrectly in CL:2696632.

Bug: 1236056, 1178742
Change-Id: Iaa137f1e45e437d31fe93305a29d80a2153d2d1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3068937
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908801}

--

wpt-commits: 39eb0596a9f501131a5b6aa99b90963da0751b18
wpt-pr: 29890
2021-08-06 09:42:57 +00:00
moz-wptsync-bot 3c611b5ee5 Bug 1724064 [wpt PR 29904] - Update wpt metadata, a=testonly
wpt-pr: 29904
wpt-type: metadata
2021-08-06 09:42:57 +00:00
Dan Clark f5eca5cead Bug 1724064 [wpt PR 29904] - [selectmenu] Add console warnings for missing button/listbox parts, a=testonly
Automatic update from web-platform-tests
[selectmenu] Add console warnings for missing button/listbox parts

Per the resolution of https://github.com/openui/open-ui/issues/291,
emit a console warning when a <selectmenu>'s default listbox or button
is removed without a replacement being provided.

In order to emit these warnings consistently, add a slotchange handler
to catch the case where the named slots are replaced at parse time
without a replacement part being provided. No mutation observer was
firing for this case, so the default parts were not being properly
swapped out.

Also, add a test that was missing for selected-value part in
selectmenu-parts-structure.tentative.html.

Bug: 1234899
Change-Id: If639d7eccf1db59518ef862e3beaaa8a2a09e6cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3072218
Reviewed-by: Ionel Popescu <iopopesc@microsoft.com>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Dan Clark <daniec@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#908669}

--

wpt-commits: 38ed3eab8b40cbcd875f2c0f773a52386ec6002d
wpt-pr: 29904
2021-08-06 09:42:56 +00:00
moz-wptsync-bot 0d22fa518d Bug 1723030 [wpt PR 29845] - Update wpt metadata, a=testonly
wpt-pr: 29845
wpt-type: metadata
2021-08-06 09:42:56 +00:00
Sara Tang 7c9c5d4c07 Bug 1723030 [wpt PR 29845] - Add 'custom' value to prefers-contrast media query, a=testonly
Automatic update from web-platform-tests
Add 'custom' value to prefers-contrast media query

As indicated in the spec, we are implementing the 'custom' value for
the prefers-contrast media query. This value corresponds to forced
colors that are neither high nor low contrast.

Spec: https://drafts.csswg.org/mediaqueries-5/#prefers-contrast

Bug: 1107431
Change-Id: I3af0a1965fbe57aaab2665c3c502f9b7555d2252
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3061066
Reviewed-by: Chris Palmer <palmer@chromium.org>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Sara Tang <sartang@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#908632}

--

wpt-commits: 3790190e4421816fd4b334b1131a6a4f435c8e17
wpt-pr: 29845
2021-08-06 09:42:55 +00:00
Joey Arhar b12a3abed0 Bug 1723213 [wpt PR 29852] - Fix invalidation for accent-color:currentColor, a=testonly
Automatic update from web-platform-tests
Fix invalidation for accent-color:currentColor

Bug: 1225661
Change-Id: I4d28b20d1ecd5f8a3d3e1278721e7b85c9427a42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3043139
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908628}

--

wpt-commits: 49f0d1c3103ad5b0655eeac6e2db10f6f1be6d8b
wpt-pr: 29852
2021-08-06 09:42:55 +00:00
Xiaocheng Hu e6f99d8fac Bug 1723827 [wpt PR 29885] - Minor fixing to WPT css/css-fonts/fallback-remote-to-data-url.html, a=testonly
Automatic update from web-platform-tests
Minor fixing to WPT css/css-fonts/fallback-remote-to-data-url.html

1. The font style is also applied to element non-target so that we can
   verify the effect of unicode-range on data-font

2. Added 'font-display: swap' to remote-font so that we can observe the
   fallback when loading remote-font

Bug: 897539
Change-Id: I9bbe0705bc7d3a9ebbaf92f2c8c26c557adec24a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069529
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908594}

--

wpt-commits: ddaa08bb676adb2b173f85bf2dd88dcfb8e103e5
wpt-pr: 29885
2021-08-06 09:42:54 +00:00
Mason Freed fd5c2654a5 Bug 1724025 [wpt PR 29896] - Fix <input type=image> with CSS content, a=testonly
Automatic update from web-platform-tests
Fix <input type=image> with CSS content

The LayoutObject creation was previously being performed via a call
to LayoutObjectFactory::CreateBlockFlow() and a conditional on the
style to LayoutInline(). This CL replaces all of that with a call to
LayoutObject::CreateObject(), which handles creating the correct
LayoutObject type, plus it also (now) handles CSS content pointing
to an image. Previous attempts to do this [1][2] fixed some of these
issues, but left a UAF in ImageResourceContent::RemoveObserver() [3].
To fix this, an unnecessary call to SetImageResource() in
ImageInputType::OnAttachWithLayoutObject() was removed.

Test coverage:
 Fallback content display type: external/wpt/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-image-inline-alt.html
 UAF: external/wpt/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-image-content-crash.html
 CSS content (new test): external/wpt/html/rendering/replaced-elements/images/input-image-content.html

[1] crrev.com/779108
[2] crrev.com/780992
[3] https://bugs.chromium.org/p/chromium/issues/detail?id=1226558#c7

Fixed: 1226558
Change-Id: I64c61ebed91670b5fac665f1c4be9337f0814a9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3064330
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908495}

--

wpt-commits: cdd20e3a6c7ea615f820cc28aa7c7029042c5f7a
wpt-pr: 29896
2021-08-06 09:42:54 +00:00
moz-wptsync-bot 25b27a6f38 Bug 1722363 [wpt PR 29786] - Update wpt metadata, a=testonly
wpt-pr: 29786
wpt-type: metadata
2021-08-06 09:42:53 +00:00
Blink WPT Bot 29a3dea88e Bug 1722363 [wpt PR 29786] - [ResourceTiming]: Refactor initiatorType tests, a=testonly
Automatic update from web-platform-tests
[ResourceTiming]: Refactor initiatorType tests (#29786)

This CL updates WPTs checking the behaviour of the initiatorType field
of PerformanceResourceTiming entries.

For resources corresponding to elements present in the initial page
response, the tests have been split into separate files grouped
(roughly) by the element type.

For resources corresponding to elements added to the page dynamically,
coverage has also been added for fonts, scripts and XMLHttpRequests.

Bug: 1171767
Change-Id: I547aab0db42d8f32bcbdfb310b16b4fddc103b18
GitHubIssue: https://github.com/w3c/resource-timing/issues/254
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2961075
Commit-Queue: Tom McKee <tommckee@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905732}

Co-authored-by: Tom McKee <tommckee@chromium.org>
--

wpt-commits: 0fd14d256e8e56863df9b23cf7f30137ddc1fc98
wpt-pr: 29786
2021-08-06 09:42:53 +00:00
Tom McKee 4e7794b6d2 Bug 1723947 [wpt PR 29891] - Fix WPT linter error, a=testonly
Automatic update from web-platform-tests
Fix WPT linter error

In https://crrev.com/c/2961075 we migrated away from using
wpt/resource-timing/resources/all_resource_types.html but didn't remove the
file. We also updated wpt/lint.ignore to remove mention of
all_resource_types.html which caused downstream CI to fail
(https://github.com/web-platform-tests/wpt/pull/29786#issuecomment-892184957).

This change removes the unused file which, apart from cleaning up after
ourselves, should fix the downstream linter.

I've filed crbug.com/1236498 to follow up on getting chromium's presubmit to
keep us from making this mistake again.

Bug: 1236498
Change-Id: Id0556b08643b9c1994ce06877e4be6fb6e791fc4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3071040
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Auto-Submit: Tom McKee <tommckee@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908464}

--

wpt-commits: a44637c65403861a7756dd599d0cfb3de3947eaa
wpt-pr: 29891
2021-08-06 09:42:52 +00:00
moz-wptsync-bot 9804539ad4 Bug 1721351 [wpt PR 29718] - Update wpt metadata, a=testonly
wpt-pr: 29718
wpt-type: metadata
2021-08-06 09:42:52 +00:00
Byungwoo Lee 8d1fa060f3 Bug 1721351 [wpt PR 29718] - Support relative selector to update the :has tests, a=testonly
Automatic update from web-platform-tests
Support relative selector to update the :has tests

Support the relative selector grammar starting with combinator.
- https://www.w3.org/TR/selectors-4/#typedef-relative-selector

To simplify matching operation, some relation types are added.

- kRelativeDescendant       : Leftmost descendant combinator
- kRelativeChild            : Leftmost child combinator
- kRelativeDirectAdjacent   : Leftmost next-sibling combinator
- kRelativeIndirectAdjacent : Leftmost subsequent-sibling combinator

The ':scope' dependency in <relative-selector> definition creates
too much confusion especially with ':has' as the CSSWG issue
describes.
- https://github.com/w3c/csswg-drafts/issues/6399

1. ':scope' behavior in ':has' argument is different with usual
   ':scope' behavior.
2. Explicit ':scope' in a ':has' argument can create performance
   issues or increase complexity when the ':scope' is not leftmost
   or compounded with other simple selectors.
3. Absolutizing a relative selector with ':scope' doesn't make sense
   when the ':has' argument already has explicit ':scope'
   (e.g. ':has(~ .a :scope .b)' -> ':has(:scope ~ .a :scope .b)'

To skip those complexity and ambiguity, this CL removed some logic
related with the 'explicit :scope in :has argument', and added
TODO comment to handle it later separately.

As suggested in the CSSWG issue, this CL always absolutize the
<relative-selector> with a dummy pseudo class.
- kPseudoRelativeLeftmost

The added pseudo class represents any elements that is at the
relative position that matches with the leftmost combinator
of the relative selector.

This CL also includes tentative tests for some cases involving the
':scope' inside ':has' to show the result of the suggestion.
By removing the ':scope' dependency from the relative selector,
most of the ':scope' inside ':has' will be meaningless. (It will
not match or can be changed more simple/efficient expression)

Change-Id: I1e0ccf0c190d04b9636d86cb15e1bbb175b7cc30
Bug: 669058
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2972189
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Byungwoo Lee <blee@igalia.com>
Cr-Commit-Position: refs/heads/master@{#908421}

--

wpt-commits: 5800374cbcad335de936e9a30868b2e5e5340a9d
wpt-pr: 29718
2021-08-06 09:42:52 +00:00
moz-wptsync-bot d63bd431b8 Bug 1723790 [wpt PR 29881] - Update wpt metadata, a=testonly
wpt-pr: 29881
wpt-type: metadata
2021-08-06 09:42:51 +00:00
Morten Stenshorne 3ce84f0650 Bug 1723790 [wpt PR 29881] - Legacy block fragmentation support for ruby annotations., a=testonly
Automatic update from web-platform-tests
Legacy block fragmentation support for ruby annotations.

Ruby annotations aren't part of any line box, so we need to include them
manually when checking whether a line fits in the current fragmentainer,
or whether it needs to be pushed to the next one.

This is already mostly working in LayoutNGBlockFragmentation, but one
of the new tests is failing there. This will be addressed in a follow-up
CL.

Bug: 631314
Change-Id: I9afd643a0d7b2ebc1b3053a111e1f10e256b3794
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3065653
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908369}

--

wpt-commits: 0c37904c49048535d0a35a85dbc1db98d0a8acfe
wpt-pr: 29881
2021-08-06 09:42:51 +00:00
Mason Freed c416e2e4a1 Bug 1723809 [wpt PR 29883] - Make <base, <basefont>, and <embed> display:none, a=testonly
Automatic update from web-platform-tests
Make <base, <basefont>, and <embed> display:none

The spec [1] calls for these tags (along with several others) to
be display:none. Previously, these three (plus <area> - see below) were
missing from html.css. With this CL, I've updated html.css to more-
closely match the spec text. I also slightly changed the pre-
existing test to check for display:none only, and not display:inline
for <source> and <track>, because I could not find an explicit spec
for that. If I'm wrong about that, someone please point me to the spec
for those and I'll put the test back.

This CL leaves <area> unchanged for now, as it appears to break
hit-testing of <area> elements. This works, somehow, in WebKit,
while still having <area> elements display:none. TBD.

[1] https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements

Bug: 1231263
Change-Id: Id67eed8a05a59174921b82783ced7958af8ff169
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3050793
Commit-Queue: Mason Freed <masonf@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908313}

--

wpt-commits: 7f84d2bfe8bc5f55e8fa4c9e05a7184e1bffc12a
wpt-pr: 29883
2021-08-06 09:42:50 +00:00
Marcos Cáceres 5c70bc5e5f Bug 1723667 [wpt PR 29875] - Remove redundant tests, a=testonly
Automatic update from web-platform-tests
Tested in permissions-policy directory (#29875)

--

wpt-commits: 765042a48c2e1e0cf48ce5177d5b4387154795f1
wpt-pr: 29875
2021-08-06 09:42:50 +00:00