Commit Graph

746096 Commits

Author SHA1 Message Date
Adithya Srinivasan
889d362332 Bug 1693313 [wpt PR 27658] - Portals: Deflake autofocus tests, a=testonly
Automatic update from web-platform-tests
Portals: Deflake autofocus tests

Autofocused elements are not guaranteed to be focused on load, flushing
autofocus candidates for a document is part of the rendering update
(see 11.5 in [1]). This CL updates tests to call requestAnimationFrame
after the document loads to ensure Document::FlushAutofocusCandidates()
[2] gets a chance to run.

[1] https://html.spec.whatwg.org/multipage/webappapis.html#update-the-rendering
[2] https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/dom/document.cc;l=7770;drc=15d361f31e050e55eb6b2ada1a02ea5b26eb4f70

Bug: 1178492
Change-Id: Iedc6758c47e2cff53a3bca499aa55e13437fe6ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2699127
Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
Reviewed-by: Lucas Gadani <lfg@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#855275}

--

wpt-commits: eec76c2cddc57690d5621d374ac5a62bd2f4ad81
wpt-pr: 27658
2021-02-23 17:33:51 +00:00
moz-wptsync-bot
5b35db184b Bug 1688827 [wpt PR 27325] - Update wpt metadata, a=testonly
wpt-pr: 27325
wpt-type: metadata
2021-02-23 17:33:51 +00:00
Yutaka Hirano
8bbc3661df Bug 1688827 [wpt PR 27325] - Test cases where request body gets used before network fallback, a=testonly
Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhirano@chrmomium.org>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325
2021-02-23 17:33:50 +00:00
autofoolip
0719b405f7 Bug 1693525 [wpt PR 27676] - Update interfaces/permissions.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/permissions.idl (#27676)

Source: https://github.com/w3c/webref/blob/4531bf6/ed/idl/permissions.idl
Build: https://travis-ci.org/w3c/webref/builds/217493628
--

wpt-commits: 8602e9c9a168c25838bc4b808e3d213ce94ccac1
wpt-pr: 27676
2021-02-23 17:33:49 +00:00
autofoolip
1945b87ee7 Bug 1693523 [wpt PR 27675] - Update interfaces/content-index.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/content-index.idl (#27675)

Source: https://github.com/w3c/webref/blob/4531bf6/ed/idl/content-index.idl
Build: https://travis-ci.org/w3c/webref/builds/217493628
--

wpt-commits: 2a0d77c018b88bc10e61d4346ccf109ec6127474
wpt-pr: 27675
2021-02-23 17:33:49 +00:00
Anne van Kesteren
ce6cc299ce Bug 1692017 [wpt PR 27575] - Fetch: fragments, a=testonly
Automatic update from web-platform-tests
Fetch: fragments

Tests for https://github.com/whatwg/fetch/pull/696.
--

wpt-commits: e8181c07ac768f4fc5c7b74016a8e51226717400
wpt-pr: 27575
2021-02-23 17:33:49 +00:00
Tsuyoshi Horo
729332a670 Bug 1693453 [wpt PR 27671] - Add test to check the unavailability of storages in urn uuid iframes, a=testonly
Automatic update from web-platform-tests
Add test to check the unavailability of storages in urn uuid iframes

Bug: 1082020
Change-Id: I2043a4db68fb66c3ae7d24990e10cf85aadb2101
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2702998
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#855126}

--

wpt-commits: 650f204fcb86070a61ccfd4fc63b6c3e8c0c142c
wpt-pr: 27671
2021-02-23 17:33:48 +00:00
Peter Kasting
5adfeeae50 Bug 1693423 [wpt PR 27667] - Revert "Add drawImage() and createImageBitmap() support for blink::VideoFrame.", a=testonly
Automatic update from web-platform-tests
Revert "Add drawImage() and createImageBitmap() support for blink::VideoFrame."

This reverts commit 27830868be3b06b19761c7ca4507a8e77ab1f535.

Reason for revert: New tests SEGVing on several linux bots

Original change's description:
> Add drawImage() and createImageBitmap() support for blink::VideoFrame.
>
> This makes blink::VideoFrame a CanvasImageSource for drawImage() and
> wires up the existing ImageBitmapSource implementation to
> createImageBitmap() to deprecate VideoFrame.createImageBitmap().
>
> A deprecation notice is added for VideoFrame.createImageBitmap(); the
> method will be removed prior to shipping WebCodecs.
>
> Bug: 1175907
> Test: New (moved from internal) WPT tests.
>
> Change-Id: I549d996c9b16a8d0a1dd5293b5bee29f61cac8f3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2680955
> Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
> Reviewed-by: Dan Sanders <sandersd@chromium.org>
> Reviewed-by: Fernando Serboncini <fserb@chromium.org>
> Reviewed-by: Jeremy Roman <jbroman@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#854938}

Bug: 1175907
Change-Id: I41b3cc7e6d76e4c80131d8cad2299774e4ebec95
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2702757
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#855005}

--

wpt-commits: d614b23de08adf12271dcdca27fe752bc4c6a952
wpt-pr: 27667
2021-02-23 17:33:48 +00:00
Morten Stenshorne
1714d8d96b Bug 1693326 [wpt PR 27660] - Allow fragmentainers with zero block-size., a=testonly
Automatic update from web-platform-tests
Allow fragmentainers with zero block-size.

The spec [1] says that fragmentainers are assumed to have a minimum
block-size of 1px regardless of their used size, in order to guarantee
content progress. We implemented this by simply making sure that the
used block-size of a fragmentainer would never become less than 1px. But
this wasn't ideal, as that would contribute to unwanted layout overflow
in cases where the content of the multicol container was shorter than
1px.

We'll now still accept at least 1px of content into each fragmentainer,
but don't stretch the fragmentainer itself (just allow the actual column
fragments to become that short as they want, and instead let the content
overflow the columns if necessary).

We still need to fill at least 1px of content before moving to the next
fragmentainer, and fast/multicol/zero-height-with-children.html is a
good test for this.

[1] https://www.w3.org/TR/css-break-3/#breaking-rules

Bug: 829028
Change-Id: I7b4e69524288dad8bb10fd10c715339d1769815a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2698554
Reviewed-by: Alison Maher <almaher@microsoft.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854974}

