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

11250 Коммитов

Автор SHA1 Сообщение Дата
Chun-Min Chang 20ba5e9be3 Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Chun-Min Chang f4b2f0809e Bug 1197045 - part1: Create an AudioDeviceInfo to expose the native device information; r=kinetik
MozReview-Commit-ID: 2N2BkZUVOca

--HG--
extra : rebase_source : 499d069251f3231a2fd5ddbd55aaa5b5f4124723
2017-07-13 14:01:36 +08:00
JW Wang f507668c63 Bug 1382557 - the duration should be finite when we can get one from the metadata. r=cpearce
This fixes the case where ChannelMediaResource::OnStartRequest() calls
mCallback->SetInfinite(true) to report an infinite duration, yet later
we get another duratoin from the metadata.

http://searchfox.org/mozilla-central/rev/8a61c71153a79cda2e1ae7d477564347c607cc5f/dom/media/MediaDecoder.cpp#1179-1185
Note IsInfinite() is checked before other duration sources. We need to call
SetInfinite(false) on the MediaDecoder so we can get the correct duration.

MozReview-Commit-ID: 3BlFNJzlgXo

--HG--
extra : rebase_source : 073b65cbc21f280638054b80f0cc9913a9128a18
2017-07-25 14:34:59 +08:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Tim Huang df4c4baa41 Bug 1333641 - Part 1: Making the speechSynthesis API unfingerprintable when 'privacy.resistFingerprinting' is true. r=arthuredelstein,smaug
The patch will change the behavior of speechSynthesis API when fingerprinting
resistance is enabled. First, the speechSynthesis.getVoices() will always report
an empty list and the speechSynthesis.onvoiceschanged event will be blocked.
And it will immediately fail when using the speechSynthesis.speak() to speak an
utterance. By doing so, websites can no longer fingerprint users through this
speechSynthesis API.

In addition, this only affect contents, so the chrome can still use this API even
the fingerprinting resistance is enabled.

MozReview-Commit-ID: KxJX8fo30WS

--HG--
extra : rebase_source : 12c14f3ae2d23dacb07796156b4f0fd233bff0f9
2017-07-20 16:07:32 +08:00
Gerald Squelart 32e0bc9b81 Bug 1383541 - Allow 4096x2304 H264 on win7 with recent decoder - r=jya
MozReview-Commit-ID: HD1AcxbGChX

--HG--
extra : rebase_source : afb79e3898fc6a3210a73a4f61edbd671931f422
2017-07-25 16:59:24 +12:00
Gerald Squelart 00733dbc57 Bug 1383541 - WMFDecoderModule shouldn't call useless IsH264DecoderBlacklisted() - r=jya
This function now always returns false (since bug 1253395), so
WMFDecoderModule::HasH264 doesn't need to call it anymore.

Note that we are keeping the code, as we will slightly modify it in the next
patch for a different use.

MozReview-Commit-ID: 7fzktsnFU2m

--HG--
extra : rebase_source : e7538ae792b7c31393079244a286c340d798588d
2017-07-25 16:46:53 +12:00
Kilik Kuo b09363765d Bug 1372465 - Make sure GeckoHlsPlayer is used by correct media components. r=jwwang
We use an increasing player Id as the token between MediaReousrce and MediaDemuxer to
identify which GeckoHlsPlayer should be used.
In this case, playback of 2 HLS content at the same page to make sure the underlying components won't be selected mistakenly

MozReview-Commit-ID: HzrczjsYEoz

