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

846543 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard e3a6541fe6 Bug 1839594 - Add TimeDuration::Zero() method to get a zero time duration r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D181615
2023-06-22 09:27:21 +00:00
Cristian Tuns 684fec2fef Backed out 14 changesets (bug 1833855) for causing build bustages in SharedSurface.cpp CLOSED TREE
Backed out changeset c3f7d1963902 (bug 1833855)
Backed out changeset 347c47f5542a (bug 1833855)
Backed out changeset 2c0807d0b39a (bug 1833855)
Backed out changeset 013d1d16194d (bug 1833855)
Backed out changeset 2e49d43a627c (bug 1833855)
Backed out changeset ea21e90a71dd (bug 1833855)
Backed out changeset 8d5d0690668c (bug 1833855)
Backed out changeset 4eb11068275d (bug 1833855)
Backed out changeset 15120d9c5b24 (bug 1833855)
Backed out changeset b75750bb7596 (bug 1833855)
Backed out changeset 6f94e3f002ed (bug 1833855)
Backed out changeset 3235825211f9 (bug 1833855)
Backed out changeset 47a6e9ed8828 (bug 1833855)
Backed out changeset b8013c43aa20 (bug 1833855)
2023-06-22 05:29:12 -04:00
Emilio Cobos Álvarez 4793228629 Bug 1839638 - Fix stylesheet invalidation on some kinds of rule insertions. r=zrhoffman
In particular, style rules weren't taking the children code-path.

Differential Revision: https://phabricator.services.mozilla.com/D181650
2023-06-22 09:14:08 +00:00
Updatebot c3b2391971 Bug 1839774 - Update PDF.js to 03059e1f866e4c0b587607f879dc1a26f8b26820 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D181708
2023-06-22 09:11:40 +00:00
Emilio Cobos Álvarez 4b7eef2d2a Bug 1839766 - Remove useless null-checks in LoadBlockingAsyncEventDispatcher. r=masayuki,smaug
OwnerDoc() can't return null.

Differential Revision: https://phabricator.services.mozilla.com/D181703
2023-06-22 08:59:31 +00:00
Dão Gottwald 6b3ed463cf Bug 1766470 - Unify menuseparator implementation across platforms and increase hit area. r=emilio,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D181264
2023-06-22 08:46:17 +00:00
stransky 46005fd4fc Bug 1833855 [Linux] Replace kIsX11 and kIsWayland with kIsLinux r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D178647
2023-06-22 08:35:58 +00:00
stransky dc9e855379 Bug 1833855 [Linux] Update widget/gtk for wayland/x11 exclusive builds r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178644
2023-06-22 08:35:58 +00:00
stransky 092eae938e Bug 1833855 [Linux] Update GtkCompositorWidget to work on X11 only builds r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178643
2023-06-22 08:35:57 +00:00
stransky 526a88c8c9 Bug 1833855 [Linux] Build and run vaapitest on X11 only builds r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178642
2023-06-22 08:35:57 +00:00
stransky d67ff2eb87 Bug 1833855 [Linux] Update DMABufSurface to build on X11 only r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178641
2023-06-22 08:35:57 +00:00
stransky e6d44f3279 Bug 1833855 [Linux] Update DMABufLibWrapper for X11 r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178640
2023-06-22 08:35:57 +00:00
stransky 77f00d6c6e Bug 1833855 [Linux] Make sure we have correct display for X11 and Wayland exclusive builds r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178639
2023-06-22 08:35:57 +00:00
stransky 23ceaf8d0b Bug 1833855 [Linux] Update glxtest to get DRM device on Linux/Gtk r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178638
2023-06-22 08:35:57 +00:00
stransky 3c37cb4316 Bug 1833855 [Linux] Build mozva (VA-API library wrapper) on Linux/Gtk r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D178637
2023-06-22 08:35:57 +00:00
stransky 0ad4303985 Bug 1833855 [Linux] Build VA-API FFVPX support Linux/Gtk r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D178636
2023-06-22 08:35:57 +00:00
stransky a0ded01435 Bug 1833855 [Linux] Build widget.dmabuf preferences on Linux/Gtk r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178635
2023-06-22 08:35:56 +00:00
stransky a5e8bfe6b4 Bug 1833855 [Linux] Build dmabuf support on Linux/Gtk and don't request Wayland for it r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D178634
2023-06-22 08:35:56 +00:00
stransky 04cb9f4fc7 Bug 1833855 [Linux] Build VA-API support on Linux/Gtk3 and don't request Wayland support for it r=alwu
- VA-API doesn't need Wayland so enable it for Linux/Gtk3 target.

