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

87876 Коммитов

Автор SHA1 Сообщение Дата
alwu 67f934d684 Bug 1591620 - part2 : allow more customers to moniter media keys event by adding a listener to the event source. r=chunmin
Create methods to add or remove listener directly to the media control keys event source.

So if anyone has a need to monitor media control keys event, they can simply implement their own listener and use `MediaControlService::GetMediaControlKeysManager()` to add or remove a listener.

Differential Revision: https://phabricator.services.mozilla.com/D50687

--HG--
extra : moz-landing-system : lando
2019-10-30 00:50:44 +00:00
alwu e4099c0683 Bug 1591620 - part1 : make 'MediaControlKeysEventListener' as a pure interface. r=chunmin
If the web extention also needs to implement its listener, they would definitely not need the current implementation in `KeyPressed()` for controlling media controller. Therefore, we should make `MediaControlKeysEventListener` as a pure interface and let inherited class to define their own `KeyPressed()`.

Differential Revision: https://phabricator.services.mozilla.com/D50686

--HG--
extra : moz-landing-system : lando
2019-10-29 23:46:36 +00:00
Jan Varga f745bd76f9 Bug 1578177 - Crash in [@ mozilla::dom::quota::QuotaManager::EnsureTemporaryStorageIsInitialized]; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D50969

--HG--
extra : moz-landing-system : lando
2019-10-29 20:42:24 +00:00
Gijs Kruitbosch 8af91551b6 Bug 1585732 - use staticprefs for media.cubeb.sandbox, r=haik
Differential Revision: https://phabricator.services.mozilla.com/D50955

--HG--
extra : moz-landing-system : lando
2019-10-29 23:33:45 +00:00
alwu c092a45ba0 Bug 1591608 - part3 : follow the new naming rule for define guards. r=chunmin
Per [1], we should follow our coding style.

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#CC_practices

Differential Revision: https://phabricator.services.mozilla.com/D50683

--HG--
extra : moz-landing-system : lando
2019-10-29 23:08:05 +00:00
alwu b251629f2f Bug 1591608 - part2 : rename files from 'MediaHardwareKeysXXX' to 'MediaControlKeysXXX'. r=chunmin
File's name should reflect what the class is inside the file.

Differential Revision: https://phabricator.services.mozilla.com/D50682

--HG--
rename : dom/media/mediacontrol/MediaHardwareKeysEvent.cpp => dom/media/mediacontrol/MediaControlKeysEvent.cpp
rename : dom/media/mediacontrol/MediaHardwareKeysEvent.h => dom/media/mediacontrol/MediaControlKeysEvent.h
rename : dom/media/mediacontrol/MediaHardwareKeysManager.cpp => dom/media/mediacontrol/MediaControlKeysManager.cpp
rename : dom/media/mediacontrol/MediaHardwareKeysManager.h => dom/media/mediacontrol/MediaControlKeysManager.h
extra : moz-landing-system : lando
2019-10-29 23:05:59 +00:00
alwu f2f6bb1b22 Bug 1591608 - part1 : rename `MediaHardwareKeysXXX` to `MediaControlKeysXXX`. r=chunmin
The media control key events can come from either physical devices, such as a keyboard or a headset, or from virtual interface, such as SMTC-based visual controller on Windows or MPRIS-based visual controller on Linux.

Therefore, we would be better to rename all those MediaHardwareKeysXXX to MediaControlKeysXXX in order to represent a generic concept.

Differential Revision: https://phabricator.services.mozilla.com/D50681

--HG--
extra : moz-landing-system : lando
2019-10-29 23:05:24 +00:00
Sean Feng 74eaf3ce20 Bug 1592083 - Convert certList to raw array for nsITransportSecurityInfo r=keeler,Ehsan,kershaw
This patch converts the certList attribute of nsITransportSecurityInfo
from nsIX509CertList to Array<nsIx509Cert>

Differential Revision: https://phabricator.services.mozilla.com/D48745

