karo
85319b4cd0
Bug 1344073 - Adding consistent formatting to HTMLMediaElement::MozRequestDebugInfo debugInfo dump string. r=cpearce
...
MozReview-Commit-ID: GfRrLQcebbt
--HG--
extra : rebase_source : 846b74c63528f58e414636654b0167d6c8c1480b
2017-03-01 16:03:01 +13:00
JW Wang
2df35d6eb8
Bug 1345324 - Label runnables for CDMProxy sub-classes. r=cpearce
...
MozReview-Commit-ID: Fpf29Kctmxs
--HG--
extra : rebase_source : 24612112d4b474812e5fdcd2e14cd3679715c098
extra : source : f5d085c3221ec54785f9c98a5fd0eda78d446641
2017-03-07 15:32:10 +08:00
Daniel Holbert
95a650ec1b
Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
...
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
find . -name "*.cpp" -exec fromdos {} \; && \
hg revert -C gfx/angle \
gfx/sfntly \
media/webrtc \
media/libstagefright \
media/openmax_il \
other-licenses
MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
karo
3c2b014e09
Bug 1343409 - HTMLMediaElement::MozRequestDebugInfo returns EMEInfo. r=cpearce
...
MozReview-Commit-ID: 1iQP3OJmwdP
--HG--
extra : rebase_source : 171155ab5e58cac8cc9db9109a5c2fc88b1930d3
2017-03-01 12:56:29 +13:00
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Andrea Marchesini
f7f5990527
Bug 1317927 - Media caching needs to use origin attributes, r=cpearce, r=jesup
2016-12-07 07:07:09 -10:00
Chris Pearce
19f0b2fe44
Bug 1320614 - Remove MediaKeys::mNodeId as it's only ever written and never read. r=gerald
...
MozReview-Commit-ID: BWfrjzdfph
--HG--
extra : amend_source : 784b9d8341dc2fad29c522b5faa147a2a81a9388
2016-11-28 12:12:34 +13:00
Chris Pearce
0a0e9d8f06
Bug 1317822 - Move GMPCrashHelper into its own file. r=gerald
...
MozReview-Commit-ID: 7CinZ2Y2Fmz
--HG--
extra : rebase_source : 3b176cbfadebf6463384105c261ff208bc58b1c2
2016-11-16 11:35:36 +13:00
James Cheng
06a62c3bad
Bug 1314530 Part3 - Instantiate MediaDrmCDMProxy if it is widevine on fennec. r=cpearce
...
MozReview-Commit-ID: AhNBaO5LPwe
--HG--
extra : rebase_source : bd481396058d28521b2cbbd0fca8296d32768a86
2016-11-07 14:03:44 +08:00
Chris Pearce
20b6c3ec6b
Bug 1314445 - Don't pass CDM version to MediaKey*. r=gerald
...
We don't need this, and we don't seem to be using this anyway.
MozReview-Commit-ID: 7NCRO94PN3m
--HG--
extra : rebase_source : de91b099e5e536eb321584990f18025e08c7cc78
2016-11-02 11:56:30 +13:00
Chris Pearce
08bdd39606
Bug 1310879 - Check that only supported session types are instantiated. r=gerald
...
MozReview-Commit-ID: 6XkToIXzZL8
--HG--
extra : source : d1c0a7a2ff25005de82033081bee5eb10adea0c8
2016-10-28 11:43:26 +13:00
Chris Pearce
17c7c9d886
Bug 1310879 - Pass MediaKeySystemConfiguration to MediaKeys. r=gerald
...
MozReview-Commit-ID: 6tHlyRl4nWT
--HG--
extra : source : 5773f8dac74aaf05ec1c4f8585b3b148d51da324
2016-10-28 11:22:11 +13:00
Chris Pearce
ea73ebebc8
Bug 1311848 - Don't call ConnectPendingPromiseIdWithToken in MediaKeySession::Load. r=kikuo
...
We don't need to call MediaKeys::ConnectPendingPromiseIdWithToken() on the
MediaKeySession::Load() path, we already know the session Id, and we've already
removed the session from the list of pending sessions in Load().
MozReview-Commit-ID: KBiEsY95Csi
--HG--
extra : rebase_source : aadc3204409df35e4bbcb9532c530f860681afd1
2016-10-21 10:52:26 +13:00
Kilik Kuo
ede59e2ecf
Bug 1310936- Provide a map to get pending MediaKeySession by promise Id correctly. r=cpearce
...
MozReview-Commit-ID: 34BL4GYoC1A
--HG--
extra : rebase_source : 4dffdf8da32412a6812716de9edbf685235ce442
2016-10-20 15:28:09 +08:00
Chris Pearce
f40bbc42f7
Bug 1305552 - Add telemetry to track uses of MediaKeySession.generateRequest. r=francois,gerald
...
This allows us to track how often EME CDMs are used, rather than just created.
The telemetry I added in bug 1304207 is reports whenever a CDM is created, but
some sites, such as the Shaka Player demo site, create CDMs without using them,
so that telemetry isn't a great measure in helping us detect when CDMs aren't
being used. Whereas the telemetry added here will report when the CDMs are used
to negotiate a license, i.e. when the CDMs are actually being used.
MozReview-Commit-ID: ExMIcIIBvS1
2016-09-27 15:01:06 +13:00
Chris Pearce
3d1e5d28dd
Bug 1304207 - Add telemetry to track when EME CDMs are instantiated. r=francois,gerald
...
Add opt-out telemetry probe to track which EME CDMs are being instantiated.
This will enable us to determine when it's safe to remove the Adobe CDM.
MozReview-Commit-ID: iEPSTk7UtP
--HG--
extra : rebase_source : fb51d77f4c15fe2d9ef0adf3c87f6125bb758b9c
2016-09-21 10:45:02 +12:00
Jean-Yves Avenard
6a25692b20
Bug 1299072: P10. Pass decoding error details to media element's error attribute. r=jwwang
...
MozReview-Commit-ID: 49DurV9WI5S
--HG--
extra : rebase_source : 469e6ed4e222fb6d6ac34843c3c3346a044c6023
2016-09-11 00:56:09 +10:00
Kaku Kuo
a6ed727230
Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz
...
MozReview-Commit-ID: KNbxVcCVqts
--HG--
extra : transplant_source : %1D%18%E5%C9o%F0%29%E7%E0%93%EEcR%C7B%3BeX%B3%87
2016-08-09 17:15:13 +08:00
Tim Huang
71ca0b6bc8
Bug 1283325
- Part 1 : Make EME Plugins / Gecko Media Plugins storage OriginAttribute aware. r=cpearce
2016-07-22 08:40:00 +02:00
Chris Pearce
f49856bc79
Bug 1278198 - Pipe through distinctive identifier and persistent state allowed. r=gerald
...
MozReview-Commit-ID: A92e0XGp5s4
--HG--
extra : rebase_source : 09f7ba18c9b81263aa345cc7f34f0ef2a2548482
2016-07-07 17:26:15 +12:00
Chris Pearce
1ea9b742f5
Bug 1278198 - Update EME code to reflect new WebIDL name changes. r=gerald
...
MozReview-Commit-ID: EssCsJxBBwt
--HG--
extra : rebase_source : 154746eca911e2250f3fa94a6a2d4b2624910e50
2016-07-04 14:14:01 +12:00
James Cheng
02c5726f49
Bug 1284192 - Make CDMProxy be a base class and move the logic into subclass. r=cpearce
...
MozReview-Commit-ID: 4Lr3uqVexFD
--HG--
rename : dom/media/eme/CDMProxy.cpp => dom/media/gmp/GMPCDMProxy.cpp
rename : dom/media/eme/CDMProxy.h => dom/media/gmp/GMPCDMProxy.h
2016-07-18 22:13:00 +02:00
Chris Pearce
4b3a0f0d42
Bug 1267918
- Remove obsolete GMP crash handling code. r=gerald
...
MozReview-Commit-ID: EqzJagCHk7n
--HG--
extra : rebase_source : e66aa2a4b5939ae8bcf833a5d1a59ef508a679b3
2016-06-29 11:42:14 +12:00
Chris Pearce
7517d84f1b
Bug 1267918
- Add GMPCrashHelper for MediaKeys. r=gerald
...
So if a GMP crashes while doing EME, we'll get a crash report using the new
mechanism.
MozReview-Commit-ID: G8BlFI9jmiF
--HG--
extra : rebase_source : 1cda5c93ea9e547636b34ec2149ef9cd2506ca73
2016-06-29 11:42:04 +12:00
Jean-Yves Avenard
d31cb0499b
Bug 1206637: P2. Replace all cached preferences with MediaPrefs ones. r=cpearce
...
Additionally, clean up stray and unused Preferences.h header.
MozReview-Commit-ID: IcPrD2inkDE
--HG--
extra : rebase_source : c3c6e37767627db3601090c2855a3dfa98cb4368
2016-05-10 11:02:28 +10:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Chris Pearce
967b559ecc
Bug 1233274 - Don't shutdown detached MediaKeys. r=gerald
2016-01-06 13:28:43 +13:00
Chris Pearce
0840e7ba6a
Bug 1230272
- Remove version suffix from keySystem string reported by MediaKey*.keySystem attribute. r=gerald
2015-12-04 17:35:40 +13:00
Chris Pearce
6818d3ec67
Bug 1228215 - Add a 'gmpName' parameter to GMPService::GetNodeId(), so each GMP can see a different nodeId for the same origin. r=jwwang
2015-11-27 10:53:31 +13:00
Chris Pearce
2e8e9b44e1
Bug 1223980 - Move CopyArrayBufferViewOrArrayBufferData to EMEUtis and add GetArrayBufferViewOrArrayBufferData. r=bz
2015-11-24 13:13:11 +13:00
Kyle Huey
c7d3c4e21a
Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz
2015-10-26 14:37:32 -07:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Chris Pearce
7f29db1d5a
Bug 1214478 - Ensure MediaKeySession.close() does not store its promise twice. r=gerald
2015-10-14 19:42:24 +13:00
Sotaro Ikeda
34a6dca7cc
Bug 1205351 - Replace nsBaseHashtable::Enumerate() calls in dom/media/ with iterators r=cpearce
2015-09-24 18:48:25 -07:00
Chris Pearce
07c5d8b53b
Bug 1176145 - Expose CDM version number in keySystem string. r=edwin
2015-08-31 16:08:51 +12:00
Chris Pearce
e220da3249
Bug 1187113 - Add more logging around EME promise rejects and method calls that often fail. r=edwin
2015-07-27 11:52:19 +12:00
Chris Pearce
3e5d36b7ac
Bug 1169129
- Make GMPService's GMP crash handlers easier to register. r=gerald
2015-06-05 21:55:51 +12:00
Edwin Flores
d0bfa9bf80
Bug 1160445 - Add detailed logging for EME promise failures - r=cpearce,bholley
2015-06-03 13:42:50 +12:00
Mike Conley
97a46ed1e0
Bug 1146955 - Make the GMP pluginID a uint32_t, and dispatch it in the PluginCrashed event. r=jesup r=mrbkap
...
--HG--
extra : rebase_source : ef8893d470e437d93a44b393f595518acb411852
extra : source : ad87e781794d5bb5337feb6e2608730075a7f71e
extra : histedit_source : 91cbbdedc9273982d0eb6b3c58269c73e0f46f63
2015-05-04 15:40:29 -04:00
Chris Pearce
f800285f02
Bug 1148286 - Ensure we don't nullpointer deref if the CDM crashes in MediaKeys and Reader::SetCDMProxy implementations. r=edwin
2015-04-01 20:48:43 +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
Gerald Squelart
93b76062f3
Bug 1135541 - Make crash reporting work for EME CDMs - r=cpearce
2015-03-26 19:55:30 +13: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
Chris Pearce
de13adbecb
Bug 1141883 - Add more logging to help debugging EME. r=edwin
2015-03-11 17:02:08 +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
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
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
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