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

128 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 10fcf4e476 Bug 1657701 - Localize the media control Firefox is now playing fallback text r=alwu,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D91514
2020-10-02 10:02:00 +00:00
Dorel Luca bf02570c59 Backed out changeset 305a050902fe (bug 1657701) for Browser-chrome failure in unreferenced file: resource://gre/localization/en-US/dom/media.ftl. CLOSED TREE 2020-10-02 02:33:06 +03:00
Tom Schuster 8deee697e3 Bug 1657701 - Localize the media control Firefox is now playing fallback text r=alwu,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D91514
2020-10-01 16:17:30 +00:00
alwu e424a6f2de Bug 1665527 - part4 : add new testcase for 'browser_stop_control_after_media_reaches_to_end.js'. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D90773
2020-09-23 12:12:03 +00:00
alwu 7816c86ee1 Bug 1665527 - part3 : add a test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D90772
2020-09-23 12:12:05 +00:00
Narcis Beleuzu 691fd66153 Backed out 4 changesets (bug 1665527) for wpt leakchecks on setactionhandler.html . CLOSED TREE
Backed out changeset 216b96d6a2b3 (bug 1665527)
Backed out changeset a683efbf01c1 (bug 1665527)
Backed out changeset a18103008464 (bug 1665527)
Backed out changeset b97b8759b686 (bug 1665527)
2020-09-23 15:06:17 +03:00
alwu f0457c5e96 Bug 1665527 - part4 : add new testcase for 'browser_stop_control_after_media_reaches_to_end.js'. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D90773
2020-09-22 21:04:41 +00:00
alwu ddadb81a93 Bug 1665527 - part3 : add a test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D90772
2020-09-22 21:01:20 +00:00
alwu a1db27e6c9 Bug 1663631 - part2 : add a test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D90583
2020-09-22 15:56:08 +00:00
alwu 53232b1bdb Bug 1634494 - part8 : add test r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D87398
2020-08-26 01:44:08 +00:00
alwu 1d58f4b0f6 Bug 1634494 - part7 : merge 'file_media_session_page.html' to 'file_iframe_media.html'. r=chunmin
In order to reuse the code, put all iframe related code to one file.

Differential Revision: https://phabricator.services.mozilla.com/D87397
2020-08-22 00:27:07 +00:00
alwu db978c9443 Bug 1659064 - wait until tab becomes a focus tab. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D87836
2020-08-21 18:38:59 +00:00
alwu 9014bab5e1 Bug 1620686 - request longer test time for 'browser_media_control_non_eligible_media.js'. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D87538
2020-08-19 12:48:41 +00:00
alwu 4d32542e6d Bug 1659064 - resolve promise after element leaves fullscreen. r=bryce
Resolve promise after elements leaves fullscreen to ensure the function works as its naming.

Differential Revision: https://phabricator.services.mozilla.com/D87540
2020-08-19 13:37:42 +00:00
alwu eae42242ec Bug 1656398 - part8 : use 'onmetadatachange' in test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D86629
2020-08-17 18:41:17 +00:00
alwu e27e44aff0 Bug 1656398 - part6 : use 'controller.playbackState' in test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D86627
2020-08-18 06:44:18 +00:00
alwu 4ac9689f10 Bug 1656398 - part4 : expose `playbackState` on MediaController webidl interface. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D86625
2020-08-17 18:41:03 +00:00
alwu 57700aee1e Bug 1656398 - part3 : using 'getMetadata()' in tests. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D86624
2020-08-17 18:40:55 +00:00
alwu 5a98feea06 Bug 1658075 - part2 : use testing functions from 'MediaControlService'. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D86621
2020-08-14 01:31:49 +00:00
alwu 324562e846 Bug 1657682 - part3 : add a test case for page with empty title. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D86248
2020-08-14 01:32:11 +00:00
alwu 4b67a9b41d Bug 1656642 - part1 : add test to ensure no src media and media with error won't activate media controller even if they enters PIP or fullscreen. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85784
2020-08-07 05:17:35 +00:00
alwu 9fd2c32518 Bug 1654657 - part8 : add test cases to ensure non-eligible media can be controlled when it enters fullscreen or PIP mode. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85640
2020-08-06 21:37:07 +00:00
alwu 31d53cc484 Bug 1654657 - part7 : add test cases for choosing main controller. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85639
2020-08-07 05:07:07 +00:00
alwu a731020d84 Bug 1654657 - part4 : test 'NotifyMediaFullScreenState()' in gTest. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85516
2020-08-06 21:36:53 +00:00
alwu 1355eeaea6 Bug 1654657 - part3 : remove unused function 'IsInPictureInPictureMode()'. r=chunmin
After applying D85514, no one is using this function, so we can remove it.