Differential Revision: https://phabricator.services.mozilla.com/D178633
2023-06-22 08:35:56 +00:00
stransky 5da69b133e Bug 1833855 [Linux] Create Wayland only and X11 only build targets r=glandium
To support Wayland and X11 exclusive builds do:

- Add cairo-gtk3-x11-only build target
- Configure cairo-gtk3-wayland-only build target without X11
- Configure cairo-gtk3-x11-only target without Wayland support.

Differential Revision: https://phabricator.services.mozilla.com/D178632
2023-06-22 08:35:56 +00:00
Peter Van der Beken 36003fd793 Bug 1803752 - Make CSS2Properties getters and setters use a common generated implementation. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D181106
2023-06-22 08:12:07 +00:00
Peter Van der Beken 4a6f4b7aa1 Bug 1803752 - Use BindingAlias for prefixed CSS properties where possible. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D181104
2023-06-22 08:12:07 +00:00
Peter Van der Beken 246deb207e Bug 1825745 - Fix intermittent failure of testing/web-platform/tests/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit-button-click.html. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D180534
2023-06-22 08:07:06 +00:00
Peter Van der Beken 1e615c9d15 Bug 1825745 - Make form submits do a replace load if they happen before document load has ended. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D174224
2023-06-22 08:07:06 +00:00
Jan Varga 2a5b096e52 Bug 1839417 - Move stream helpers to separate files; r=dom-storage-reviewers,asuth
(needed for moving operations outside ActorsParent.cpp)

Differential Revision: https://phabricator.services.mozilla.com/D181480
2023-06-22 08:04:17 +00:00
Jan Varga 120b8693b5 Bug 1839417 - Move sanitization methods to separate files; r=dom-storage-reviewers,asuth
(needed for moving operations outside ActorsParent.cpp)

Differential Revision: https://phabricator.services.mozilla.com/D181479
2023-06-22 08:04:16 +00:00
Jan Varga dc0856d1d0 Bug 1839417 - Move QuotaManager::CollectPendingOriginsForListing implementation to QuotaManagerImpl.h; r=dom-storage-reviewers,asuth
QuotaManager::CollectPendingOriginsForListing is a public template function so
it shouldn't be implemented in a cpp file.
(needed for moving operations outside ActorsParent.cpp)

