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

786676 Коммитов

Автор SHA1 Сообщение Дата
Jan de Mooij 7e4e171e27 Bug 1756347 part 2 - Use # prefix for arm32 immediates. r=lth
Depends on D139703

Differential Revision: https://phabricator.services.mozilla.com/D139704
2022-02-28 14:50:25 +00:00
Jan de Mooij a373891863 Bug 1756347 part 1 - Work around a GCC issue with generated atomics. r=lth
Use MOZ_NEVER_INLINE for GCC x86-32. It seems to run out of byte registers when
inlining these functions.

Differential Revision: https://phabricator.services.mozilla.com/D139703
2022-02-28 14:50:25 +00:00
Jonathan Watt 88428ea7e6 Bug 1757395 - Remove IPC code for opening print dialogs. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D139833
2022-02-28 14:45:36 +00:00
Gijs Kruitbosch 371e133ed3 Bug 1749537 - remove obsolete _formatPrintButtonShortcuts(), r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D135949
2022-02-28 14:33:29 +00:00
criss 8bd0bafa53 Backed out changeset d1e6410ead1d (bug 1514495) for causing failures on browser_jsonview_filter_clear.js. CLOSED TREE 2022-02-28 16:50:10 +02:00
criss 9bebbe01a2 Backed out 2 changesets (bug 1756620, bug 1756533) for causing failures on browser_rules_css-compatibility-check-add-fix.js
Backed out changeset 4984bcaf64cf (bug 1756533)
Backed out changeset 86305783882c (bug 1756620)
2022-02-28 16:49:03 +02:00
colin_czb 039c4abdd1 Bug 1514495 - [devtools] Add a button to clear filter input in JSON inspector r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D135428
2022-02-28 14:01:47 +00:00
Lars T Hansen 8705ae0b9a Bug 1756548 - Retire RABALDR_HAS_HEAPREG, use WASM_HAS_HEAPREG. r=yury
WASM_HAS_HEAPREG was recently introduced as a global definition, so
we can simplify the baseline compiler by using that instead of the
private RABALDR_HAS_HEAPREG.

Differential Revision: https://phabricator.services.mozilla.com/D139807
2022-02-28 13:57:09 +00:00
Jon Coppeard 79356b8242 Bug 1757033 - Set JS::ContextOptions for off-thread parsing and delazification r=jandem
This adds an options parameter to JSContext::setHelperThread and arranges to
have the value from the main thread passed through where required.

Differential Revision: https://phabricator.services.mozilla.com/D139824
2022-02-28 13:52:19 +00:00
Lars T Hansen 6d220e948a Bug 1757393 - remove unused variable. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D139832
2022-02-28 13:38:30 +00:00
ffxbld afffec69b7 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D139826
2022-02-28 13:13:10 +00:00
Evgenia Kotovich f1934cbc5b Bug 1756563 - Remove unintended inclusion of a marionette script from instantEditBookmarks.js. r=mak?
Differential Revision: https://phabricator.services.mozilla.com/D139802
2022-02-28 13:07:36 +00:00
Mark Banner ce31f4c0a4 Bug 1756563 - Define the WebExtension browser in-line for messagehandler head files. r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139815
2022-02-28 13:07:35 +00:00
Hubert Boma Manilla 4dd5809afa Bug 1757379 - [devtools] Add a function to unifying the shape of the breakpoint r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139811
2022-02-28 12:59:34 +00:00
Hubert Boma Manilla 308b9eb863 Bug 1757375 - [devtools] Add thread information to some debugger resources r=ochameau
This adds thread information to sources (generated, original and pretty-printed-original), tabs and breakpoints
as its already done with source actors. This will make it easy to apply retrieve and cleanup these resources
based on their thread info without having to do a lot of work.  Might help improve perfomance is some of
the complex selectors.