--HG--
extra : moz-landing-system : lando
2019-10-29 17:20:07 +00:00
Bryce Seager van Dyk 398e5555d9 Bug 1592371 - QueryDosDeviceWHook returns size of lpTargetPath copy on success. r=bobowen
Prior to the patch we appear to be returning the size of lpDeviceName rather
than lpTargetPath.

Differential Revision: https://phabricator.services.mozilla.com/D50979

--HG--
extra : moz-landing-system : lando
2019-10-29 19:31:19 +00:00
Tom Ritter d72a6eb2f3 Bug 1588816 - Remove userChrome.css case since XBL is dead in Nightly r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D50964

--HG--
extra : moz-landing-system : lando
2019-10-29 17:10:59 +00:00
Emma Malysz 5d8c10a424 Bug 1591588, remove ComputeIndexOf call and negative index check from within GetWholeText r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50885

--HG--
extra : moz-landing-system : lando
2019-10-29 16:04:29 +00:00
Kashav Madan a19f86daf7 Bug 1578465 - Update fission annotations, r=kmag
Depends on D49003

Differential Revision: https://phabricator.services.mozilla.com/D49005

--HG--
extra : moz-landing-system : lando
2019-10-29 16:23:35 +00:00
Boris Zbarsky d867da8312 Bug 1588194 part 2. Add missing property use counters to Window. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D49045

--HG--
extra : moz-landing-system : lando
2019-10-29 16:20:49 +00:00
Boris Zbarsky 89b4cac9a3 Bug 1588194 part 1. Factor out the missing property use counter code into helper functions. r=peterv
This incidentally reduces the codesize, while allowing us to call those
functions from elsewhere.  The performance impact of the extra out-of-line call
is not measurable (that is, is within the noise level) on the testcase at
<https://bugzilla.mozilla.org/attachment.cgi?id=9096814>.

Differential Revision: https://phabricator.services.mozilla.com/D49044

--HG--
extra : moz-landing-system : lando
2019-10-29 16:18:44 +00:00
Oana Pop Rus b180595588 Bug 1447586 Disable test_broadcastchannel_close2.html on Android, Linux64 and Mac r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D50853

--HG--
extra : moz-landing-system : lando
2019-10-29 14:07:57 +00:00
Edgar Chen ab7587b94a Bug 1554965 - Input event should be composed; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50910

--HG--
extra : moz-landing-system : lando
2019-10-29 13:19:06 +00:00
Sylvestre Ledru 0b21c7eb2c Bug 1592226 - Only build 'AbortOrientationPromises' when MOZ_WIDGET_ANDROID is defined r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50912

--HG--
extra : moz-landing-system : lando
2019-10-29 13:08:37 +00:00
Rob Wu 69d003b435 Bug 1591924 - Fix test_notifications_permission.html on beta r=tnguyen
Differential Revision: https://phabricator.services.mozilla.com/D50835

--HG--
extra : moz-landing-system : lando
2019-10-29 08:33:30 +00:00
Andreas Pehrson 8724107690 Bug 1582637 - Fix devicechange mochitest failing sometimes only (!) and use it also with loopback devices. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48522

--HG--
extra : moz-landing-system : lando
2019-10-29 13:02:11 +00:00
Andreas Pehrson 3c23c98ba2 Bug 1582637 - Remove pref to enable devicechange in mochitest since it's enabled by default. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48521

--HG--
extra : moz-landing-system : lando
2019-10-29 13:02:04 +00:00
Andreas Pehrson 0edab59f76 Bug 1582637 - Fix minor devicechange mochitest issues. r=jib
This makes rejections reject with an Error so that stacks make sense on failure.
It also changes some `let` to `const` since they're never assigned to.

Differential Revision: https://phabricator.services.mozilla.com/D48520

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:56 +00:00
Andreas Pehrson 0316bbe28b Bug 1582637 - Inline MediaDevices' FuzzTimer callback and invert coalescing logic. r=jib
If MediaDevices received recurring devicechange events from MediaManager, the
FuzzTimer would be restarted for each one, to coalesce them into the same js
event. If the internal events kept coming sooner than the fuzz timer timeout,
the fuzz timer would never fire.