--HG--
extra : rebase_source : e749788cb6aabd2bdc1ab005829d9377e9acc653
2017-07-25 16:40:37 +08:00
Carsten "Tomcat" Book 0ff1ec388b Merge mozilla-central to autoland 2017-07-25 14:35:23 +02:00
Carsten "Tomcat" Book 679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Carsten "Tomcat" Book 38dac4a83e merge autoland to mozilla-central a=merge
--HG--
rename : dom/tests/mochitest/chrome/test_window_getAppLocales.html => dom/tests/mochitest/chrome/test_window_getRegionalPrefsLocales.html
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : d3b22773aa7d48ac6cc60d0afd41e5d74e1ac697
2017-07-25 14:18:40 +02:00
Carsten "Tomcat" Book aed9eeee06 Backed out changeset 42667c5ba946 (bug 1367983) for causing bug 1383673 2017-07-25 10:33:44 +02:00
Wes Kocher 252080fa1f Merge autoland to central, a=merge
MozReview-Commit-ID: AWf410QGui6
2017-07-24 17:57:54 -07:00
Wes Kocher fcc677950d Backed out 2 changesets (bug 1371166) for Windows 8 permafails in test_mediarecorder_principals.html a=backout
Backed out changeset 955998eefbe8 (bug 1371166)
Backed out changeset 736042ec645d (bug 1371166)

MozReview-Commit-ID: 11duLALJ9PW
2017-07-24 14:50:47 -07:00
Carsten "Tomcat" Book 0c215343b0 merge mozilla-inbound to mozilla-central a=merge 2017-07-24 13:01:44 +02:00
Carsten "Tomcat" Book b3e81e29a0 Merge mozilla-central to autoland 2017-07-24 15:00:31 +02:00
Sebastian Hengst 9fc62e5079 Backed out changeset a4ea1d5fcb4e (bug 1197045) for eslint failure at Troubleshoot.jsm:401: 'winUtils' is assigned a value but never used. r=backout 2017-07-24 13:24:28 +02:00
Sebastian Hengst 0a44c0dc0a Backed out changeset cf756c62b0a6 (bug 1197045) 2017-07-24 13:23:48 +02:00
Jean-Yves Avenard bb0627f06b Bug 1383122 - P4. Don't set src attribute to empty string. r=jwwang
MozReview-Commit-ID: EzQCVIIjOIe

--HG--
extra : rebase_source : af21c6749f22ae98cf3d81577eb0476dcca99035
2017-07-24 10:58:03 +02:00
Jean-Yves Avenard 64c70317ce Bug 1383122 - P3. Don't set src attribute to null. r=jwwang
Setting the src attribute to null was incorrect, per spec https://www.w3.org/TR/WebIDL-1/#es-DOMString, if null is passed, this is to be treated as ToString(null), which is "null" (https://tc39.github.io/ecma262/#sec-tostring).
Hence setting src to null will cause a 404 error as it attempts to load "null".

To unload the element, recommended practice is:
Per spec:
https://html.spec.whatwg.org/multipage/media.html#best-practices-for-authors-using-media-elements
"by removing the element's src attribute and any source element descendants, and invoking the element's load() method."

MozReview-Commit-ID: 5Lq13CeDCSZ

--HG--
extra : rebase_source : 806bccb32fa0542ea3be3025a31da97bb331b29c
2017-07-21 19:05:54 +02:00
Jean-Yves Avenard 9b0e4b6c44 Bug 1383122 - P2. Amend mochitest to ensure null is properly converted to "null" string. r=jwwang
MozReview-Commit-ID: 13eeL3siXpy

--HG--
extra : rebase_source : 1cfa108414695ffc69c47d5fa9d494ee94c7b15a
2017-07-21 19:23:05 +02:00
Jean-Yves Avenard eb9666fa81 Bug 1383122 - P1. Amend Mochitest to ensure error doesn't occur. r=jwwang
MozReview-Commit-ID: 4xHD8KjY0XT

--HG--
extra : rebase_source : e6a8c22ee37537bcd6cdb98487796854ad116227
2017-07-21 18:44:11 +02:00
James Cheng 4843d195fb Bug 1382151 - Pause Exoplayer when mediaelement is paused. r=kikuo
MozReview-Commit-ID: 5MDBBP5vfpa

--HG--
extra : rebase_source : 9981585791cd359296ac7fef0fe0d7e900af6c61
2017-07-20 17:47:54 +08:00
Chun-Min Chang 70ec0769ce Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Wes Kocher fd09155f06 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Wes Kocher a1eadef812 Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Chun-Min Chang 13ab7bac64 Bug 1197045 - part1: Create an AudioDeviceInfo to expose the native device information; r=kinetik
MozReview-Commit-ID: 2N2BkZUVOca