--

wpt-commits: dfa6dff98df467e0fa2721833c54f7a538d10158
wpt-pr: 27660
2021-02-23 17:33:47 +00:00
Ian Kilpatrick
6e35ea7e76 Bug 1692694 [wpt PR 27622] - [TableNG] Fix saturated sizes issue., a=testonly
Automatic update from web-platform-tests
[TableNG] Fix saturated sizes issue.

We can end up in a situation where:
 - table_inline_size is at LayoutUnit::Max()
 - border_padding.InlineSum() is at LayoutUnit::Max()
 - border_spacing.inline_size is some small value.

This combination results in a negative section_available_inline_size.

Bug: 1178044
Change-Id: I3bd860033195ed420323445e1c790d9f59962b98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2694345
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854940}

--

wpt-commits: 806ae8875bea1b8380081b0da8fd416337ea447f
wpt-pr: 27622
2021-02-23 17:33:47 +00:00
moz-wptsync-bot
6205148412 Bug 1692602 [wpt PR 27617] - Update wpt metadata, a=testonly
wpt-pr: 27617
wpt-type: metadata
2021-02-23 17:33:46 +00:00
Dale Curtis
ed29a0cc96 Bug 1692602 [wpt PR 27617] - Add drawImage() and createImageBitmap() support for blink::VideoFrame., a=testonly
Automatic update from web-platform-tests
Add drawImage() and createImageBitmap() support for blink::VideoFrame.

This makes blink::VideoFrame a CanvasImageSource for drawImage() and
wires up the existing ImageBitmapSource implementation to
createImageBitmap() to deprecate VideoFrame.createImageBitmap().

A deprecation notice is added for VideoFrame.createImageBitmap(); the
method will be removed prior to shipping WebCodecs.