Differential Revision: https://phabricator.services.mozilla.com/D139810
2022-02-28 12:59:34 +00:00
Paul Adenot 254b2b435d Bug 1757153 - requestMIDIAccess should be [SecureContext]. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D139705
2022-02-28 12:39:07 +00:00
Paul Adenot 01d5e875c5 Bug 1705493 - Restore changes overwritten by bug 1756582.
Differential Revision: https://phabricator.services.mozilla.com/D139827
2022-02-28 11:17:25 +00:00
Nicolas Chevobbe 4fe958191e Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-02-28 10:51:56 +00:00
Nicolas Chevobbe 17e5050429 Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-02-28 10:51:56 +00:00
Jan Horak c1822b61d2 Bug 1712555 Remove obsolete print portal; r=emilio
We no longer need to use the print portal, the gtk is doing that for us
for the system print dialog and the native print dialog uses GtkPrintJob
which sends jobs to the cups print backend.

Differential Revision: https://phabricator.services.mozilla.com/D139594
2022-02-28 10:47:50 +00:00
Jon Coppeard 18a7ebadac Bug 1756568 - Part 4: Merge WeakRef support data structures into FinalizationObservers r=sfink
Depends on D139693

Differential Revision: https://phabricator.services.mozilla.com/D139694
2022-02-28 10:33:11 +00:00
Jon Coppeard 60c300956a Bug 1756568 - Part 3: Rename source files containing FinalizationRegistry GC implementation to FinalizationObservers.cpp r=sfink
Depends on D139692

Differential Revision: https://phabricator.services.mozilla.com/D139693
2022-02-28 10:33:10 +00:00
Jon Coppeard 417893e4d2 Bug 1756568 - Part 2: Rename FinalizationRegistry support data structures to FinalizationObservers r=sfink
Depends on D139691

Differential Revision: https://phabricator.services.mozilla.com/D139692
2022-02-28 10:33:10 +00:00
Jon Coppeard ad8b149a7f Bug 1756568 - Part 1: Simplify WeakRef sweeping a little by using GCVector::mutableEraseIf r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D139691
2022-02-28 10:33:10 +00:00
criss 04dbb1a865 Merge autoland to mozilla-central. a=merge 2022-02-28 11:00:33 +02:00
Mozilla Releng Treescript 4a1efe6362 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
de -> 06d2a35c69e73a4967236acef56aa683253fb759
es-ES -> 28bfed3dda578a872f90918c0966d16109e229a2
hu -> f32b8217c787841ec5754cea1f4926f283112283
2022-02-28 06:57:39 +00:00
criss 482513fd24 Backed out 5 changesets (bug 1749352) for causing GTest failures. CLOSED TREE
Backed out changeset 977e030270db (bug 1749352)
Backed out changeset 8f8afd043413 (bug 1749352)
Backed out changeset 550c693e5dea (bug 1749352)
Backed out changeset c50f4c8331d3 (bug 1749352)
Backed out changeset ba1013d34a9e (bug 1749352)
2022-02-28 08:47:39 +02:00
Glenn Watson 439765c954 Bug 1757259 - Fix snapping on surfaces with 180 + 180 deg rotations r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D139801
2022-02-28 05:54:42 +00:00
Bryce Seager van Dyk 09859a423f Bug 1754645 - Extend MEDIA_RECORDER_RECORDING_DURATION probe lifetime. r=padenot
Depends on D139321

Differential Revision: https://phabricator.services.mozilla.com/D139322
2022-02-28 00:53:05 +00:00
Bryce Seager van Dyk f680dcdb4a Bug 1754645 - Remove MEDIA_RECORDER_TRACK_ENCODER_INIT_TIMEOUT_TYPE probe. r=padenot
This probe reports when our different track encoders fail to init in the
MediaRecorder pipeline. The failure rates are very low, so I don't think keeping
this around is helping us.

Differential Revision: https://phabricator.services.mozilla.com/D139321
2022-02-28 00:53:04 +00:00
Jonathan Watt 300fb860be Bug 1756447 - Remove the code supporting saving print setting from the content process. r=bobowen,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D139292
2022-02-27 23:45:56 +00:00
Gerald Squelart f5dec38bf8 Bug 1757100 - Sprinkle [[nodiscard]] and =delete in RWLock.h - r=glandium,xpcom-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139680
2022-02-27 23:32:56 +00:00
Gerald Squelart 97bc60386d Bug 1757100 - Move minimal platform-dependent part of RWLock to mozglue/misc/PlatformRWLock.h&cpp - r=glandium,xpcom-reviewers
This is consistent with how xpcom's Mutex has its platform-dependent code in mozglue, and will allow readers-writer locks in mozglue without duplication.