This patch inverts the logic, so that the first scheduled fuzz timer fires, and
any intermediate internal events are ignored. After it has fired, a new internal
event triggers a new fuzz timer.

Differential Revision: https://phabricator.services.mozilla.com/D48519

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:54 +00:00
Andreas Pehrson 6bf15a7fdf Bug 1582637 - Reduce devicechange fake event and test timeout times. r=jib
This allows the mochitest to finish several seconds faster.

Differential Revision: https://phabricator.services.mozilla.com/D48517

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:47 +00:00
Andreas Pehrson b89a421cf4 Bug 1582637 - Move internal DeviceChange events to higher order functions. r=jib,achronop
This does three major things:
1) Moves the DeviceChange events from manual callbacks/listeners to
   MediaEventSource/MediaEventListener. This is the reason this patch is so
   large, as it traverses a lot of files.
   There are four layers (from low to high):
   - CamerasChild for camera device list changes, and CubebDeviceEnumerator for
     microphone and speaker device list changes
   - MediaEngineWebRTC, which gathers these into a single listener
   - MediaManager, which owns the MediaEngineWebRTC backend
   - MediaDevices, where the events from MediaManager are exposed to js
2) Changes the fake event triggering from starting a 30-event burst on setting
   the js event listener, to a toggle, so that while the pref is on the events
   keep coming.
3) Moves the fake event generation from CamerasChild to MediaEngineWebRTC, since
   that's the lowest level where we are aware of both video and audio events.
   The fake event generation is also greatly simplified. From being a dedicated
   thread with periodic runnables, it is now a periodic timer on main thread
   that fires while fake events are enabled. MediaEventProducer gracefully
   handles thread safety.

Differential Revision: https://phabricator.services.mozilla.com/D48516

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:43 +00:00
Andreas Pehrson 94356644ac Bug 1582637 - Remove unnecessary MediaEngineWebRTC::mMutex. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48515

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:36 +00:00
Andreas Pehrson 5e2a4e0c27 Bug 1582637 - Remove cameras:: from most of MediaEngineWebRTC.cpp. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48514

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:30 +00:00
Andreas Pehrson dc248d36a8 Bug 1582637 - Inject an already-initialized media thread to the MediaManager ctor. r=jib
This lets us dispatch tasks already in the MediaManager ctor.

This also removes the last usage of nsAutoPtr from MediaManager.

Differential Revision: https://phabricator.services.mozilla.com/D48513

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:26 +00:00
Andreas Pehrson 893ba9b643 Bug 1582637 - Ensure MediaManager::sSingleton usage is thread safe by guarding it with a mutex. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D48512

--HG--
extra : moz-landing-system : lando
2019-10-29 13:01:24 +00:00
Sylvestre Ledru 022582d728 Bug 1592230 - Remove unused variable 'gIDGenerator' r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D50914

--HG--
extra : moz-landing-system : lando
2019-10-29 12:40:15 +00:00
Emilio Cobos Álvarez 630c46a466 Bug 1591297 - Fix/remove a couple sanitizer tests now that we don't parse -moz-binding. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D50590

--HG--
extra : moz-landing-system : lando
2019-10-29 08:32:06 +00:00
Emilio Cobos Álvarez 4825f0f201 Bug 1591297 - Remove -moz-binding, nsStyleDisplay::mBinding and similar. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D50556

--HG--
extra : moz-landing-system : lando
2019-10-26 11:37:33 +00:00
Emilio Cobos Álvarez cc80d088a2 Bug 1591968 - Put window.mozPaintCount behind a default-off pref. r=bzbarsky
It's not the kind of thing we want people to allow observing, generally, and
even less so the kind of thing that we may want people to rely on.

Move internal callers (all of them tests) to a new DOMWindowUtils.paintCount
method.

