786940 Commits

Author SHA1 Message Date
Jan Horak
441f38b43e Bug 1756742 Allow DBUS service org.mozilla.firefox_beta.* for the flatpak;r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D139695
2022-03-02 09:37:10 +00:00
Mathew Hodson
0efaecc57f Bug 1757329 - Use add_setup in test_auth_multiple.js. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D139794
2022-03-02 09:36:17 +00:00
Lee Salzman
a3df467ef4 Bug 1757449 - Make WR NativeFontHandle use String instead of CGFont on macOS. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D139882
2022-03-02 09:34:31 +00:00
Norisz Fay
372e7ca5e9 Backed out changeset d6a3e5603500 (bug 1756495) for causing xpcshell failures on test_ext_contentscript_dynamic_registration.js CLOSED TREE 2022-03-02 11:27:09 +02:00
Norisz Fay
8adcbead72 Backed out changeset 1ea661280632 (bug 1757218) for causing mochitest failures on test_midi_permission_gated.html 2022-03-02 11:25:53 +02:00
William Durand
24a8666518 Bug 1756495 - Ensure script registration is complete when a new process is spawned during the registration. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D139503
2022-03-02 08:49:37 +00:00
Jens Stutte
967543493d Bug 1750527: Remove MOZ_CRASH_UNLESS_FUZZING and give IPC_FAIL a reason. r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D139226
2022-03-02 07:49:22 +00:00
Nicolas Chevobbe
b83969977f Bug 1755692 - Fix error in observeActivity start event listener. r=rpl.
The event listener callback wasn't bound to this, so the access to `activityErrorMap`
was failing.
This patch slightly modifies the event listener so we use a fat arrow function,
as well as adding the `once` option, since we were removing the event listener
the first time the callback was called.

Differential Revision: https://phabricator.services.mozilla.com/D138894
2022-03-02 07:00:03 +00:00
Mozilla Releng Treescript
48c71577cb no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
es-AR -> f54defb8fbb1851345e069773e7acc29c91c776f
sat -> a5442aaa459909eeeb94706e223b84c4b91756e2
2022-03-02 06:58:50 +00:00
Hiroyuki Ikezoe
e57033a3d2 Bug 1746989 - Use NSToCoordRoundWithClamp in nsLayoutUtils::TransformRect to avoid undefined behavior in conversions from float to int. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D140015
2022-03-02 06:18:58 +00:00
Bobby Holley
b17a876d9e Bug 1757218 - WebMIDI permission should apply to subdomains. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D139982
2022-03-02 05:52:45 +00:00
Hiroyuki Ikezoe
e4685b149d Bug 1751110 - Clamp the max size for partial pre-render to nscoord_MAX. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D139911
2022-03-02 05:30:18 +00:00
Dão Gottwald
d3868ecd83 Bug 1757572 - Remove --toolbarbutton-focus-outline which at this point is just an alias for --focus-outline. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D139945
2022-03-02 04:54:57 +00:00
Noemi Erli
9fed23d0d5 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2022-03-02 06:33:28 +02:00
Noemi Erli
b12fccca4a Merge autoland to mozilla-central. a=merge 2022-03-02 06:30:37 +02:00
Shane Caraveo
add20048b9 Bug 1748550 Event Persistence subclass to simplify use r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D139087
2022-03-02 03:59:48 +00:00
Makoto Kato
8f28529e97 Bug 1753574 - Use previous orientation type to compare whether orientation type isn't changed. r=smaug
Previous fix was not enough to check whether orientation type is same or not.

If lock is resolved after `ScreenOrientation::MaybeChanged` is called,
`LockOrientationTask::Run` resolves promise unfortunately.

I should check previous orientation type instead.

Differential Revision: https://phabricator.services.mozilla.com/D137972
2022-03-02 03:48:14 +00:00
Makoto Kato
7e130a3c59 Bug 1753574 - Don't resolve lock promise until LockDeviceOrientation is finished. r=smaug,geckoview-reviewers,agi
Even if platform implementation always returns error, `orientation.lock('any')`
is always successful. Because we don't wait for `LockDeviceOrientation`'s result
when current screen orientation is same as lock type. If
`LockDeviceOrientation` is failed, we should reject the promise.

Differential Revision: https://phabricator.services.mozilla.com/D137971
2022-03-02 03:48:14 +00:00
Makoto Kato
3493d2727e Bug 1753574 - hal::LockOrientation can return error status. r=smaug,geckoview-reviewers,agi,calu
From https://w3c.github.io/screen-orientation/#apply-an-orientation-lock

> 7.2. Apply an orientation lock
>
> The steps to apply an orientation lock to a Document using orientation are as
> follows:
>
>  1. If the user agent does not support locking the screen orientation, return
>     a promise rejected with a "NotSupportedError" DOMException and abort
>     these steps.