Bug: 1175907
Test: New (moved from internal) WPT tests.

Change-Id: I549d996c9b16a8d0a1dd5293b5bee29f61cac8f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2680955
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Dan Sanders <sandersd@chromium.org>
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854938}

--

wpt-commits: 5eb4f915be3924ab711150454b1fe083a685e620
wpt-pr: 27617
2021-02-23 17:33:46 +00:00
Rob Buis
b636c75fe8 Bug 1692528 [wpt PR 27613] - [AspectRatio] Take box-sizing into account in replaced element intrinsic sizing, a=testonly
Automatic update from web-platform-tests
[AspectRatio] Take box-sizing into account in replaced element intrinsic sizing

Take box-sizing into account in replaced element intrinsic sizing when
using aspect-ratio, but keep using content-box when resolving
width/height when no aspect-ratio is set.

This CL removes ResolveWidthForRatio/ResolveHeightForRatio functions
and instead uses InlineSizeFromAspectRatio/BlockSizeFromAspectRatio.

Finally code is added to handle non horizontal writing-mode and a test
is added for that.

Bug: 1163176
Change-Id: I28449b3a0f567d4b3e41afe9a7429a0b03250fb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2690332
Commit-Queue: Rob Buis <rbuis@igalia.com>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854925}

--

wpt-commits: c9da3535ef3eb8ad5c24a7c5812e68ac3359ba86
wpt-pr: 27613
2021-02-23 17:33:45 +00:00
Lan Wei
aa14734e60 Bug 1693357 [wpt PR 27663] - Fix touch-events/single-touch.html on WPT dashboard, a=testonly
Automatic update from web-platform-tests
Fix touch-events/single-touch.html on WPT dashboard

On WPT dashboard, touch-events/single-touch.html fails because touchmove
and touchend events are not received. I fixed this test, so we can now
receive all the touch events.
https://wpt.fyi/results/touch-events/single-touch.html?
label=experimental&label=master&aligned

Bug: 1163370
Change-Id: If0b2ca65d597c89ad982ea51f80e7d026c8a72e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2689949
Reviewed-by: Mustaq Ahmed <mustaq@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854921}

--

wpt-commits: 618b27ffa120cc7c5a576b6375954c9fb42c36a9
wpt-pr: 27663
2021-02-23 17:33:45 +00:00
Ian Kilpatrick
a0178a2d8d Bug 1692691 [wpt PR 27621] - [TablesNG] Fix orthogonal cell sizing crash., a=testonly
Automatic update from web-platform-tests
[TablesNG] Fix orthogonal cell sizing crash.

In order to pick up the fallback orthogonal size we need to call
SetAvailableSize on the builder.

This was triggered after some logic tightening within ng_length_utils.

Bug: 1178130
Change-Id: I59d1c4c9882d96a558e035daa07debb80283fa9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2694344
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854893}

--

wpt-commits: 7198e2d0ff453d9d2ff1622dee4bd08be2ba7224
wpt-pr: 27621
2021-02-23 17:33:44 +00:00
Rob Buis
23dcfbbf26 Bug 1693115 [wpt PR 27649] - [AspectRatio] treat <ratio> that ends with slash as invalid, a=testonly
Automatic update from web-platform-tests
[AspectRatio] treat <ratio> that ends with slash as invalid

Treat <ratio> that ends with slash as invalid:
https://drafts.csswg.org/css-values-4/#ratio-value