Differential Revision: https://phabricator.services.mozilla.com/D50817

--HG--
extra : moz-landing-system : lando
2019-10-29 10:25:53 +00:00
Christoph Kerschbaumer 8f2c346f91 Bug 1557712: Fix intermittent test failure for test_frameancestors_userpass.html. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D50907

--HG--
extra : moz-landing-system : lando
2019-10-29 09:23:57 +00:00
Tim Huang f97686beae Bug 1591467 - Add a null check when accessing the actor of the browser host in nsFrameLoader::TryRemoteBrowserInternal(). r=smaug
In some cases, the actor of the browser host might be null. So, we need
to check before accessing it in order to avoid crashes.

Differential Revision: https://phabricator.services.mozilla.com/D50715

--HG--
extra : moz-landing-system : lando
2019-10-29 01:21:43 +00:00
Brian Birtles e50dce95ba Bug 1590971 - Move getAnimations from Document to DocumentOrShadowRoot; r=emilio,baku
This updates the Gecko implementation to match the following change to
the Web Animations spec:

  792453b952 (diff-4c9f5c055fb219a7fcad23a9a7a80b64)

Differential Revision: https://phabricator.services.mozilla.com/D50768

--HG--
rename : testing/web-platform/tests/web-animations/interfaces/Document/getAnimations.html => testing/web-platform/tests/web-animations/interfaces/DocumentOrShadowRoot/getAnimations.html
extra : moz-landing-system : lando
2019-10-29 07:13:22 +00:00
Ehsan Akhgari f69aaf72a7 Bug 1591803 - Part 1: Remove the dead code in NotificationTelemetryService; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50752

--HG--
extra : moz-landing-system : lando
2019-10-29 01:56:23 +00:00
Arthur Iakab 9c93bb3a7a Backed out 2 changesets (bug 1591803) for causing build bustages on XULAlerts.cpp CLOSED TREE
Backed out changeset 7eff50262110 (bug 1591803)
Backed out changeset c0b6f37d24d2 (bug 1591803)
2019-10-29 03:37:07 +02:00
Ehsan Akhgari 214c8d96df Bug 1590922 follow-up: the parts that didn't land in the first landing
Differential Revision: https://phabricator.services.mozilla.com/D50889

--HG--
extra : moz-landing-system : lando
2019-10-29 01:12:28 +00:00
Ehsan Akhgari 6b1d1d6821 Bug 1591803 - Part 1: Remove the dead code in NotificationTelemetryService; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50752

--HG--
extra : moz-landing-system : lando
2019-10-28 20:26:23 +00:00
Daosheng Mu e8e8cac6e0 Bug 1565268 - Part 2: Removing mDisplayName/Id from VRDisplay. r=kip
We can remove mDisplayName/Id and just use VRDisplayInfo to get these two values.

Differential Revision: https://phabricator.services.mozilla.com/D50870

--HG--
extra : moz-landing-system : lando
2019-10-29 00:42:52 +00:00
Daosheng Mu 21480b57c1 Bug 1565268 - Recovering VRDisplay status after VRService is shutdown. r=kip,jgilbert
When JS is paused, VRService will automatically shutdown because the timer is not updated,
we used to create a new VRDisplay to JS. However, the page is still using the older VRDisplay,
so it can't get the newest VRDisplayInfo status. We should exit presentation and
apply the VRDisplayInfo status to the original VRDisplay instead of creating new one.

Besides, we also need to release the VR screen buffer after exiting the immersive mode to avoid eglMakeCurrent error.

Differential Revision: https://phabricator.services.mozilla.com/D50558

--HG--
extra : moz-landing-system : lando
2019-10-29 00:35:35 +00:00
Boris Zbarsky d36e5a4ea5 Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv
Dictionaries that we never initialize with JS values don't need a full-featured
Init() method.  Instead, we output a cut-down Init() method that doesn't even
take a JSContext and Value as argument, and skips as much work as it can.  It
uses constant-false for "is the value present?", but also, to avoid compilation
errors due to use of `cx` and `val` in now-dead conversion code, it tells the
native-to-JS conversion machinery that the value is always missing, which lets
it skip most of the the work it would normally try to do and just output
initialization to the default value.  We only need to do this for members that
have default values; the others either remain no-passed or are required members
with no default-initialization behavior.

