Commit Graph

52 Commits

Author SHA1 Message Date
Chris Pearce
5d922e0e8e Bug 1146201 - Delay navigator.requestMediaKeySystemAccess if CDM not downloaded yet or needs update. r=jwwang,ehsan 2015-03-31 20:50:01 +13:00
Daniel Holbert
a8488fd0b6 Bug 1135541: Annotate new method "IsStillValid" in EME code as 'override'. rs=ehsan 2015-03-27 14:04:16 -07:00
Andrea Marchesini
e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Edwin Flores
b790668a1f Bug 1147689 - Preserve compatibility with eme-decrypt-v6 - r=cpearce 2015-03-26 22:58:43 +13:00
Edwin Flores
46cbfd3c6b Bug 1147689 - Pass the session ID(s) of an encrypted frame into EME CDMs - r=cpearce 2015-03-26 22:57:36 +13:00
Gerald Squelart
93b76062f3 Bug 1135541 - Make crash reporting work for EME CDMs - r=cpearce 2015-03-26 19:55:30 +13:00
Chris Pearce
56ad29a9d5 Bug 1147730 part 2 - Validate input rather than not-yet-set data field in MediaKeySession::SetSessionId. r=jw_wang 2015-03-26 19:53:23 +13:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
dc24477d79 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Daniel Holbert
082fd9cd7f Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Phil Ringnalda
571ce099b4 Back out 7f1f85ee4ba6 (bug 1143278) for Win7 near-permaorange in test_eme_canvas_blocked.html 2015-03-15 18:30:53 -07:00
Chris Pearce
151f899496 Bug 1143278 - Make gmp-clearkey not require a Win8 only DLL to decode audio on Win7. r=edwin 2015-03-15 11:30:24 +13:00
Chris Pearce
de13adbecb Bug 1141883 - Add more logging to help debugging EME. r=edwin 2015-03-11 17:02:08 +13:00
JW Wang
f20280713b Bug 1139270 - mark kGMPOutputDownscaled keys able to decrypt. r=cpearce 2015-03-04 22:26:23 +13:00
Chris Pearce
ab0da08c2f Bug 1138240 - Fail faster if a CDM tries to resolve a resolved promise. r=edwin 2015-03-02 14:13:47 +13:00
Chris Pearce
2880c3a9b1 Bug 1124031 part 4 - Enforce min CDM version from keySystem string. r=bz 2015-02-20 14:38:08 +13:00
Chris Pearce
2d975b23e2 Bug 1124031 part 3 - Parse min CDM version from EME keySystem string. r=bz 2015-02-20 14:38:01 +13:00
Chris Pearce
f09d7b2a50 Bug 1124031 part 2 - Rename EMELog.h to EMEUtils.h. r=bz
--HG--
rename : dom/media/eme/EMELog.cpp => dom/media/eme/EMEUtils.cpp
rename : dom/media/eme/EMELog.h => dom/media/eme/EMEUtils.h
2015-02-20 14:37:55 +13:00
Stephen Pohl
3cd8f6ba9b Bug 1089867: Rename media.eme.adobe-access.enabled pref to media.gmp-eme-adobe.enabled. r=cpearce 2015-02-17 12:50:16 -05:00
Gijs Kruitbosch
74d4e285be Bug 1133583 - pass window in EME notifications instead of null subject, r=cpearce
--HG--
extra : rebase_source : 509464a80ee8e3d82e5cfb24b6c215ab82d11056
2015-02-16 21:25:11 +00:00
Chris Pearce
9bf9f2a54e Bug 1111160 - Dispatch observer service notifications when content succeeds or fails to get CDM access. r=bz 2015-02-14 08:52:42 +13:00
JW Wang
deebe956da Bug 1132780 - Fix namespace and include files in MediaKeyStatusMap.cpp/h. r=cpearce 2015-02-12 19:26:00 -05:00
JW Wang
f1182ebcc0 Bug 1132366 - Correct place to call MediaKeys::Release() during shutdown. r=edwin 2015-02-11 23:30:00 -05:00
Edwin Flores
3ab5aadefa Bug 1113474 - Release MediaKeys when cleaning up pending promises - r=jwwang 2015-02-11 15:11:54 +13:00
Edwin Flores
69d958d922 Bug 1113474 - Keep MediaKeys alive until it has resolved all of its stored promises - r=cpearce 2015-02-11 11:43:49 +13:00
Edwin Flores
9a2cccac4c Bug 1129722 - Add {Hold,Drop}JSObjects to MediaKeyStatusMap - r=jwwang,bz 2015-02-06 11:04:47 +13:00
Chris Pearce
348ef34fe4 Bug 1129229 - Recognize com.adobe.primetime keysystem string. r=edwin 2015-02-05 09:36:44 +13:00
JW Wang
5d20d1e522 Bug 1128389 - rename "keyschange" to "keystatuseschange" per spec change. r=bz. r=cpearce. 2015-02-03 16:53:36 +08:00
JW Wang
a5730f41d2 Bug 1128379 - improve error handling in MediaKeys::CreateSession. r=bz 2015-02-01 19:12:00 +01:00
JW Wang
4d6309bd93 Bug 1083658 - add "output-downscaled" to GMP. r=cpearce. 2015-02-01 09:18:39 +08:00
JW Wang
437228dab0 Bug 1121332. Part 4 - implement MediaKeySession.keyStatuses and remove MediaKeySession.getUsableKeyIds. r=bz. 2015-01-31 13:23:07 +13:00
JW Wang
54a7b4ad6d Bug 1121332. Part 2 - expose media key status from CDMCaps. r=cpearce. 2015-01-31 13:22:25 +13:00
JW Wang
c1dd9140a5 Bug 1121332. Part 1 - add media key status to gmp-api. r=cpearce. 2015-01-31 13:22:12 +13:00
Edwin Flores
592f17b93a Bug 1101304 - Handle CORS in EME - r=cpearce 2015-01-29 20:30:38 +13:00
JW Wang
bfc4d164a1 Bug 1124939 - Add "individualization-request" to MediaKeyMessageType. r=bz 2015-01-26 20:08:00 +01:00
JW Wang
a9391d3408 Bug 1102852 - add MediaKeyMessageType to and remove destinationURL from MediaKeyMessageEvent. r=cpearce,bz 2015-01-15 11:25:47 +13:00
Masatoshi Kimura
bf312ad056 Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Ehsan Akhgari
4354953b4f Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Chris Pearce
7ba4d8b1c1 Bug 1111391 - Enable keyMessages to be sent before create/load session promise is resolved. r=jwwang 2015-01-09 14:30:07 +13:00
Ehsan Akhgari
860da94550 Bug 1114999 - Part 2: Apply MOZ_NO_ADDREF_RELEASE_ON_RETURN to all smart pointer arrow operators that can return refcounted objects; r=jrmuizel 2015-01-06 16:30:03 -05:00
JW Wang
9a707fcf22 Bug 1082203 - Route CDMCallbackProxy::Terminated to MediaKeys::Terminated so MediaKeys has a chance to handle CDM crashes and close sessions if necessary. r=cpearce 2014-12-16 20:01:00 -05:00
Chris Pearce
515d668bfb Bug 1109861 - Add delegate to manage waiting for the CDM to mark key usable. r=kinetik 2014-12-11 15:59:37 +13:00
Chris Pearce
d65355fd96 Bug 1109457 - Hook up CDM session close notification to MediaKeySession. r=jwwang 2014-12-11 15:59:37 +13:00
Chris Pearce
7cb2683938 Bug 1101328 - Rely on CDM to report keys as unusable on when removing sessions. r=jwwang 2014-12-11 15:59:37 +13:00
Chris Pearce
98553454ac Bug 1101328 - Use AsyncEventDispatcher to dispatch keyschange to MediaKeySession, since it doesn't require an nsIDocument. r=peterv 2014-12-11 15:59:37 +13:00
Chris Pearce
b392b7de2a Bug 1077159 - Use macros for GMP API names, to make them implicitly versionable. r=jesup 2014-12-10 09:35:26 +13:00
Chris Pearce
bf9df9f607 Bug 1095257 - Implement Navigator.requestMediaKeySystemAccess(). r=edwin r=bz r=peterv 2014-11-18 22:13:02 +13:00
Carsten "Tomcat" Book
217db26a63 Backed out changeset 7fa6291d952d (bug 1095257) for suspicion of causing jit tests 2014-11-18 13:14:36 +01:00
Chris Pearce
20def217dc Bug 1095257 - Implement Navigator.requestMediaKeySystemAccess(). r=edwin r=bz r=peterv 2014-11-18 22:13:02 +13:00
Chris Pearce
84765b7b57 Bug 1095257 - backout 54f79521758b due to m3 failures. r=backout r=bz 2014-11-18 19:49:13 +13:00