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

89430 Коммитов

Автор SHA1 Сообщение Дата
alwu 4bde50109e Bug 1571493 - part5 : use 'MediaControlKeysEventHandler' to deliver control keys event. r=chunmin
Use `MediaControlKeysEventHandler` to handle the control keys event, which can always find corresponding controlled media if there are some.

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

--HG--
extra : moz-landing-system : lando
2020-01-03 01:27:24 +00:00
alwu bdc6a8cae7 Bug 1571493 - part4 : support 'ControlledMediaState' in media controller r=chunmin
Introduce `ControlledMediaState` to media controller, so now we can now how many controlled media are playing, which allow us to update `mIsPlaying` correctly.

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

--HG--
extra : moz-landing-system : lando
2020-01-03 01:39:33 +00:00
alwu 2d2b857325 Bug 1571493 - part3 : notify media state and audible state changes. r=chunmin
Modify IPC method to support notify `ControlledMediaState` to the media controller, and remove the previous implementation.

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

--HG--
extra : moz-landing-system : lando
2020-01-03 01:34:34 +00:00
alwu f5053f5850 Bug 1571493 - part2 : use 'MediaControlAgent' in media element. r=chunmin
We create `MediaControlEventListener` to register itself to the `MediaControlAgent` that is an event source, so that we can receive the media control event from the evnet source and operate media according to different types of event.

 `MediaControlEventListener` is also used to notify controlled media state to the media controller. When media first starts playing, or leaves bfcache and  has created listener before, we would notify `eStarted`. Notify `eStopped` when media destroys, or enter bfcache and has created listener before. When media's playing state changes, we would notifty `ePlayed` or `ePaused` depeding on media's `mPaused`.

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

--HG--
extra : moz-landing-system : lando
2020-01-03 01:20:01 +00:00
alwu 9977c552ff Bug 1571493 - part1 : implement 'ContentMediaController' which is used to notify 'MediaControlKeysEvent' for controlled media. r=chunmin
Implement class `ContentMediaController` that is used to dispatch media controls key events to those media which would like to be controlled.

`ContentMediaController` is inherited from two classes, `MediaControlAgent` and `MediaControlKeysEventHandler`. The former one is used for controlled media, the controlled media can register itself to `MediaControlAgent` to receive events and do corresponding operations depending on the event type. The latter one is used to handle events sent from chrome process and dispatch them to the corresponding controlled media.

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

--HG--
extra : moz-landing-system : lando
2020-01-03 01:29:38 +00:00
Boris Zbarsky 613f2313da Bug 1606672. Change nsIRunnablePriority values so increasing value indicates increased priority. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D58539

--HG--
extra : moz-landing-system : lando
2020-01-02 20:07:40 +00:00
Alastor Wu 053826b10f Bug 1604653 - add new methods to set and get playback state for the event source. r=MeFisto94
Differential Revision: https://phabricator.services.mozilla.com/D58159

--HG--
extra : moz-landing-system : lando
2019-12-31 14:10:53 +00:00
nordzilla e85b170e10 Bug 1604296 - Add Constructable StyleSheets API Under Preference r=emilio,bzbarsky
This patch adds the following functionality to the CSSStyleSheet WebIDL API
under the feature flag layout.css.constructable-stylesheets.enabled:
  - constructor()
  - replace()
  - replaceSync()

constructor(), replace() and replaceSync() are currently stubs that lack full
functionality.

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

--HG--
extra : source : 6e675d6399cee28f204b3501de3475ea3febd12c
2019-12-31 21:58:40 +00:00
Mihai Alexandru Michis 2f43e04863 Backed out changeset 6e675d6399ce (bug 1604296) for causing failures in layout/style tests. 2020-01-01 02:05:30 +02:00
nordzilla a8096f6948 Bug 1604296 - Add Constructable StyleSheets API Under Preference r=emilio,bzbarsky
This patch adds the following functionality to the CSSStyleSheet WebIDL API
under the feature flag layout.css.constructable-stylesheets.enabled:
  - constructor()
  - replace()
  - replaceSync()