Differential Revision: https://phabricator.services.mozilla.com/D181478
2023-06-22 08:04:16 +00:00
Mike Hommey 84236733a9 Bug 1839263 - Don't derive assertRaisesFromLine from assertRaises. r=firefox-build-system-reviewers,ahochheiden
In python 3.11 (maybe also 3.10, I haven't tested that version ; 3.9 was
definitely different), by the time the context manager comes back in our
assertRaisesFromLine, the traceback is not available anymore (or yet,
I'm not entirely sure which way it does) to inspect and check the line
numbers we want to check.

And while assertRaises exposes the thrown exception in its `exception`
attribute, it also resets the traceback associated with it, so we can't
find it there either.

So instead, we implement our own context manager for
assertRaisesFromLine such that we can access that traceback.

Differential Revision: https://phabricator.services.mozilla.com/D181425
2023-06-22 07:30:02 +00:00
Mike Hommey 1d15b1f8f5 Bug 1839263 - Fix python configure lint on python >= 3.10. r=firefox-build-system-reviewers,ahochheiden,sergesanspaille
Python 3.10 added some more arguments to the CodeTypes constructor. It
also changed co_lnotab to co_linetables.

We were using co_lnotab to simulate a function with a def at a specific
line and a raise at a specific other line. I'm not sure how I ended up
with this particular requirement (this may have been related to python 2
still being used back then), but as of now, it doesn't seem we need the
def to be at a specific location, so we can avoid needing to generate
a co_linetables/co_lnotab, relying instead on the raise expression being
on the co_firstlineno+1 in the thrower function.

As for the extra arguments, it turns out python 3.8 also introduced a
CodeType.replace method that can be used to derive a CodeType object
from another, which is certainly simpler than calling its construtor
with the right set of arguments.

Differential Revision: https://phabricator.services.mozilla.com/D181424
2023-06-22 07:30:01 +00:00
Mark Banner d016a2bcdc Bug 1839388 - Convert distribution.js to an ES module. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D181578
2023-06-22 07:22:13 +00:00
Mike Hommey 0ab0b674c6 Bug 1839798 - Remove dependencies on cctools-port from tasks that don't use it. r=firefox-build-system-reviewers,ahochheiden
The only tasks still using it are those doing PGO (profile use only) and
the builds that unify x64 and arm64 mac builds.

Differential Revision: https://phabricator.services.mozilla.com/D181728
2023-06-22 07:19:51 +00:00
Mike Hommey cef8127cfc Bug 1839786 - Add Fedora 38 and Ubuntu 23.04 bootstrap tests. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D181720
2023-06-22 07:18:16 +00:00
Noemi Erli ca678a69dc Backed out changeset 55d4f8fe0d12 (bug 1832195) for causing failures in browser_fullscreen_exit_on_external_protocol.js CLOSED TREE 2023-06-22 10:07:55 +03:00
Mozilla Releng Treescript 5b275ad928 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> eaf273ac6eb746c800fc12c3bfcdcdb48c9766e3
cs -> 8e46be4f834f481882f0561c1b7465d9dda7344f
da -> f7455b2f38727cfa3d4b5472b3f93ba733fac57b
uk -> 3943ed227a0644977c9b9257ae7f3bffd778f4c8
2023-06-22 06:58:55 +00:00
Dimi acdeb4cc11 Bug 1756136 - Add `addlx` to address-lineX regular expression keywords r=credential-management-reviewers,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D181438
2023-06-22 06:24:35 +00:00
Cristian Tuns a6383b5dce Backed out changeset 7a6650647e00 (bug 1839741) to fix bug 1839797 CLOSED TREE 2023-06-22 02:32:20 -04:00
Andrew Sutherland 4bbf9407e0 Bug 1838496 - Don't assume WorkerDebuggerGlobalScope exists. r=dom-worker-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D181712
2023-06-22 06:09:04 +00:00
Masayuki Nakano c2eeb1f42e Bug 1787625 - Add automated test for bug 1739923 r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D180781
2023-06-22 05:37:39 +00:00
Drew Willcoxon 0e465234f7 Bug 1839558 - Allow suggestion scores to be specified in Nimbus. r=daisuke
This adds a `quickSuggestScoreMap` Nimbus variable that lets experiments
override suggestion scores. It maps from telemetry types to score values. For
example:

```
"quickSuggestScoreMap": {
  "amo": 0.25,
  "adm_sponsored": 0.3
}
```

In this example, addon suggestions will always have a score of 0.25, and
sponsored suggestions will always have a score of 0.3. Of course, different
branches within an experiment and different experiments can set different
scores.

While working on this, I saw we have a bug when we try to look up the
`BaseFeature` for a result. To do the lookup, we look up the result's
`telemetryType` in `FEATURE_NAMES_BY_TELEMETRY_TYPE`. That's a problem for `adm`
suggestions because the `telemetryType` will be either `adm_sponsored` or
`adm_nonsponsored`, but neither of those is present in
`FEATURE_NAMES_BY_TELEMETRY_TYPE` -- only `adm` is.

To fix it, I added back the `provider` property to result payloads that I
previously removed, and I added `BaseFeature.merinoProvider` so each feature can
specify its Merino provider. Then, `QuickSuggest` can build a map from Merino
provider names to features, allowing us to look up features without needing to
hardcode something like `FEATURE_NAMES_BY_TELEMETRY_TYPE` or
`FEATURE_NAMES_BY_MERINO_PROVIDER`.

Since I added back the `provider` property, I had to update a lot of tests. (As
a follow up, it would be nice to centralize the creation of expected result
objects in the test helper.)

I also added `BaseFeature.getSuggestionTelemetryType()` to help implement the
score map and to better formalize the idea that telemetry types are an important
property that all quick suggest results should include.

Differential Revision: https://phabricator.services.mozilla.com/D181709
2023-06-22 03:55:40 +00:00
Makoto Kato 01cd7f07de Bug 1832195 - Don't fire full screen request immediately. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D180086
2023-06-22 03:32:44 +00:00
Hiroyuki Ikezoe c146abc3d5 Bug 1835712 - Add a new flag to InputAPZContext to indicate the state we didn't handle the event on the main-thread. r=botond
And use it to tell whether it's safe to inform the handled result to APZ.

Differential Revision: https://phabricator.services.mozilla.com/D180760
2023-06-22 03:01:44 +00:00
Hiroyuki Ikezoe de8eca7976 Bug 1719855 - Take over preventDefaulted infomation for long-tap events to the original touch block. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D179767
2023-06-22 03:01:44 +00:00
Hiroyuki Ikezoe 4f568eaa04 Bug 1719855 - Add two flags to differentiate a state that it's ready to be handled in APZ but not yet ready to inform the handled result to GeckoView. r=geckoview-reviewers,botond,calu
Depends on D176481

Differential Revision: https://phabricator.services.mozilla.com/D176727
2023-06-22 03:01:44 +00:00
Hiroyuki Ikezoe 95b63aebe3 Bug 1719855 - Fix DoLongPressPreventDefaultTest to scroll down the content by touch events. r=botond
Originally the test tried to scroll up, thus the content didn't scroll at all.

Now with scrolling down touch events, the content scrolls down even if the
long-tap event was preventDefaulted.

Depends on D176480

Differential Revision: https://phabricator.services.mozilla.com/D176481
2023-06-22 03:01:44 +00:00
Hiroyuki Ikezoe 5820e0d891 Bug 1719855 - Route preventDefaulted touchmove event information to APZ properly. r=botond
This change includes three things;

1) Keep two different touch blocks alive during handling a long-tap event,
   one is for the long-tap, the other one is the original block started with
   touchstart.