So if orientation controller delegate isn't set, we should throw
`NotSupportedError`.  But, actually, we throws `AbortError`, so this isn't
correct.

To return any DOM error from platform implementation of
`screen.orientation.lock`, I would like to change return value to
`GenericPromise`'s.

Differential Revision: https://phabricator.services.mozilla.com/D137970
2022-03-02 03:48:14 +00:00
Makoto Kato
ad14d19c54 Bug 1753574 - Remove unnecessary nullptr check for screen orientation promise. r=smaug
We never return `nullptr` for the promise of screen orientation lock.  So this
is unnecessary now to check `nullptr`.

Differential Revision: https://phabricator.services.mozilla.com/D137969
2022-03-02 03:48:13 +00:00
Kagami Sascha Rosylight
7d833e9c2e Bug 1757633 - Move PipeToPump from header to cpp r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D139973
2022-03-02 01:32:04 +00:00
Kagami Sascha Rosylight
785d34c9fa Bug 1757653 - Remove redundant externs in dom/streams r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D139991
2022-03-02 01:31:26 +00:00
Joel Maher
adb4f65c16 Bug 1756618 - adjust treeherder group names description to be more specific. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D139885
2022-03-01 23:38:37 +00:00
Drew Willcoxon
2ee48755fb Bug 1757622 - Change the best match SUMO URL to use the firefox-suggest slug. r=daisuke
Please see bug 1757622 for a summary.

Differential Revision: https://phabricator.services.mozilla.com/D139970
2022-03-01 23:11:38 +00:00
Florian Quèze
7e7760e643 Bug 1757587 - Remove non-webrender CompositorAnimationStorage code that seems unused, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D139957
2022-03-01 23:08:15 +00:00
Florian Quèze
9b6453183c Bug 1756642 - Avoid marking the main thread as awake whenever the Linux event loop wakes up due to the profiler capturing a sample, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D139401
2022-03-01 23:07:47 +00:00
Markus Stange
3ce08a4e07 Bug 1676760 - Rename Add/RemoveChildRefreshTimer. r=smaug
It is used by far more than just content process refresh driver timers.

Differential Revision: https://phabricator.services.mozilla.com/D139769
2022-03-01 22:48:19 +00:00
Markus Stange
d85ed119fd Bug 1676760 - Remove unused RefreshTimerVsyncDispatcher::SetParentRefreshTimer. r=smaug
Even in the parent process, VsyncRefreshDriverTimer uses AddChildRefreshTimer.

Differential Revision: https://phabricator.services.mozilla.com/D139768
2022-03-01 22:48:19 +00:00
Markus Stange
9912a6a4a3 Bug 1676760 - Use DataMutex for pending vsync tracking and rename variables so that they don't refer to "parent process" even though they're also used in the content process. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139767
2022-03-01 22:48:18 +00:00
Markus Stange
3865c1aeeb Bug 1676760 - Remove ParentProcessVsyncNotifier. r=smaug
Seems excessive to have a separate class for this, it really just calls a method on a different thread.

Differential Revision: https://phabricator.services.mozilla.com/D139766
2022-03-01 22:48:18 +00:00
Markus Stange
4062a118bc Bug 1676760 - Always use vsync priority for the ParentProcessVsyncNotifier runnable. r=smaug
This check was there for single process Android and is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D139765
2022-03-01 22:48:18 +00:00
Markus Stange
1a8dfa72f1 Bug 1676760 - Rename NotifyParentProcessVsync to NotifyVsyncOnMainThread and add some comments. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139764
2022-03-01 22:48:17 +00:00
Markus Stange
66b0bde4d9 Bug 1676760 - Fix comments on VsyncRefreshDriverTimer member variables. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139763
2022-03-01 22:48:17 +00:00
Markus Stange
f046915352 Bug 1676760 - Replace VsyncRefreshDriverTimer constructors with named creation methods. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139762
2022-03-01 22:48:16 +00:00
Cristian Tuns
956c714ac3 Backed out changeset 0946d4ce352f (bug 1756700) for causing geckoview crashes. CLOSED TREE 2022-03-01 18:11:55 -05:00
Toshihito Kikuchi
174f4efa31 Bug 1757487 - Enable the LoadLibrary injection protection unconditionally. r=mhowell
Since no compat issues have been reported since we landed it in v98 beta,
it's time to remove the early-beta limitation.
The patch backs out 8ca70e015f3b863f9df6049d7b7d97123dafa640.

Differential Revision: https://phabricator.services.mozilla.com/D139972
2022-03-01 22:43:02 +00:00
Byron Campen
78e9eb6266 Bug 1755318: Check if mIceCtx is null. r=mjf
Depends on D139545