Differential Revision: https://phabricator.services.mozilla.com/D139669
2022-02-27 23:32:55 +00:00
Hiroyuki Ikezoe c05a6a04a8 Bug 1749352 - Add gtests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D139561
2022-02-27 23:19:50 +00:00
Markus Stange a5b1d43de7 Bug 1749352 - Remove unused mFollowedByMomentum. r=botond
Depends on D135922

Differential Revision: https://phabricator.services.mozilla.com/D135923
2022-02-27 23:19:49 +00:00
Markus Stange 0b89caa1e2 Bug 1749352 - Always call ScrollSnapToDestination from OnPanEnd, and ignore mFollowedByMomentum. r=botond
This patch makes us use the same code path for scroll snapping of
zero-velocity OnPanEnd and followed-by-momentum OnPanEnd.
This is preferable because mFollowedByMomentum is unreliable.

Depends on D135921

Differential Revision: https://phabricator.services.mozilla.com/D135922
2022-02-27 23:19:49 +00:00
Markus Stange 45f1667d94 Bug 1749352 - Use ScrollUnit::DEVICE_PIXELS in ScrollSnapToDestination. r=botond
ScrollSnapUtils::GetSnapPointForDestination has different behavior based on
the scroll unit. More specifically, the difference is in CalcSnapPoints::AddEdge:
Unless the unit is DEVICE_PIXELS, this function will only look for snap
points in the scroll direction. For example, if we are currently at position 40,
our destination is 50, and we have snap points at 30 and 100, then we'll only
consider snap point 100, even though snap point 30 would be closer to the destination.
Furthermore, if the destination is at the same position as the current position,
then we will not snap at all.
This behavior makes some sense for discrete-tick wheel scrolling, but I don't think
it is appropriate for touchpad scrolling. ScrollSnapToDestination is called from
OnPanMomentumStart and from AttemptFling; in both these contexts I think it makes
more sense to take all snap points into account.

With this change, it becomes possible to call ScrollSnapToDestination even when
our current velocity is zero. Without this change, we wouldn't scroll snap at
all in that case.

Depends on D135920

Differential Revision: https://phabricator.services.mozilla.com/D135921
2022-02-27 23:19:48 +00:00
Markus Stange 51877e08a5 Bug 1749352 - Don't interrupt scroll snapping animations when we receive a momentum pan event. r=botond
Scroll snapping uses an MSD smooth scroll to animate to the target position.
During the scroll snap animation, any synthesized momentum events
from the OS should be ignored; the scroll snap animation has taken over.

It is possible that this patch has unfortunate consequences when mixing
keyboard and touchpad scrolling. For example, pressing space to scroll down
by a page and then doing a fling with the touchpad might now have different
results.

Differential Revision: https://phabricator.services.mozilla.com/D135920
2022-02-27 23:19:48 +00:00
Iulian Moraru 4b0db9788b Merge mozilla-central to autoland on a CLOSED TREE 2022-02-27 23:51:44 +02:00
Iulian Moraru 684aefab97 Merge autoland to mozilla-central. a=merge 2022-02-27 23:50:00 +02:00
Jonathan Watt 8d542d93ce Bug 1756445 - Stop saving print settings in platform code after printing. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D139291
2022-02-27 21:12:08 +00:00
Mozilla Releng Treescript 92de521c31 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
be -> f998a888429f342198fbb229ba8c1e6cc0defaec
id -> 63e938e3eef77dabe55f7c1b3dd57405724cd70f
tr -> 391d322519dd04ccbb513a31723b597356bb2093
2022-02-27 19:04:56 +00:00
Rob Wu 484d22abe5 Bug 1734987 - Part 4: Make addon.isPrivileged consistent with extension.isPrivileged r=rpl
addon.isPrivileged and extension.isPrivileged are currently almost
identical, except in the case of temporary extensions when experiments
are enabled.