Bug: 1045668
Change-Id: Icc4c16222f89402958b7e9f01c904472b15cfa80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2697151
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Rob Buis <rbuis@igalia.com>
Cr-Commit-Position: refs/heads/master@{#854815}

--

wpt-commits: 2ebf73585d4644cc5f232184b69642f36b6b8344
wpt-pr: 27649
2021-02-23 17:33:44 +00:00
Manuel Rego Casasnovas
2f53f83c91 Bug 1693259 [wpt PR 27656] - [selectors] Use ENTER instead of SHIFT in focus-visible-007.html, a=testonly
Automatic update from web-platform-tests
[selectors] Use ENTER instead of SHIFT in focus-visible-007.html

It's not clear if a modifier key like SHIFT implies
that "the user interacts with the page via the keyboard".
Using ENTER key instead of SHIFT it seems everyone agree,
so let's change the test to use ENTER.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1688539.

--

wpt-commits: 1bee46095eea9411a13783fba4cb08bffbdc8af2
wpt-pr: 27656
2021-02-23 17:33:43 +00:00
Drew Willcoxon
80e0f95944 Bug 1694237 - Properly discard duplicate suggestions in urlbar results. r=mak
This was a little more work than I first thought because fixing it uncovered
another problem: The recurse logic in the muxer isn't quite right. There are a
couple of problems actually:

1. By re-using the results from children that did not fill up, we skip updating
   `stateCopy` (and therefore `state`), which messes up subsequent buckets in
   the recursion because they're working with the wrong state.
2. By simply assigning `state = stateCopy` after handling children that didn't
   fill up, we're not really doing anything because at that point the function
   is done. The caller and subsequent buckets in the recursion won't see the
   updated state. We need to update `state` in place.

These problems were revealed in test_resultBuckets.js, which is pretty thorough.

To fix the actual problem that the bug is about (not deduping remote suggestions
and form history), we just need to keep a set of suggestions that the muxer has
seen so far, and then `_canAddResult` can discard dupe suggestions. This patch
adds `state.suggestions` for that, and it includes form history, remote
suggestions, and the heuristic query when it's a search result. This way the
relative ordering of form history vs. remote suggestions doesn't matter. We'll
dedupe whichever comes later.

A bunch of tasks in test_resultBuckets.js needed to be updated to account for
this because they were incorrectly not expecting dupes to be removed.

Differential Revision: https://phabricator.services.mozilla.com/D106030
2021-02-23 17:17:31 +00:00
Tom Ritter
e6aa1d9959 Bug 1692575: Adapt libdav1d's moz.yaml to the new format r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D105349
2021-02-23 16:34:39 +00:00
Tom Ritter
9535519563 Bug 1692575: Refactor the updatebot part of the moz.yaml schema to support multiple task types r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D105096
2021-02-23 16:34:31 +00:00
Simon Giesecke
7e11c5d899 Bug 1600239 - Make message produced by NoAddRefReleaseOnReturnChecker more explicit. r=andi
Add a reference to MOZ_NO_ADDREF_RELEASE_ON_RETURN in the message.

Use the qualified name of the function returning the object.

Differential Revision: https://phabricator.services.mozilla.com/D106143
2021-02-23 16:24:30 +00:00
Michelle Goossens
23fb719f61 Bug 1692553 - Remove "View page info" from page context menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105987
2021-02-23 16:09:43 +00:00
Cosmin Sabou
31a3457890 Backed out changeset cffeff2a2803 (bug 1664485) for wpt sanitizer-api related failures. CLOSED TREE 2021-02-23 17:59:59 +02:00
Emma Malysz
38dfb59850 Bug 1690131: create proton-specific fxa menu r=mconley,markh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D104937
2021-02-23 15:37:12 +00:00
Mike Conley
3ffc2a1848 Bug 1693644 - Only show a label for the camera/mic in the WebRTC device selector if there's only 1 device available or requested. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D105932
2021-02-23 15:13:45 +00:00
Benjamin Beurdouche
86775aa29e Bug 1692101 - Disable EV Treatment for Camerfirma's Chambers of Commerce Root - 2008 root certificate. r=mbirghan
Differential Revision: https://phabricator.services.mozilla.com/D106085
2021-02-23 15:12:58 +00:00
Stephen A Pohl
7abea3417b Bug 1694193: Fix intermittent test failure of disabled-1.html due to turning on the non-native theme on macOS by adjusting fuzziness. DONTBUILD
Depends on D106140

Differential Revision: https://phabricator.services.mozilla.com/D106141
2021-02-23 15:12:19 +00:00
Stephen A Pohl
1480c1ee8b Bug 1694177: Fix intermittent test failure of reset-value.html due to turning on the non-native theme on macOS by adjusting fuzziness. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106140
2021-02-23 15:12:19 +00:00
harry
43ec533571 Bug 1594132 - Move background-color rules so they do not appear under appearance rules, enabling sidebar vibrancy. r=ntim,dao
`appearance` CSS rules allow elements to take on system appearance. For UI elements that we want to take on system styling, we set `appearance: auto` combined with platform-specific rules like `-moz-default-appearance: -moz-mac-vibrant-titlebar-light;`

macOS sidebar vibrancy broke because a background-color was being applied to `root`. That colour appeared under elements with `appearance: auto` set, so we wouldn't see the platform-specific styling. This patch moves the root background-color to `#navigator-toolbox`, so that it does not appear under `#sidebar-box`.

We still want a background colour applied to sidebars when a lwtheme includes one. We only want `appearance: auto` applied to sidebars when the active theme does not have sidebar styling rules. That's why `#sidebar-box:not(:-moz-lwtheme)` is changed to `#sidebar-box:not([lwt-sidebar])`.

This patch also removes the rule
```
:root:-moz-lwtheme {
  appearance: none;
}
```
from osx/global/global.css. There's no corresponding addition of a `#navigator-toolbox { appearance:none; }` rule because that rule already exists in [osx/browser.css](https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/themes/osx/browser.css#45).

Differential Revision: https://phabricator.services.mozilla.com/D104416
2021-02-23 15:03:45 +00:00
Nicolas Silva
8ff2dd18be Bug 1692250 - Use ImageSourceHandle with Yuv image primtives. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D105951
2021-02-23 14:47:10 +00:00
Nicolas Silva
7a5fe8b08c Bug 1692250 - Make image borders use ImageSourceHandle. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D105950
2021-02-23 14:47:10 +00:00
Nicolas Silva
98e0a77b54 Bug 1692250 - Simplify blit render tasks. r=gw
Blit render tasks have special code to read from the texture cache. This isn't necessary anymore now that texture cache items can be used as nodes of the frame graph. Blits can be simplified into reading from any render task without knowing how it was produced.

Differential Revision: https://phabricator.services.mozilla.com/D105746
2021-02-23 14:47:09 +00:00
Byron Campen [:bwc]
5573fc71ec Bug 1684994: Simplify this. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D105637
2021-02-23 14:02:44 +00:00
Mirko Brodesser
67f65b4320 Bug 1674658: part 2) Don't peform the default action for mousemove events when it should be prevented. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D106083
2021-02-23 13:27:41 +00:00
Mirko Brodesser
09da356fe9 Bug 1674658: part 1) Add WPT. r=smaug
Currently, the test violates the spec. See
https://github.com/w3c/uievents/issues/278. However, it's the behavior
of all major browsers and the desired one. The spec should be fixed
separately in above ticket.