constructor(), replace() and replaceSync() are currently stubs that lack full
functionality.

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

--HG--
extra : moz-landing-system : lando
2019-12-31 21:58:40 +00:00
Paul Warner 7fec362cac Bug 1591230 - On macOS use MediaPlayer library for media keys when available. r=spohl,alwu
On macOS 10.12.1+, we use `MediaPlayer` library, which has better media key integration, to replace the implementation of `CG EventLoop`.

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

--HG--
extra : moz-landing-system : lando
2019-12-31 01:41:33 +00:00
Junior Hsu e173f99b5b Bug 1600326 - P3 use lazy pref getter in MixedContentBlocker, r=bzbarsky
This is an optimization to avoid getting the preference value for each http load when COOP is enabled, because that needs to check secure context state for all loads.

Depends on D57579

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

--HG--
extra : moz-landing-system : lando
2019-12-31 04:11:04 +00:00
Jan Varga 88ce749554 Bug 1606318 - Enhance QM_FIRST_INITIALIZATION_ATTEMPT testing; r=asuth
Changes:
- use separate directory for testing of telemetry
- use separate zip packages
- test entire histogram snapshots (not just particular key)
- a test doesn't need to do own cleanup anymore
- general cleanup

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

--HG--
rename : dom/quota/test/unit/head.js => dom/quota/test/unit/head-shared.js
rename : dom/quota/test/unit/test_qm_first_initialization_attempt.js => dom/quota/test/unit/telemetry/test_qm_first_initialization_attempt.js
rename : dom/quota/test/unit/version2_0upgrade_profile.zip => dom/quota/test/unit/telemetry/version1_0_profile.zip
rename : dom/quota/test/unit/version2_1upgrade_profile.zip => dom/quota/test/unit/telemetry/version2_0_profile.zip
rename : dom/quota/test/unit/version2_2upgrade_profile.zip => dom/quota/test/unit/telemetry/version2_1_profile.zip
extra : moz-landing-system : lando
2019-12-31 02:26:27 +00:00
Jan Varga b6698c1d76 Bug 1606318 - Don't initialize storage for the reset operation; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D58373

--HG--
extra : moz-landing-system : lando
2019-12-31 02:26:27 +00:00
alwu 3e9f43b0a2 Bug 1605699 - part2 : add an assertion to ensure we only append a valid sample. r=bryce
The sample we got from demuxer are all guaranteed to be valid because they are returned in a `SamplesHolder`, which has assertion to make sure all samples appended are valid [1].

`ProcessFrame()` might be a possible place where we incorrectly change sample from valid to invalid, because we modify sample's time and duration there. Therefore, adding an assertion to make sure all samples are still valid.

[1] https://searchfox.org/mozilla-central/source/dom/media/MediaDataDemuxer.h#103-106

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

--HG--
extra : moz-landing-system : lando
2019-12-31 01:24:23 +00:00
alwu db06bc3f48 Bug 1605699 - part1 : add an assertion to ensure 'GetSample()' always return a valid sample. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D58392

--HG--
extra : moz-landing-system : lando
2019-12-31 01:24:00 +00:00
Julien Cristau db0acfd03c Bug 1605861 - test fix. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D58368

--HG--
extra : moz-landing-system : lando
2019-12-30 13:35:18 +00:00
Jeff Gilbert 744a29510c Bug 1605822 - Run webgl1+2 tests on desktop CI. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58286

--HG--
extra : moz-landing-system : lando
2019-12-28 01:22:39 +00:00
Noemi Erli 1207344cf7 Backed out changeset 8d01e0e7acc8 (bug 1605822) for causing Android mochitest failures 2019-12-28 03:18:42 +02:00
Jeff Gilbert 634295547d Bug 1605822 - Run webgl1+2 tests on desktop CI. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58286

