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

372 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Nathan Froyd 052d391b9c Bug 1448031 - make various audio/video/media constructors explicit; r=gerald
Attempting to stand up the static analysis for Android builds revealed
that we weren't being explicit enough.
2018-03-27 10:51:32 -04:00
Boris Zbarsky 9e7585ff47 Bug 1446527 part 7. Remove the various NS_FORWARD_TO_EVENT bits. r=qdot
We no longer have multiple inheritance from nsIDOMEvent anywhere.

This looks like it saves 20KB of codesize or so.

MozReview-Commit-ID: qJtM7QNu9z
2018-03-26 14:53:03 -04:00
Daniel Holbert edb2e41799 Bug 1447070: Give MediaKeySession.h the #include it needs to provide 'DecoderDoctorLifeLogger' type (to fix non-unified build error). r=gerald
MozReview-Commit-ID: An2FbvpI49I

--HG--
extra : rebase_source : 26a32a772cd2338e2124ae58342b64fb65ffbe49
2018-03-19 10:53:13 -07:00
Videet 01ad0f3438 Bug 547707: replaced hardcoded strings by definitions in nsMimeTypes.h r=gerald
MozReview-Commit-ID: 6f85pRUe8Tg

--HG--
extra : rebase_source : f41797530bf9211f3fe875a5da860132f5bd2c7c
2018-03-06 17:43:57 +01:00
Chris Pearce f800da4db3 Bug 1430673 - Remove CDMProxy::GetSessionIdsForKeyId(). r=JamesCheng
MozReview-Commit-ID: EMT8BaHE2Pf

--HG--
extra : rebase_source : 292412397b5a3617857daf199e324f3560a58f14
2018-01-16 11:38:27 +13:00
Chris Pearce da0df79d86 Bug 1426291 - Use DataMutex<T> to synchronize CDMCaps. r=jwwang
MozReview-Commit-ID: NLnoItNZKP

--HG--
extra : rebase_source : 39dd374343989350897aa3ab22b46fb554be17a9
2017-12-20 16:16:50 +13:00
Chris Pearce 8eff3a166e Bug 1426291 - Add Rust style mutex template which wraps data with the mutex that synchronizes it. r=jwwang
Rust's std::sync::Mutex has some nice properties. Its philosphy is to lock
data, rather than code.

It wraps data you're trying to make thread safe with a mutex, and in order to
get a reference to the wrapped data you need to lock the mutex and access it
through an intermediate layer. This is good, as the mutex that's protecting
access to the data is explicitly associated with the data, and it's impossible
to forget to take the lock before accessing the data.

This patch adds a similar mutex wrapper to Media Playback code. If it works
well, we can look at moving it into xpcom.

MozReview-Commit-ID: 4APAic6Fh8m