Differential Revision: https://phabricator.services.mozilla.com/D106082
2021-02-23 13:27:41 +00:00
Frederik Braun
8bc870864d Bug 1664485 - make sanitize/sanitizeToString param's non-optional r=ckerschb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D105953
2021-02-23 12:35:21 +00:00
Julian Descottes
5618cad244 Bug 1692995 - [devtools] Support early calls to unwatchResources r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D105295
2021-02-23 11:59:59 +00:00
Cosmin Sabou
51f713408b Backed out changeset 3bf5d4016ea7 (bug 1694059) for input range reftest failures. CLOSED TREE 2021-02-23 14:25:35 +02:00
Emilio Cobos Álvarez
503c1ae27c Bug 1694059 - Green up swgl tests.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-23 13:02:33 +01:00
Andi-Bogdan Postelnicu
fc5eb87bb7 Bug 1648941 - fix for Coverity Static Analysis crash in layout. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D106076
2021-02-23 11:44:53 +00:00
Emilio Cobos Álvarez
643d8c9b88 Bug 1693969 - Remove default styling for :-moz-ui-{valid,invalid} pseudo-classes. r=xidorn
Other browsers don't have this UI, and there's no way to know whether
the form will actually be validated, so it can cause false-positives.

Depends on D105968

Differential Revision: https://phabricator.services.mozilla.com/D105969
2021-02-23 11:26:17 +00:00
Emilio Cobos Álvarez
b0bc0f75a5 Bug 1693969 - Remove <form novalidate> handling from :-moz-ui-{valid,invalid} pseudo-classes. r=smaug
There's no way to know whether the submission will actually be
validated, because formnovalidate on submit buttons is a thing (and even
if all the submit controls had formnovalidate, you could still submit
the form and validate it via form.submit()), so it seems better to make
these pseudo-classes not depend on this.