Differential Revision: https://phabricator.services.mozilla.com/D139626
2022-03-01 22:16:54 +00:00
Byron Campen
5bebcd363a Bug 1755318: Disable this test, since it was not working in the first place. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D139545
2022-03-01 22:16:54 +00:00
Byron Campen
1c899c7279 Bug 1755318: Wait until PeerConnectionImpl::Close completes its work before deregistering. r=mjf
This ensures we do not end up in a situation where PC handles stop working
before the work done by Close is complete.

Differential Revision: https://phabricator.services.mozilla.com/D139544
2022-03-01 22:16:53 +00:00
Byron Campen
e00b56b487 Bug 1755318: Allow PacketDumper to be created without a PC, for unit-tests. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D139441
2022-03-01 22:16:53 +00:00
Byron Campen
9b31bb8ebe Bug 1755318: Prevent the cycle collector from unlinking TransceiverImpl until PC has given up its reference. r=mjf
PeerConnectionImpl needs its TransceiverImpls to be fully functional until it
is done closing, because Close performs a stats query.

Differential Revision: https://phabricator.services.mozilla.com/D139217
2022-03-01 22:16:53 +00:00
Byron Campen
37766201ec Bug 1755318: Ensure that PeerConnectionImpl::Close() is called before destruction. r=mjf
In some cases, PeerConnectionImpl's refcount will go to 0 without needing the
cycle collector to call unlink on it, which is what we rely on to call Close().
So, we make sure that refcount cannot go to 0 until Close is called (either
due to an unlink, or an explicit close from JS or PeerConnectionCtx).

Differential Revision: https://phabricator.services.mozilla.com/D139216
2022-03-01 22:16:52 +00:00
Byron Campen
56c4808052 Bug 1755318: Remove some dead code. r=mjf
The ICE state "closed" is not (and never has been) used, and even if it were,
we would probably not want to decrement the PeerConnection count then anyway.
Also, remove an unused function.

Differential Revision: https://phabricator.services.mozilla.com/D139414
2022-03-01 22:16:52 +00:00
Byron Campen
1b38426611 Bug 1755318: Check to see if there is a BrowsingContext before trying to use it. r=mjf
If JS does not call close when the window closes, this might not be there.

Differential Revision: https://phabricator.services.mozilla.com/D139215
2022-03-01 22:16:51 +00:00
Byron Campen
f666527d51 Bug 1755318: Move the RemovePeerConnection call to Close. r=mjf
This avoids the situation where PeerConnectionCtx is holding onto bare pointers
to PeerConnectionImpl whose refcounts have gone to 0, which is a pretty big
footgun.

Differential Revision: https://phabricator.services.mozilla.com/D139214
2022-03-01 22:16:51 +00:00
Byron Campen
4456c36b8a Bug 1755318: Remove some obfuscatory indirection. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D139213
2022-03-01 22:16:51 +00:00
Byron Campen
ca51b4ea75 Bug 1755318: Stop using a strong ref in StunAddrsHandler. r=mjf
StunAddrsHandler is not cycle collected, so it would either need to be made
cycle-collected, or it would need to use a weak ref instead. The latter is
much easier, since PeerConnectionImpl can clear that weak ref when appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D139212
2022-03-01 22:16:50 +00:00
Byron Campen
8d3026309f Bug 1755318: Refactor PacketDumper to no longer hold a strong ref to PeerConnectionImpl. r=mjf
There is now at most a single instance of PacketDumper per PeerConnectionImpl,
and it is owned by that PeerConnectionImpl. The flags/settings for packet dump
are kept in the PacketDumper itself instead of in PeerConnectionImpl, which
allows the early return optimization in Dump to work without a reference to the
PC.

Differential Revision: https://phabricator.services.mozilla.com/D139211
2022-03-01 22:16:50 +00:00
Byron Campen
269cf7fcc0 Bug 1755318: Fix issue where the order of PeerConnectionCtx shutdown and DataChannel shutdown was unpredictable. r=mjf
When the pc.close() calls in PeerConnection.jsm were removed, tests that did
not explicitly call pc.close() would result in situations where DataChannel
shutdown ran first, which resulted in DataChannels hanging around after
DataChannel ran its global shutdown code. So, we stop using xpcom-shutdown to
prompt DataChannel to shut down, and instead use ShutdownBlockingTicket to
ensure that shutdown does not proceed until DataChannel is cleaned up, which
naturally results from the PeerConnectionCtx shutdown code.  However,
ShutdownBlockingTicket blocks xpcom-will-shutdown, not xpcom-shutdown, which
resulted in PeerConnectionCtx not getting an opportunity to run its shutdown
code, which then led to shutdown hangs. So, PeerConnectionCtx runs its shutdown
code at xpcom-will-shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D139210
2022-03-01 22:16:49 +00:00
Byron Campen
3c1761ab3b Bug 1755318: Make PeerConnectionImpl cycle-collected. r=mjf,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D139209
2022-03-01 22:16:49 +00:00