--HG--
extra : rebase_source : 3dc2b4916d3fd31f622af2b0c26ac3c0707d3300
2017-12-20 16:15:09 +13:00
Gerald Squelart 1b357db99b Bug 1407810 - Use DDLogger in media stack - r=jwwang
Mostly-mechanical additions:
- Log constructions&destructions, usually by just inheriting from
  DecoderDoctorLifeLogger, otherwise with explicit log commands (for internal
  classes for which DecoderDoctorTraits can't be specialized),
- Log links between most objects, e.g.: Media element -> decoder -> state
  machine -> reader -> demuxer -> resource, etc.

And logging some important properties and events (JS events, duration change,
frames being decoded, etc.)

More will be added later on, from just converting MOZ_LOGs, and as needed.

MozReview-Commit-ID: KgNhHSz35t0

--HG--
extra : rebase_source : dd7206e350e32671adc6f3b9e54ebf777251de2c
2017-10-10 17:55:27 +11:00
Jon Coppeard a06421a289 Bug 1417123 - Remove or replace inclusion of js/GCAPI.h r=mccr8 2017-11-16 12:21:08 +00:00
James Cheng f733aff224 Bug 1404230 - Part4 - Add GetStatusForPolicy method in ipdl and implement it by calling CDM. r=cpearce
MozReview-Commit-ID: 8L0qKgnKMES

--HG--
extra : rebase_source : 05b6fe33a9c0cbe5ca52f245decc167889bbe6d9
2017-10-24 10:55:03 +08:00
James Cheng c48a2cbcfa Bug 1404230 - Part3 - Add GetStatusForPolicy method in CDMProxy and its derived classes. r=cpearce
MozReview-Commit-ID: myrPzVi0rl

--HG--
extra : rebase_source : e576823470e9ac97c3c519bb286150d895953c8e
2017-10-05 15:37:25 +08:00
James Cheng 0df3d7fa98 Bug 1404230 - Part2 - Add a web api to support HDCP policy check on MediaKeys. r=cpearce,smaug
MozReview-Commit-ID: HW7DtQ6GuOa

--HG--
extra : rebase_source : 27c4fe3845068d979cac1868d0a7cf9262a3e153
2017-10-02 17:39:00 +08:00
Kris Maglione 60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
James Cheng 8f80fefaf0 Bug 1403830 - [Part1] Remove gmp-decryption.h and its related code. r=cpearce
MozReview-Commit-ID: G8RHADhfd3c

--HG--
extra : rebase_source : 125098fb689e5d031f042c9b3976a8163f41ff51
2017-09-28 15:50:28 +08:00
James Cheng ec87af6c06 Bug 1403804 - P2 - Remove remaining GMPCDMProxy term. r=cpearce
MozReview-Commit-ID: IlcqZWYlFPv

--HG--
extra : rebase_source : 7bc9bc7ef3573f491be833003e52aa8c4ccddf3e
2017-09-28 11:58:35 +08:00
Chris Peterson 45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
James Cheng e3b97ecea3 Bug 1397123 - [Part1] Make aMessage of CDMProxy::OnSessionMessage const. r=cpearce
MozReview-Commit-ID: Bsw6s2HE02

--HG--
extra : rebase_source : 40a0bd4d5cc20210322daed0eba04dec2273fbd7
2017-09-11 12:16:18 +08:00
Phil Ringnalda 2387b87164 Backed out 2 changesets (bug 1397123) for Android build bustage
Backed out changeset 803c2d6f4be4 (bug 1397123)
Backed out changeset 2d41a6eb4df4 (bug 1397123)

MozReview-Commit-ID: A45nVCrhbQA
2017-09-11 20:23:22 -07:00
James Cheng 7cfecdecc8 Bug 1397123 - [Part1] Make aMessage of CDMProxy::OnSessionMessage const. r=cpearce
MozReview-Commit-ID: Bsw6s2HE02

--HG--
extra : rebase_source : e165dd24b22a06f5a7a9ebe2797136b4109a203f
2017-09-11 12:16:18 +08:00
James Cheng 9fcb294cc3 Bug 1398628 - Remove VIDEO_CDM_CREATED telemetry and the related code. r=cpearce,francois
MozReview-Commit-ID: 3xDiz9S90bY

--HG--
extra : rebase_source : 78c88ef859fbf402cb7f1c168663c63f3eb5073d
2017-09-11 11:51:12 +08:00
James Cheng b01615f4a0 Bug 1395468 - [Part2] Remove the EMEVideoDecoder and GMPCDMProxy related files. r=cpearce
We remove the instantiation of EMEVideoDecoder and GMPCDMProxy in Part1. Just delete it and its h/cpp from moz.build

MozReview-Commit-ID: 8kGQK967pR0

--HG--
extra : rebase_source : 77750e6a92e6b649c41e7a8f769fa14c810e8e18
2017-08-29 16:52:09 +08:00
James Cheng 9d0d797c01 Bug 1395468 - [Part1] Remove media.eme.chromium-api.enabled preference and its related code. r=cpearce
1. Delete MediaPrefs::EMEChromiumAPIEnabled() and related logic.
2. We now only use the Chromium CDM interface so delete the opposite side check of MediaPrefs::EMEChromiumAPIEnabled().

MozReview-Commit-ID: GDFrrf4WlWf

--HG--
extra : rebase_source : 987667dd47757afd58e7da10b60c0e1e1ec89d39
2017-08-29 16:13:15 +08:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Chris Pearce 344a04e025 Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : b2e3f66a20f431b8a2b0dc88b65dd5da9433da2f
2017-08-16 17:18:39 +12:00
Carsten "Tomcat" Book a16900ac51 Backed out changeset 9172b8d6ce3e (bug 1390748)
--HG--
extra : rebase_source : 44c2361c7247fe7d1948ff3e7f47f165e8368483
2017-08-17 08:35:23 +02:00
Chris Pearce bd4996facd Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : 0f2ff9241c643d49c8293bdbfb4ec6adb1e2cd30
2017-08-16 17:18:39 +12:00
Phil Ringnalda 38ce1ea2a0 Backed out 10 changesets (bug 1390748) for build bustage
Backed out changeset 02b36ee5fb17 (bug 1390748)
Backed out changeset 84e8bf01c856 (bug 1390748)
Backed out changeset fc8989be30f3 (bug 1390748)
Backed out changeset 14d421ace6cc (bug 1390748)
Backed out changeset 7dadac869038 (bug 1390748)
Backed out changeset 0e77809e7bc2 (bug 1390748)
Backed out changeset bf78a8dce9c5 (bug 1390748)
Backed out changeset 5fa77990472e (bug 1390748)
Backed out changeset 5d3b637d2485 (bug 1390748)
Backed out changeset 634fe076d134 (bug 1390748)

MozReview-Commit-ID: Dxio8vXDCHg
2017-08-16 21:33:10 -07:00
Chris Pearce e927f10587 Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : 6661db3a00fc8b378aedd456950fb819f699507b
2017-08-16 17:18:39 +12:00
Chris Pearce 1c7befff21 Bug 1388288 - Make EME/GMP related code build non-Unified. r=gerald
MozReview-Commit-ID: 5q0Wwr2BNA0

--HG--
extra : rebase_source : e32e90c06ac933b3a387e26dbbfdcfac93ef3faf
2017-08-08 16:36:01 +08:00
Nathan Froyd 6c8193aed4 Bug 1377962 - add more override declarations for Android-only methods; r=snorp
Trying to get the build running with clang again revealed a few more
missing override declarations.
2017-07-05 16:56:28 -04:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Masatoshi Kimura 9865b2fdeb Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
MozReview-Commit-ID: E0w8BsP1Rof

--HG--
extra : rebase_source : db95e1e7fc60c9b9c8e6d7fcc5329421ec97e811
2017-06-16 21:11:03 +09:00
Chris Pearce 08c74f252e Bug 1368596 - Add telemetry to track how often deprecated configs are passed to navigator.requestMediaKeySystemAccess(). r=gerald,r=francois
MozReview-Commit-ID: IQ6zRRb31Vc

--HG--
extra : rebase_source : 80b86b74405779015311c31444e54506f39df1e2
extra : source : 24008e376cff0d7b6b94900001c71b596179a7c3
2017-05-30 21:34:55 +12:00
Chris Pearce 29420a59c0 Bug 1368583 - Add deprecation warning for MediaKeySystemConfiguration properties no longer supported by the EME spec. r=gerald
As per Bug 1355252, the EME spec requires our
navigator.requestMediaKeySystemAccess() function to reject request for
configurations which don't contain at least one MediaKeySystemCapabilities
(audioCapabilities or videoCapabilities).

That's step 15 of this algorithm:
https://w3c.github.io/encrypted-media/#get-supported-configuration-and-consent

We also shouldn't be assuming that WebM and MP4 normatively imply a specific
set of codecs and codec constraints, as that violates step 10 of the "Get
Supported Capabilities for Audio/Video Type" algorithm.

https://w3c.github.io/encrypted-media/#get-supported-capabilities-for-audio-video-type

Making this change has the effect of causing us to reject configurations with
MediaKeySystemCapabilities where those capabilities don't specify a codec
string.

This patch adds a deprecation warning to encourage authors to make their sites
spec compliant.

MozReview-Commit-ID: 6kM9LATDfy6

--HG--
extra : rebase_source : 96763bd49cbebb81ac565a8862cb0ad97838181f
extra : source : 9df49a410082d68041377dabbbebfb458a580041
2017-05-30 21:33:03 +12:00
Carsten "Tomcat" Book b318c7dca7 merge mozilla-inbound to mozilla-central + UPGRADE_NSS_RELEASE a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
extra : amend_source : 458fd54fe8070ca3034ac441267ff7025adb5251
2017-05-30 11:37:46 +02:00
Chris Pearce b7b2dab14d Bug 1355252 - Backed out changeset c19d32e2a710. r=backout
MozReview-Commit-ID: 7pTa64IsIq2

--HG--
extra : rebase_source : 27ec010599614d1402e9621149cb953464ec7603
2017-05-30 10:34:13 +12:00
Chris Pearce 1a44af43a6 Bug 1355252 - Backed out changeset ddb3969de046. r=backout
MozReview-Commit-ID: cdH0WSFOaz

--HG--
extra : rebase_source : 3b1eebcf7323cbcc037d1a2e0d92a923f217d811
2017-05-30 10:33:30 +12:00
Chris Pearce 7442ac32b0 Bug 1334111 - Log MediaKeySystemConfiguration on creation of MediaKeySystemAccess. r=gerald
This makes it easier to tell what's going on; whether we've created a
MediaKeySystemConfiguration which can persist state.

MozReview-Commit-ID: L4dbmMVYhsM

--HG--
extra : rebase_source : e47e60f5091b6b5477b2c8bd63ba408922706082
2017-05-29 11:02:15 +12:00
Chris Pearce 098502268f Bug 1334111 - Move MediaKeySystemConfig to-string helper to MediaKeySystemAccess. r=gerald
This will enable us to re-use the logging code in MediaKeySystemAccess to log
the configuration we end up instantiating the MediaKeySystemAccess with.


MozReview-Commit-ID: AMnauhMLJ1R

--HG--
extra : rebase_source : a2dfeb7b263108ac1c60bfe2f47755e0a73d6324
2017-05-29 10:34:38 +12:00
Chris Pearce 7bcd5db48e Bug 1334111 - Reject MediaKeys requests for persistent storage when in PB mode. r=gerald
We want requests for MediaKeySystemAccess with persistentState to be rejected
if the window is in Private Browsing mode. This is primarily so that users in
Private Browsing mode don't unknowningly use up their "device limits"; some DRM
streamers have limits on the numbers of unique devices that can be
provisioned/used in a given time period, and the device ID is persisted in the
persistent state. So if we're flushing that state, the user will use up one of
their device quota on every new session, and quickly hit their limit, and be
unable to continue watching DRM video.

MozReview-Commit-ID: JWNO1kcU2ST

--HG--
extra : rebase_source : ad4e22629acfdd82aff8ead764949939726adbf4
2017-05-29 10:21:18 +12:00
Chris Pearce 61c23b5287 Bug 1355252 - Reject navigator.requestMediaKeySystemAccess if no MediaCapabilities supplied. r=jwwang
As required by step 15 of EME's Get Supported Configuration and Consent algorithm,
https://www.w3.org/TR/encrypted-media/#get-supported-configuration-and-consent

MozReview-Commit-ID: 8c24VrmygBx

--HG--
extra : rebase_source : cccb8c05cefc06396683317f3827885f6b91ba0e
2017-05-17 17:10:14 +12:00
Chris Pearce 5064845788 Bug 1355252 - Don't assume default codecs for MP4 and WebM in EME MediaCapabilities r=jwwang
Step 10 of EME's "Get Supported Capabilities for Audio/Video Type" algorithm
says we can assume default codecs only if a container normatively implies a
specific set of codec and codec constraints. Our code assumes that WebM implies
Vorbis/VP8 and MP4 implies AAC/H.264, but those aren't actually normatively
required by either of these containers' specifications. So we shouldn't assume
these containers imply those codecs.

MozReview-Commit-ID: G9TDOmrjhpp

--HG--
extra : rebase_source : 2f040d76c8cb240359401fe1dc1e3eefa029d77b
2017-05-11 14:23:33 +12:00
Kris Maglione b588cdc5bb Bug 1361900: Part 1 - Make CDMProxy.h compatible with mozilla::Result. r=JamesCheng
MozReview-Commit-ID: DiO7IPFYKbE

--HG--
extra : rebase_source : 500e32854c50e2381fd9de3a3533611be1426329
extra : source : 9e3064aec4bb16542f9cc93a89f7a257b6716a98
2017-05-12 12:08:43 -07:00
Sebastian Hengst 7b52c82b67 Backed out changeset 9e3064aec4bb (bug 1361900) for crashing Marionette's test_timeouts.py TestTimeouts.test_reset_timeout on Linux debug with e10s. r=backout 2017-05-13 18:56:06 +02:00