Differential Revision: https://phabricator.services.mozilla.com/D105968
2021-02-23 11:26:17 +00:00
Andrew Nicols
31039e0258 Bug 1686361 - [marionette] Sync synthesizeMouseAtPoint from EventUtils.js. r=marionette-reviewers,whimboo
Currently the default value of buttons is set to
MOUSE_BUTTONS_NOT_SPECIFIED, which defers calculation of the value to
the DOMWindowUtils GetButtonsFlagForButton function. This calculates a
default value based upon the value of the button key.

By specifying a default button value of 0, which has a meaning of
ePrimary, the buttons value is calculated as the
ePrimaryFlag (1), suggesting that a button was pressed.

This patch changes the behaviour to set the value of buttons based on
the original value of button before the default was applied. The value
of buttons also considers the event type to ensure that a mousedown
event has a default value calculated by DOMWindowUtils.

With the new behaviour:
- if a value was explicitly set for buttons, this is used
- if a value was explicitly set for button, then the not-specified
  constant is used to defer calculation to DOMWindowUtils
- if an event type was specified and that event type was not the
  'mousedown' event, then the no-button constant is used
- if an event type was not specified or it was for the 'mousedown'
  event, then the not-specified constant is used to defer calculation to
  DOMWindowUtils

Differential Revision: https://phabricator.services.mozilla.com/D105877
2021-02-23 11:25:54 +00:00
Emilio Cobos Álvarez
de7b30696a Bug 1694299 - Tweak a fuzzy annotation to also cover Cocoa+NNT.
Differential Revision: https://phabricator.services.mozilla.com/D106123
2021-02-23 11:19:12 +00:00
Sebastian Hengst
834fb7bed2 Bug 1694268 - add back url/failure.html failure expectation for Windows with Fission enabed. DONTBUILD
The expectation got removed in bug 1693331.

Differential Revision: https://phabricator.services.mozilla.com/D106119
2021-02-23 10:54:01 +00:00
Emilio Cobos Álvarez
95e40970cd Bug 1692845 - Restore read from global print settings for a few settings, including print_bgcolor and print_bgimages. r=bobowen
These were lost in bug 1667953, but I don't think print_bgimages /
print_bgcolor should be printer-specific only.

Differential Revision: https://phabricator.services.mozilla.com/D105465
2021-02-23 10:52:53 +00:00
Emilio Cobos Álvarez
3ae296b53c Bug 1694059 - Use WebRender to render non-native range inputs and checkboxes. r=mstange
The only thing missing now are things that draw arrows / checkmarks.

Make the disabled range thumb opaque, to avoid dealing with clipping
(also matches all other browsers, fwiw).

Differential Revision: https://phabricator.services.mozilla.com/D106011
2021-02-23 10:51:37 +00:00
Emilio Cobos Álvarez
7f2b3314e0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 10:49:37 +00:00
Emilio Cobos Álvarez
722a19defe Bug 1693886 - Increase custom property size limit a bit. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D105978
2021-02-23 10:43:03 +00:00
Sebastian Hengst
fcc688c7f7 Bug 1694217 - use --less-context option on submission of periodic file update patches to work around Phabricator limit to changes in file. r=mtabara DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106086
2021-02-23 10:30:45 +00:00