Differential Revision: https://phabricator.services.mozilla.com/D85515
2020-08-06 21:36:50 +00:00
alwu 96afc7c19e Bug 1657224 - add a pref to control stopping media after media reaches to the end. r=chunmin
In bug1654045, we would stop controlling media once media reaches to the end. Considering some user might still want to control media by pressing media keys even if it has ended, so adding a pref to control this abilitiy.

Differential Revision: https://phabricator.services.mozilla.com/D85930
2020-08-05 23:12:16 +00:00
alwu 405d662683 Bug 1657223 - turn off deactivation timer by default. r=chunmin
The deactivation timer introduces an uncertainty of when user can control media, but instead of removing that, I want to add a pref to control it and disable it by default because I can still think of some benefit of this ability.

Differential Revision: https://phabricator.services.mozilla.com/D85928
2020-08-05 23:09:21 +00:00
alwu c7563ad7c8 Bug 1654045 - part4 : add a test to ensure we would stop controlling media when it reaches to the end. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D85231
2020-07-31 17:26:46 +00:00
alwu 9f4ebd9e69 Bug 1654277 - part3 : add a test for only resuming latest paused media. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D84879
2020-07-29 23:39:09 +00:00
alwu 41531f2b0c Bug 1655204 - part2 : add a testcase to ensure 'stop' would stop controlling media. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D84876
2020-07-29 22:15:52 +00:00
Sebastian Hengst 3df27d1256 No bug - typo fix part 2: curent > current
Differential Revision: https://phabricator.services.mozilla.com/D85036
2020-07-27 18:37:26 +00:00
alwu eaf81455fd Bug 1654959 - part3 : add test cases for enabling muted media into fullscreen/PIP mode. r=bryce
Add two new test cases for inaudible media being used in fullscreen/PIP mode.

In addition, after applying D84115, we fix the issue of incorrectly controlling media which doesn't be started yet and is not in the fullscreen. So modify the current test case.

Differential Revision: https://phabricator.services.mozilla.com/D84369
2020-07-24 02:42:05 +00:00
alwu 8d9ef78468 Bug 1653390 - part7 : add test for a page mixing audible and inaudible media. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D84120
2020-07-24 02:52:03 +00:00
alwu e398ca4d46 Bug 1621403 - part3 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D82817
2020-07-15 21:02:08 +00:00
alwu 1493d7798d Bug 1621403 - part2 : implement `seekto` action. r=chunmin,emilio
Implement `Seekto` action [1]. In addtion, as `seekto` can go with additional properties, we create a new structure `MediaControlAction` to wrap `MediaControlKey` and `SeekDetails`, which can be sent with `seekto`.

[1] https://w3c.github.io/mediasession/#dom-mediasessionaction-seekto

Differential Revision: https://phabricator.services.mozilla.com/D82816
2020-07-16 00:16:33 +00:00
alwu d1dde804d7 Bug 1643513 - part4 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D81003
2020-07-02 17:46:38 +00:00
alwu 2c3533116e Bug 1642715 - part7 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D79786
2020-06-24 00:46:51 +00:00
alwu 934302cd0d Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers
This patch will
- remove `MediaControlKeysEvent` and use `MediaControlKey` to replace it
- rename names for all `MediaControlKey` related methods, functions, classes and descriptions

The advantage of doing so are
- remove the duplicated type so that we only need to maintain `MediaControlKey`

Differential Revision: https://phabricator.services.mozilla.com/D78140
2020-06-09 02:59:57 +00:00
alwu 1b2d8c78ce Bug 1640998 - part8 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D77758
2020-06-08 23:27:19 +00:00
alwu 15d6f8b8ae Bug 1640998 - part5 : set supported keys to the event source r=chunmin
This patch will
- add a method `SetSupportedMediaKeys()` on `MediaControlKeysEventSource`
- set main controller's supported key to the event source

The advantage of doing so are
- to allow the event source knowing which key is supported in order to determine the displayed UI button

Differential Revision: https://phabricator.services.mozilla.com/D77200
2020-06-09 02:23:35 +00:00
alwu cc64086a9c Bug 1640998 - part1 : make `ContentMediaAgent` inherit from `IMediaInfoUpdater`. r=chunmin
This patch will
- make `ContentMediaAgent` inherit from `IMediaInfoUpdater`
- move `MediaPlaybackState` and `MediaAudibleState` to `MediaPlaybackStatus.h`

The advantage of doing so are
- to force all methods which are related with updating information from content process to chrome process to be manged by `IMediaInfoUpdater`. It can help us only put the descriptive comment for methods on one place. (on `IMediaInfoUpdater`)