--HG--
extra : moz-landing-system : lando
2019-12-28 00:36:55 +00:00
Masayuki Nakano 0a74bf0038 Bug 1605918 - Get rid of synthesizeDragStart() in EventUtils.js r=smaug
All usage of `synthesizeDragStart()` is, starting drag, cancel `dragstart`,
and finally compares `dataTransfer` items and given expected data.  So,
we can make the users use `synthesizePlainDragAndDrop()` instead.  It's
better API because it computes position of mouse operations at runtime and
checks whether the drag start was succeeded with optional logging feature
(i.e., it's easier to debug of intermittent failures).

This patch creates `synthesizePlainDragAndCancel()` for convenience.  It
handles `dragstart` instead of the callers.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 16:25:24 +00:00
Masayuki Nakano ca4a57799a Bug 1599944 - Make `SimpleTest.waitForClipboard()` and `SimpleTest.promiseClipboardChange()` relax to compare clipboard data with expected string r=smaug
Most tests which use these APIs don't want to distinguish difference of
linebreaks (i.e., CRLF vs. CR vs. LF).  And also most tests don't want to
check prefix and postfix of HTML data in clipboard on Windows.

Therefore, this patch makes them compare clipboard data with expected string
smarter.  Every linebreak in clipboard data are treated as LF.  Expected
HTML data is wrapped with `<html>`, `<body>` and comment nodes only on
Windows at comparing with clipboard data.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 14:02:35 +00:00
Jeff Gilbert aaf7fcc370 Bug 1604622 - Use float16/float32 sized formats on es3+. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58179

--HG--
extra : moz-landing-system : lando
2019-12-27 00:08:41 +00:00
Dorel Luca 04f0022c40 Backed out changeset 1e5750541f2d (bug 1604622) for Mochitest failures in dom/canvas/test/webgl-conf/generated/test_conformance__extensions__oes-texture-float.html 2019-12-27 01:19:45 +02:00
Jeff Gilbert ebd8c74f83 Bug 1604622 - Use float16/float32 sized formats on es3+. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58179

--HG--
extra : moz-landing-system : lando
2019-12-24 10:26:14 +00:00
Alastor Wu 32f2dfb642 Bug 1605798 - part2 : remove unused functions r=chunmin
We have no plan to use those functions, so remove them in order to keep code clean.

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

--HG--
extra : moz-landing-system : lando
2019-12-26 18:52:00 +00:00
Alastor Wu b7b2d91c6a Bug 1605798 - part1 : remove some useless RefPtr usage r=chunmin
When a function returning a pointer, returning a raw pointer is enough. The callers should use `RefPtr` to store this pointer explicitly if they do need to add a refcounting.

In addition, using `RefPtr` in the parameter cannot prevent anything as well.

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

--HG--
extra : moz-landing-system : lando
2019-12-26 19:49:13 +00:00
Daniel Varga 531690d2c4 Backed out 2 changesets (bug 1605798) for causing mochitest failures at builds/worker/workspace/build/src/dom/media/mediacontrol/MediaController.cpp
Backed out changeset 6ea0907b88ec (bug 1605798)
Backed out changeset 538b05d2ea79 (bug 1605798)
2019-12-26 20:46:44 +02:00
Alastor Wu cdc46885e3 Bug 1605798 - part2 : remove unused functions r=chunmin
We have no plan to use those functions, so remove them in order to keep code clean.

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

--HG--
extra : moz-landing-system : lando
2019-12-24 00:19:15 +00:00
Alastor Wu a0b04bfd73 Bug 1605798 - part1 : remove some useless RefPtr usage r=chunmin
When a function returning a pointer, returning a raw pointer is enough. The callers should use `RefPtr` to store this pointer explicitly if they do need to add a refcounting.

In addition, using `RefPtr` in the parameter cannot prevent anything as well.

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

--HG--
extra : moz-landing-system : lando
2019-12-26 17:23:08 +00:00
Manish Giri 9093e82ca5 Bug 1605661 - Remove redundant return in void function. r=sylvestre
Depends on D58227

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

--HG--
extra : moz-landing-system : lando
2019-12-26 08:39:14 +00:00
Manish Giri 69ea5af19a Bug 1605662 - Remove redundant return in void function. r=sylvestre
Depends on D58225

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

--HG--
extra : moz-landing-system : lando
2019-12-26 08:42:00 +00:00
Emilio Cobos Álvarez 29800f6c89 Bug 1595435 - Allow content to steal focus from a cross-origin iframe. r=masayuki
This matches other browsers.

Keep the restriction just to chrome nodes, and in that case, avoid getting into
the broken state, which is what causes the issue. I'm not sure if this even
matters anymore given e10s but...

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

--HG--
extra : moz-landing-system : lando
2019-12-25 06:50:25 +00:00
Andrea Marchesini 1263b355e2 Bug 1605801 - FetchReadableStreamReadDataArray should be a rooted dictionary, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58176

--HG--
extra : moz-landing-system : lando
2019-12-24 04:14:35 +00:00
Dan Minor fa5786e117 Bug 1605703 - Further relax the timing requirements of test_mediarecorder_pause_resume_video.html; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D58113

--HG--
extra : moz-landing-system : lando
2019-12-24 00:14:24 +00:00
Emma Malysz be8bd71702 Bug 1601110, remove handling and references to vnd.mozilla.xul+xml r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D57567

--HG--
extra : moz-landing-system : lando
2019-12-23 23:02:05 +00:00
Emma Malysz c028f5125c Bug 1605737, remove XUL cached type r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58140

--HG--
extra : moz-landing-system : lando
2019-12-23 17:10:15 +00:00
James Willcox 4400a92a46 Bug 1604917 - Coerce WebManifest colors to rrggbbaa ?marcosc,jdescottes r=marcosc,jdescottes
We then convert that to `#aarrggbb` in GeckoView for convenient use
with `android.graphics.Color`.

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

--HG--
extra : moz-landing-system : lando
2019-12-23 15:29:08 +00:00
Boris Chiou bdd5623ab2 Bug 779598 - Do animations of transforms with preserve-3d at compositor. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D57029

--HG--
extra : moz-landing-system : lando
2019-12-23 09:52:43 +00:00
Ciure Andrei bdfec29e90 Backed out changeset 26694602791a (bug 1472158) for causing Bug 1583000 2019-12-22 15:22:58 +02:00
Brian Hackett f06f88d256 Bug 1605129 - Avoid using GetUsedBrowserProcess when recording/replaying, .
Differential Revision: https://phabricator.services.mozilla.com/D57847

--HG--
extra : moz-landing-system : lando
2019-12-19 19:08:09 +00:00
Jonathan Watt 57bb12cc12 Bug 1602410. Make `window.print()` invoke printing via the parent process using a JSWindowActor. r=Gijs,kmag
Differential Revision: https://phabricator.services.mozilla.com/D56414

--HG--
extra : moz-landing-system : lando
2019-12-21 12:33:11 +00:00
Masayuki Nakano 87ca855ece Bug 1603074 - part 1: Make `synthesizePlainDragAndDrop()` synthesize drag events without `DataTransfer` object r=smaug
`synthesizePlainDragAndDrop()` synthesizes drag events with `DataTransfer`
object which is set to `DragEvent.dataTransfer` of `dragstart` after starting
drag session explicitly.  However, this causes
`EventStateManager::DoDefaltDragStart()` does not initialize `nsIDragService`
instance.  Therefore, synthesized drag events cannot work with editor because
`DragEvent::GetMozSourceNode()` returns `nullptr` due to
`nsIDragSession::GetSourceNode()` returning `nullptr`.

On the other hand, synthesized drag events cannot use
`nsIDragService::InvodeDragSession()` normally because of hitting an assertion.
https://searchfox.org/mozilla-central/rev/690e903ef689a4eca335b96bd903580394864a1c/widget/nsBaseDragService.cpp#230-233

This patch does:
- mark drag events caused by synthesized mouse events as "synthesized for tests"
- make `synthesizePlainDragAndDrop()` stop using
  `nsIDragService.startDragSession()`
- make `nsBaseDragService` initialize and start session even for synthesized
  `dragstart` event
- make `synthesizePlainDragAndDrop()` stop synthesizing drag events with
  `DataTransfer` object since it's normal behavior and it'll be initialized
  with `nsIDragService::GetDataTransfer()`
- make `nsBaseDragService` store `effectAllowed` for the session only when
  it's synthesized session because it's required at initializing synthesized
  default `dropEffect` value of `dragenter`, `dragover`, `dragexit` and `drop`
  events' `dataTransfer`
- make all tests which use `nsIDragService.startDragSession()` use new
  API, `nsIDragService.startDragSessionForTests()` to initialize session's
  `effectAllowed` value
- make `EventStateManager::PostHandleEvent()` set drag end point of the test
  session to `eDrop` event's screen point
- make `synthesizePlainDragAndDrop()` set drag end point of the session if
  it does not synthesize `drop` event because following `endDragSession()`
  use it at dispatching `dragend` event on the source element

Additionally, this adds `dumpFunc` new param to `synthesizePlainDragAndDrop()`
because it's really useful to investigate the reason why requesting DnD isn't
performed as expected.

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

--HG--
extra : moz-landing-system : lando
2019-12-21 12:27:06 +00:00
Tetsuharu OHZEKI c59f473413 Bug 1597433 - part 2: Rename nsGlobalWindowInner::CallOnChildren -> nsGlobalWindowInner::CallOnInProcessChildren. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D57750

--HG--
extra : moz-landing-system : lando
2019-12-20 10:06:08 +00:00
Tetsuharu OHZEKI 31f408450f Bug 1597433 - part 1: Fix uses of nsIDocShellTreeItem in nsGlobalWindowInner::CallOnChildren. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D57749

--HG--
extra : moz-landing-system : lando
2019-12-21 03:42:25 +00:00
Narcis Beleuzu bd3cee1d8c Backed out changeset bc3a104f8b20 (bug 1602410) for build bustages on nsGlobalWindowOuter.cpp . CLOSED TREE 2019-12-21 04:13:43 +02:00
Botond Ballo 8b48782ea2 Bug 1605250 - Fix include-what-you-use errors in dom/localstorage. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D57899

--HG--
extra : moz-landing-system : lando
2019-12-21 01:13:29 +00:00
Haik Aftandilian 016cd664f6 Bug 1599230 - Part 2 - Remove GMP sandbox earlyinit pref and older sandbox startup code paths r!mjf r=mjf
Remove the security.sandbox.gmp.mac.earlyinit pref now that GMP early sandbox init is the default on release.

Remove the old unused code paths for initializing the GMP sandbox later during process startup (only used when security.sandbox.gmp.mac.earlyinit=false).

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

--HG--
extra : moz-landing-system : lando
2019-12-21 00:31:50 +00:00
Haik Aftandilian c91e72a1c7 Bug 1599230 - Part 1 - Remove RDD sandbox earlyinit pref and older sandbox startup code paths r!mjf r=mjf
Remove the security.sandbox.rdd.mac.earlyinit pref now that RDD early sandbox init is the default on release.

Remove the old unused code paths for initializing the RDD sandbox later during process startup (only used when security.sandbox.rdd.mac.earlyinit=false).

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

--HG--
extra : moz-landing-system : lando
2019-12-21 00:31:41 +00:00
Jonathan Watt 87c7d4f638 Bug 1602410. Make `window.print()` invoke printing via the parent process using a JSWindowActor. r=Gijs,kmag
Differential Revision: https://phabricator.services.mozilla.com/D56414

--HG--
extra : moz-landing-system : lando
2019-12-21 00:22:42 +00:00