This difference is inexplicable for those unfamiliar with the history,
so this patch makes them identical.

addon.isPrivileged was introduced in bug 1543204 to support hidden
add-ons, which was intended to be used by privileged add-ons only.
Hence, this patch updates the "hidden" getter to continue ignoring the
hidden flag for temporary add-ons.

With this change, the addon.isPrivileged check can be removed from
loadManifestFromWebManifest, in favor of checking extension.isPrivileged
at the location where addon.hidden is initialized for the first (and now
only) time.

BootstrapScope.callBootstrapMethod can now also use addon.isPrivileged
instead of invoking the ExtensionData.getIsPrivileged helper.

Differential Revision: https://phabricator.services.mozilla.com/D128233
2022-02-27 13:23:58 +00:00
Rob Wu 09b9c33d59 Bug 1734987 - Part 3.2 - Pass explicit isPrivileged flag to ExtensionData calls r=rpl,geckoview-reviewers,calu
Although the default value for isPrivileged is false in the
ExtensionData constructor, let's add the explicit value (false) so that
it's obvious that the default value is intended.

Differential Revision: https://phabricator.services.mozilla.com/D139725
2022-02-27 13:23:58 +00:00
Rob Wu bfe18fbbdc Bug 1734987 - Part 3.1: Correct isPrivileged during updates r=rpl
During updates, isPrivileged was not set correctly, which resulted in
incorrect error messages (warnings about unsupported permissions) when a
privileged/builtin extension was updated (a variant of bug 1675858).

In the previous patch (part 3), isPrivileged was added to the
ExtensionData constructor, and also passed to BootstrapScope calls,
so we can use that here to.

The unit test here serves two purposes:
1. Primarily: test coverage for the correctness of isPrivileged in the
   update scenario.
2. Test coverage for the existence and order of ExtensionAPI's onUpdate
   calls. There is no unit test for this mechanism right now, only
   indirect tests.

Differential Revision: https://phabricator.services.mozilla.com/D131682
2022-02-27 13:23:57 +00:00
Rob Wu c02964f87e Bug 1734987 - Part 3: Add isPrivileged to ExtensionData + test r=rpl
See https://bugzilla.mozilla.org/show_bug.cgi?id=1734987#c0 for the
description of the why and how of this patch.

Since isPrivileged is now supported on ExtensionData, this patch also
removes the work-arounds from bug 1675858.

Differential Revision: https://phabricator.services.mozilla.com/D128232
2022-02-27 13:23:57 +00:00
Rob Wu fdcd5ac4ad Bug 1734987 - Part 2: Refactor verifySignedState to not require AddonInternal r=rpl
This refactor replaces the `aAddon` parameter of verifySignedState
with the minimal parameters needed to perform its functionality.

This enables us to compute signedState without requiring a fully
initialized AddonInternal instance.

Differential Revision: https://phabricator.services.mozilla.com/D128231
2022-02-27 13:23:57 +00:00
Rob Wu 7c81cfacb1 Bug 1734987 - Part 1: Replace isPrivileged with ExtensionData check for l10n_resources r=rpl
l10n_resources has bugs that results in errors when enabled for
ExtensionData. In this patch stack we are going to introduce the
isPrivileged property to ExtensionData.

To prevent these errors from being triggered when isPrivileged is added,
replace the `"isPrivileged" in this` check with a check against
`ExtensionData`.

l10n_resources support in ExtensionData will be added in bug 1733466.

Differential Revision: https://phabricator.services.mozilla.com/D128230
2022-02-27 13:23:56 +00:00
Timothy Nikkel 4b48b3dd2d Bug 1753881. Simplify a few IsVisualViewportOffsetSet callers. r=botond
Depends on D139472

Differential Revision: https://phabricator.services.mozilla.com/D139683
2022-02-27 13:09:27 +00:00
Timothy Nikkel ed30449176 Bug 1753881. If the visual viewport offset hasn't been set on the presshell return the layout scroll position. r=botond
Because that is the correct value.

Differential Revision: https://phabricator.services.mozilla.com/D139472
2022-02-27 13:09:27 +00:00