Differential Revision: https://phabricator.services.mozilla.com/D77196
2020-06-08 22:08:26 +00:00
alwu eac28634c9 Bug 1627999 - part7 : add test. r=bryce
This patch will do :
- add test cases
- introduce the test-only notification `media-displayed-metadata-changed` when the event source updates its metadata

The advantage of doing so :
- increase test coverage

Differential Revision: https://phabricator.services.mozilla.com/D72501
2020-05-15 21:50:12 +00:00
alwu b80c125661 Bug 1627999 - part4 : listen to the playback change from the event source. r=bryce
This patch will do :
- listen to the playback change from the event source directly

The advantage of doing so :
- more close to the real situation because the event source is where we decide the information that should be displayed the virtual control interface

Differential Revision: https://phabricator.services.mozilla.com/D72498
2020-05-15 21:49:58 +00:00
alwu 45e722d39f Bug 1627999 - part3 : activate controller when it first time becomes audible. r=bryce
This patch will do :
- postpone the timing of activating the media controller. Activate the controller after it first time becomes audible.

The advantage of doing so :
- prevent setting incorrect media metadata before the controller becomes audible

---

More details about this change :

The active media session would be chose after the context owns the audio focus. Therefore, if we would like to get the correct metadata from the media session, we should postpone the timimg of activate controller and wait until we decide the active media session then we can get the correct metadata.

Differential Revision: https://phabricator.services.mozilla.com/D72497
2020-05-15 21:50:01 +00:00
Csoregi Natalia b6df18cc7a Backed out 9 changesets (bug 1627999) for bustages on HTMLMediaElement.cpp. CLOSED TREE
Backed out changeset 05ba58699a1b (bug 1627999)
Backed out changeset b9025bab4036 (bug 1627999)
Backed out changeset 2e1c8f9e8f88 (bug 1627999)
Backed out changeset 55ac831f54f3 (bug 1627999)
Backed out changeset e0fa806a6942 (bug 1627999)
Backed out changeset f4d85f0b61d9 (bug 1627999)
Backed out changeset 84434656006c (bug 1627999)
Backed out changeset 021c014ba882 (bug 1627999)
Backed out changeset 76c6b64928e9 (bug 1627999)
2020-05-16 00:22:23 +03:00
alwu b476c3cdfd Bug 1627999 - part7 : add test. r=bryce
This patch will do :
- add test cases
- introduce the test-only notification `media-displayed-metadata-changed` when the event source updates its metadata

The advantage of doing so :
- increase test coverage

Differential Revision: https://phabricator.services.mozilla.com/D72501
2020-05-14 09:33:32 +00:00
alwu fb72912836 Bug 1627999 - part4 : listen to the playback change from the event source. r=bryce
This patch will do :
- listen to the playback change from the event source directly

The advantage of doing so :
- more close to the real situation because the event source is where we decide the information that should be displayed the virtual control interface

Differential Revision: https://phabricator.services.mozilla.com/D72498
2020-05-14 09:33:39 +00:00
alwu 96b2a42335 Bug 1627999 - part3 : activate controller when it first time becomes audible. r=bryce
This patch will do :
- postpone the timing of activating the media controller. Activate the controller after it first time becomes audible.

The advantage of doing so :
- prevent setting incorrect media metadata before the controller becomes audible

---

More details about this change :

The active media session would be chose after the context owns the audio focus. Therefore, if we would like to get the correct metadata from the media session, we should postpone the timimg of activate controller and wait until we decide the active media session then we can get the correct metadata.

Differential Revision: https://phabricator.services.mozilla.com/D72497
2020-05-14 09:33:42 +00:00
Cosmin Sabou 3ed8e5317b Backed out 8 changesets (bug 1627999) for wpt failures on MediaPlaybackStatus.h. CLOSED TREE
Backed out changeset 98e98e2ecb56 (bug 1627999)
Backed out changeset 5533b1c9e3ed (bug 1627999)
Backed out changeset c9c9f78e131d (bug 1627999)
Backed out changeset 37b8f7a47ede (bug 1627999)
Backed out changeset 433a0eb70fc6 (bug 1627999)
Backed out changeset 72a1340bc112 (bug 1627999)
Backed out changeset 10e3550226eb (bug 1627999)
Backed out changeset 039ecd63e3fb (bug 1627999)
2020-05-14 12:29:01 +03:00
alwu 203a7440ae Bug 1627999 - part7 : add test. r=bryce
This patch will do :
- add test cases
- introduce the test-only notification `media-displayed-metadata-changed` when the event source updates its metadata

The advantage of doing so :
- increase test coverage

Differential Revision: https://phabricator.services.mozilla.com/D72501
2020-05-14 02:56:40 +00:00