--HG--
extra : rebase_source : 499d069251f3231a2fd5ddbd55aaa5b5f4124723
2017-07-13 14:01:36 +08:00
Bob Owen 459f9f007d Bug 1383611: Pre-load psapi.dll for widevine CDM as it needs it for GetMappedFileNameW. r=cpearce 2017-07-24 20:01:06 +01:00
Paul Adenot b9e645073e Bug 1375119 - Consider a page active if it has running AudioContexts. r=ehsan
MozReview-Commit-ID: IOQ2DY9LoTw

--HG--
extra : rebase_source : f47568d3db129ff8d9a484d5b5554f1154d53133
2017-07-24 11:17:14 +02:00
Nicholas Nethercote 90eaa02ea0 Bug 1382099 - Remove MOZ_WIDGET_GONK from dom/media/. r=gerald.
As well as the obvious #ifdefs, this allows DOMHwMediaStream to be
removed, and also the "phone-state-changed" observer.

--HG--
extra : rebase_source : 373280183e228bd4b9bd9d866959409f2444c77e
2017-07-24 10:08:55 +10:00
Sebastian Hengst f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Wes Kocher d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher e4f2d0a9db Backed out changeset cd615bff6069 (bug 1375119) for android mochitest failures in test_webaudioNotification.html a=backout
MozReview-Commit-ID: 4XQnvJ9Qr7R
2017-07-21 15:21:32 -07:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Paul Adenot 78d51fcd94 Bug 1375119 - Consider a page active if it has running AudioContexts. r=ehsan
MozReview-Commit-ID: IOQ2DY9LoTw

--HG--
extra : rebase_source : 5cc3ab7406707427e9e5de1f96597bb16222cf97
extra : source : 2de831b0d2329c02ddd87d60e1d814fe518e3c67
2017-07-21 12:41:52 +02:00
Jan-Ivar Bruaroey 899c0d854f Bug 1382095 - Fix Refcountable<> helper to avoid size mismatch in the memory leak logging table. r=jesup
MozReview-Commit-ID: 5i0iP9aDfHF

--HG--
extra : rebase_source : fcccd6772c147ae04da98ba6c0dcbc714b6cf107
2017-07-01 21:37:18 -04:00
Jan-Ivar Bruaroey 669a221f7a Bug 1382095 - Avoid ref-counting MediaEngineSource itself in setLastPrefs runnables to improve shutdown. r=jesup
MozReview-Commit-ID: LyMIXG9ClRJ

--HG--
extra : rebase_source : 119689ae07bcb4939950a02102ae1b6a936d4708
2017-07-01 15:01:25 -07:00
bechen 55bf6d2d94 Bug 1380571 - Enable test_streams_autoplay.html on Android. r=alwu
MozReview-Commit-ID: FWLFW1E6ThJ

--HG--
extra : rebase_source : 0d2388c3e9ded5dfcd61d7c3135877af5932a005
2017-07-13 14:48:56 +08:00
Alastor Wu 1499ee0710 Bug 1274919 - part3 : only send msg if someone is waiting for it. r=jwwang,mikedeboer
Only send the msg "Browser:UnselectedTabHover" when someone requests for the
msg, it can reduce non-necessary communication.

MozReview-Commit-ID: 2mBUMB4AMVo

--HG--
extra : rebase_source : d7a5103e2713735fdd0f65c7de381b219f4cce26
2017-07-20 15:11:25 +08:00
Alastor Wu f235c5746c Bug 1274919 - part2 : implement resume/suspend mechanism in MediaDecoder. r=jwwang
Create the new class "BackgroundVideoDecodingPermissionObserver" to handle the
suspended request sent from the front end side.

We would do registration on startup and deregistration on shutdown of MediaDecoder.

MozReview-Commit-ID: 1UwHA7YuVN3

--HG--
extra : rebase_source : a0bc22999fbf799cd25da8ec423d9f03acc9e8e2
2017-07-20 14:13:37 +08:00
JW Wang 87a7705558 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e