2) Wait a content response again once after a long-tap event was processed
3) Unconditionally invoke ContentReceivedInputBlockCallback from APZEventState
   for touchmove events so that it will properly route to APZ even if a content
   response for the touchstart has already delivered to APZ.

With these now content responses for `contextmenu` events are handled by the
long-tap block, content responses for touch events are handled by the original
touch block respectively. As a result, `DoLongPressPreventDefaultTest` in
TestGestureDetector.cpp starts processing touch events in APZ thus we observe
a RequestContentRepaint call there, the test content isn't scrolled though. It
will change in the next commit.

Depends on D176479

Differential Revision: https://phabricator.services.mozilla.com/D176480
2023-06-22 03:01:43 +00:00
Hiroyuki Ikezoe b471f6e843 Bug 1719855 - Make sure to fire a pointercancel event after `contextmenu` was preventDefaulted. r=botond
Before this change pointercancel events were fired only if
`mPendingTouchPreventedResponse` is true which means the events are not fired
after the flag was set to false via a `SendPendingTouchPreventedResponse(false)`
call in APZEventState::ProcessLongTap().

Depends on D176478

Differential Revision: https://phabricator.services.mozilla.com/D176479
2023-06-22 03:01:43 +00:00
Hiroyuki Ikezoe ab519bf2d9 Bug 1719855 - Clean up code whether to fire a pointercancel event. r=botond
`setContentResponse` was set to `true` in the `if (isTouchPrevented)` branch in
`case eTouchStart`, thus it's impossible we meet
(`setContentResponse && !touchPrevented`) condition.

Depends on D176477

Differential Revision: https://phabricator.services.mozilla.com/D176478
2023-06-22 03:01:43 +00:00
Hiroyuki Ikezoe fd970b4945 Bug 1719855 - Add a mochitest that preventDefault() in touchmove prevents scrolling. r=botond
In a subsequent change, we will re-use this test code for testing a similar case
where we don't `preventDefault()` in the contextmenu event handler.

Depends on D176476

Differential Revision: https://phabricator.services.mozilla.com/D176477
2023-06-22 03:01:43 +00:00
Hiroyuki Ikezoe 9371d48c1f Bug 1719855 - Use CreateSingleTouchData rather than using a ctor of SingleTouchData for the first touch-move event. r=botond
The ctor doesn't set mScreenPoint so that we fail to detect bailing out from
in-slop state state, thus during processing the touch-move event we drop the
event [1].

The reason why the gtest has passed is that the corresponding touch block in
question is for a long-tap event instead of touch-start/move/end events it
never becomes in-slop state. In a subsequent change, we differentiate the
touch block for a long-tap from the block for touch-start/move/end events.

[1] https://searchfox.org/mozilla-central/rev/504bd0a7ee3110ecb2b31f89b9ce54faf76e228b/gfx/layers/apz/src/InputQueue.cpp#190-193

Depends on D176475

Differential Revision: https://phabricator.services.mozilla.com/D176476
2023-06-22 03:01:43 +00:00
Hiroyuki Ikezoe f8ac07e7b7 Bug 1719855 - Factor out StartNewTouchBlockForLongTap. r=botond
Depends on D176474

Differential Revision: https://phabricator.services.mozilla.com/D176475
2023-06-22 03:01:43 +00:00