This saves about 330KB of codesize on Linux64 without PGO and 285KB with PGO.

Differential Revision: https://phabricator.services.mozilla.com/D48007

--HG--
extra : moz-landing-system : lando
2019-10-28 20:24:31 +00:00
Boris Zbarsky 0d2e9ff1f1 Bug 1214364 part 3. Only output ToObjectInternal methods for dictionaries that need it. r=peterv
This saves about 270KB of codesize on Linux64 without LTO, or 20KB with LTO.

The basic idea is that we can flag dictionaries that need to-JS conversion
(hence ToObjectInternal) based on various IDL uses (return value in normal
interface, argument in callback, etc) and then annotate the ones that are
converted to JS manually in C++ code.

The mozwebidlcodegen changes are needed because non-local changes (e.g. whether
a dictionary is used as a return value somewhere) can now affect the code
generation for a dictionary and hence whether the relevant binding file should
be regenerated.  Since these changes can happen in any .webidl file, we need to
check for them.  We can't track this via the dependency set on the dictionary
itself, because that would not notice new uses being added.

Differential Revision: https://phabricator.services.mozilla.com/D48006

--HG--
extra : moz-landing-system : lando
2019-10-28 23:20:11 +00:00
Boris Zbarsky bbc03b9834 Bug 1214364 part 2. Remove the dead code around MethodNotNewObjectError. r=peterv
I don't know when we stopped raising them, but we did at some point.

I am leaving the capability to not generate a union's ToJSVal method, because I will need it soon.

Differential Revision: https://phabricator.services.mozilla.com/D48554

--HG--
extra : moz-landing-system : lando
2019-10-23 18:04:30 +00:00
Boris Zbarsky 3a2aa6f9b1 Bug 1214364 part 1. Only output conversions to/from JSON for dictionaries that need it. r=peterv
This saves about 200KB of codesize on Linux64 without LTO.  No effect with LTO,
but is needed for the following patches to work.

Very few dictionaries need these conversions, so explicit opt-in is fine.

Differential Revision: https://phabricator.services.mozilla.com/D48005

--HG--
extra : moz-landing-system : lando
2019-10-23 15:58:29 +00:00
Emilio Cobos Álvarez 30240152f3 Bug 1591132 - Make it easy to switch on and off these assertions in different build configurations. r=froydnj
Put them behind a MOZ_HASH_TABLE_CHECKS_ENABLED define, which right now is only
defined in DEBUG builds, preserving behavior.

MakeImmutable becomes an empty inline function when disabled, which should be
zero-cost.

Differential Revision: https://phabricator.services.mozilla.com/D50493

--HG--
extra : moz-landing-system : lando
2019-10-28 23:27:30 +00:00
Olli Pettay 574f798fb3 Bug 1586750, don't compile event handlers on unloaded windows r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D48983

--HG--
extra : moz-landing-system : lando
2019-10-28 21:08:50 +00:00
Alexander J. Vincent 4061cf92e2 Bug 1476659, remove invertSelection from mozilla-central, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D50407

--HG--
extra : moz-landing-system : lando
2019-10-28 20:58:38 +00:00
Kagami Sascha Rosylight 8ae1d6eba9 Bug 1591849 - Support [Pure] for stringifier attributes r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50795

--HG--
extra : moz-landing-system : lando
2019-10-28 20:39:09 +00:00
Boris Zbarsky 033a03eb89 Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj
If someone then saves the resulting string, this will let us avoid a copy.

Differential Revision: https://phabricator.services.mozilla.com/D50635

--HG--
extra : moz-landing-system : lando
2019-10-28 20:41:59 +00:00