--HG--
extra : rebase_source : 48bfd7c681693a965848078c19ac81707ac19540
extra : source : 093ff5fe2ab6dd7551453b10b480fa3553ec135d
2017-07-20 09:56:08 +08:00
JW Wang ef025c6fcf Bug 1316211. P15 - remove MDR from the base class of MFR. r=gerald
MozReview-Commit-ID: Jf5pCxkhexg

--HG--
extra : rebase_source : 3ec9423d4d0f3b60ee9e5f6f19af18188530e1d9
extra : source : 4fbc225bfc79abacaf47ffd4405ef2d6711dea32
2017-07-19 22:18:37 +08:00
JW Wang 2e40eb607f Bug 1316211. P14 - move members from MDR to MFR. r=gerald
MozReview-Commit-ID: EwdteoEY1uS

--HG--
extra : rebase_source : 2cc250720539ba6c1682efac69d3724164338137
extra : source : d4cc3de1ae224bdca414cd02f4d3473c44fe4d20
2017-07-19 17:34:05 +08:00
JW Wang 5370eb3105 Bug 1316211. P13 - replace use of MediaDecoderReader with MediaFormatReader. r=gerald
We will remove MediaDecoderReader in the future.

MozReview-Commit-ID: BaCRXleKK5a

--HG--
extra : rebase_source : dc14a593d6291136f02b1deb910cd6dcd01c0355
extra : source : 8f71b7dae0a541562c7c3829b5a873e9f9fd2674
2017-07-19 17:01:32 +08:00
JW Wang fe278cb908 Bug 1316211. P12 - remove some more unused members. r=gerald
MozReview-Commit-ID: IEs0jXrC3tI

--HG--
extra : rebase_source : d1f7d2e51322c46ba16a28e448287d65e83d86f0
extra : source : 9eea2bf7cbbf9ac80d76cf983e9635ad2ae50493
2017-07-19 15:28:02 +08:00
JW Wang a7d0db5642 Bug 1316211. P11 - remove empty functions. r=gerald
MozReview-Commit-ID: 44blKyrVzLV

--HG--
extra : rebase_source : c65bc3b216cbd2409f22c519100a525f8c01beac
extra : source : dcdb98fbdd1389eaec08ccf32a685774ce53f755
2017-07-19 15:15:14 +08:00
JW Wang 11bf9c01e0 Bug 1316211. P10 - make SizeOf{Audio,Video}QueueInFrames() pure virtual which will be overridden by MFR. r=gerald
MozReview-Commit-ID: 5a4qTXVWdG1

--HG--
extra : rebase_source : 891470ac9bc3df6425ee190a98acea55902bf66f
extra : source : b7916e882c764cd3402f19a0985961a277264f12
2017-07-19 15:12:12 +08:00
JW Wang 0ffa647791 Bug 1316211. P9 - remove SizeOf{Audio,Video}QueueInBytes() that has no callers. r=gerald
MozReview-Commit-ID: A6TbGMdyDGQ

--HG--
extra : rebase_source : 6af7018d0ecea4d11040382ccd3ddf7719979ad2
extra : source : b4a506b3ebfd9ceb8b3eb5a23ea8499e0d3e9ddf
2017-07-19 15:08:27 +08:00
JW Wang afcae477f6 Bug 1316211. P8 - fix MDSM::SizeOf{Audio,Video}Queue which should count its own queues. r=gerald
MozReview-Commit-ID: HMtkZpMSf3L

--HG--
extra : rebase_source : d533689da3e0678488638a84f1747f80586900b2
extra : source : a6e1edb69b3c88abd8cd4428ab227dbb9bbaf5a3
2017-07-19 15:02:33 +08:00
JW Wang bfebe64691 Bug 1316211. P7 - remove mAudioQueue and mVideoQueue for we never push data into the queues. r=gerald
MozReview-Commit-ID: AL5JqUIAVXo

--HG--
extra : rebase_source : daf75d0e9a6065769b88d09fa52132f561d5ee77
extra : source : c6901fa2f8c548648606ecc1750ef98a38b8d6ad
2017-07-19 14:49:08 +08:00