Commit Graph

726 Commits

Author SHA1 Message Date
arthur.iakab
7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen
8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
Emilio Cobos Álvarez
1e9c395548 Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj
Same approach as the other bug, mostly replacing automatically by removing
'using mozilla::Forward;' and then:

  s/mozilla::Forward/std::forward/
  s/Forward</std::forward</

The only file that required manual fixup was TestTreeTraversal.cpp, which had
a class called TestNodeForward with template parameters :)

MozReview-Commit-ID: A88qFG5AccP
2018-06-02 09:33:26 +02:00
Emilio Cobos Álvarez
fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Nicholas Nethercote
59e46f2358 Bug 1451535 - Remove NS_ConstExprIsAscii() functions. r=froydnj 2018-04-17 20:03:52 +09:00
Nicholas Nethercote
51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00
Margareta Eliza Balazs
dbef13782c Backed out 2 changesets (bug 1451278) for breaking windows pgo builds a=backout
Backed out changeset ac685df07bfc (bug 1451278)
Backed out changeset 5944ccd5060d (bug 1451278)
2018-04-16 21:41:03 +03:00
Nicholas Nethercote
2224229b3d Bug 1451278 - Remove NS_ConstExprIsAscii() functions. r=froydnj
MozReview-Commit-ID: DG2HUOa7x6y

--HG--
extra : rebase_source : a0e2f24f96cb688d11984827acb1361abc4988e6
2018-04-16 08:37:25 +10:00
Masatoshi Kimura
d7043295be Bug 1445601 - Stop using LoadLibraryA in GMP. r=cpearce
We should not use LoadLibraryA (or more generally "A" functions) on Windows
because it is lossy. Bug 1440886 will introduce a static analysis to prevent
potential misuse of LoadLibraryA, so we need to replace existing usages first.

MozReview-Commit-ID: 6krgrVcSHNW

--HG--
extra : rebase_source : 0e93acecfe0c9ccd2e4ba9ad3126b6ae16433387
2018-03-28 00:02:28 +09:00
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
Nika Layzell
69042a522a Bug 1440511 - Part 8: Include ParamTraits impls which are used in ipdlh files, r=froydnj
MozReview-Commit-ID: 9AfzlhyTgsY
2018-03-05 16:00:03 -05:00
Gurzau Raul
c380dfe905 Merge inbound to mozilla-central. a=merge 2018-01-30 12:01:49 +02:00
Chris Pearce
b69a154521 Bug 1433309 - Annotate createMediaKeys promise reject with whether failure occurred due to pending shutdown. r=gerald
Around every Firefox update, Netflix see a spike in
MediaKeySystemAccess.createMediaKeys() promise rejects. I am wondering whether
this is caused by the browser restarting to apply a Firefox update while
Netflix's player is loading.  So add more detail to the promise reject as to
the state of the system, to try to validate that theory.

MozReview-Commit-ID: 4IDPsFwKCtq

--HG--
extra : rebase_source : 0a53acb623f895e598845c281edc73b926c74c28
2018-01-26 12:20:35 +13:00
Chris Pearce
2833f14652 Bug 1416667 - Backed out changeset 22453f19f050. r=backout
MozReview-Commit-ID: 3kaRtZtCQru
2018-01-30 15:02:01 +13:00
Haik Aftandilian
7f32b33af4 Bug 1417005 - [Mac] Respect MOZ_DISABLE_GMP_SANDBOX r=Alex_Gaynor,cpearce
Respect MOZ_DISABLE_GMP_SANDBOX so that the GMP sandbox
can be disabled from the command line.

MozReview-Commit-ID: HLHQ6ImrzGe

--HG--
extra : rebase_source : 54335b6f612f5b09e2680ec6e6dee70f37a99e2b
2018-01-24 16:11:21 -08:00
James Cheng
225c6d93a8 Bug 1420836 - Part2 - Pass the storage id from content process to GMP process then provide it to CDM. r=cpearce
MozReview-Commit-ID: 2VFNHaL5p73

--HG--
extra : rebase_source : 67c217512b57ba47652fbb77d4b27e46058717f3
2018-01-03 15:37:07 +08:00
James Cheng
c99cb87836 Bug 1420836 - Part1 - Provide a utility function to compute the storage id. r=cpearce
The CDM on Mac and Windows will ask the host for storage id.
We compute the storage id by hashing machine id, origin salt and browser id.

MozReview-Commit-ID: 4fTCaOKgSIe

--HG--
extra : rebase_source : 20fe8ab93966bb74b46eebbfbddc8486ceea4705
2018-01-03 15:23:15 +08: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
James Cheng
b1845ae48e Bug 1430517 - Remove VIDEO_CHROMIUM_CDM_MAX_SHMEMS telemetry. r=cpearce
MozReview-Commit-ID: 6dPV5dGACnx

--HG--
extra : rebase_source : df364e1927c9a073bf4957fe1ea4fb9ea8395d2f
2018-01-15 11:21:28 +08: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
James Cheng
8107c910bc Bug 1422669 - Part4 - Kill string16 and replace with our SHA1 implementation. r=gerald
The reason explained in patch Part1 of Bug 1214018 and I just copy the reason below.

GetRawMachineId was returning its generated data through a 'string16', which on
Windows was conveniently equivalent to a std::wstring.

However on Mac, wstring uses 32-bit characters, so in order to comply with the
string16 interface, a lot of non-trivial code would have to be imported and
vetted.

Also, in the end GMPLoader::Load passes this string16 to SHA256_Update() as a
sequence of bytes, the actual type of the data is lost!

So to simplify this work, GetRawMachineId will now return its data through a
vector of bytes, and the platform-dependent implementations may use whatever
data type they want internally.

The Windows GetRawMachineId actually returns the same data in this vector, so
it stays compatible with the previous code.

MozReview-Commit-ID: 7xYgjndXWDX

--HG--
extra : rebase_source : 6a46bd7f06d6e4bc10bb98b600e7e5bc14c136ce
2017-12-06 16:52:31 +08:00
James Cheng
d9be66f8f8 Bug 1422669 - Part3 - Introduce rlz_lib::GetMachineId and its related helper functions. r=cpearce
Chromium uses rlz_lib::GetMachineId as a factor when calculating storage id.

MozReview-Commit-ID: AJbcnRXzi3m

--HG--
extra : rebase_source : 4e6a0eebaeec01fc7a78caeb8406d1e2ed09f1d4
2017-12-06 14:41:38 +08:00
jacheng@mozilla.com
8e31e4ddf5 Bug 1422669 - Part2 - Fix compiling error [-Werror,-Wcomma] by Part1 on OSX. r=gerald
--HG--
extra : rebase_source : 13c1151aefc9dfcfdd41bd44eafcb11828853528
2017-12-06 06:33:02 +00:00
jacheng@mozilla.com
92826eb75f Bug 1422669 - Part1 - Restore librlz from Bug 1332530. r=cpearce
Sync with the upstream(Chromium src/rlz/) and try to revert the functionality of Bug 1332530.
rlz is linked into xul.

MozReview-Commit-ID: HsjnBRPnifh

--HG--
extra : rebase_source : 2867fe353d0c8c67535d29943f3536ef59d1d75e
2017-12-06 06:33:02 +00:00
Sylvestre Ledru
4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Eric Rahm
07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08:00
Masatoshi Kimura
fb6b360527 Bug 1422856 - Stop using GetNativePath in GMPServiceParent. r=cpearce
MozReview-Commit-ID: 2zr2RfZOPYs

--HG--
extra : rebase_source : e1ba72e9676833fea37267aae862f0dc3d3aaa6e
2017-12-05 01:05:36 +09:00
Gerald Squelart
112525df79 Bug 1329385 - Fix leak in GMPServiceParent::GetContentParent - r=JamesCheng
Using a single-function MozPromise::Then, and capturing a UniquePtr (using
C++14 initialized lambda captures), the PromiseHolder cannot leak anymore.
Also using C++ initialized lambda captures for other variables, to avoid
unnecessary constructions and copies.

MozReview-Commit-ID: DVxyuJNa8YX

--HG--
extra : rebase_source : a7169d616da36597854bf37616228eb72636f2b7
2017-01-18 08:55:57 +11:00
James Cheng
a6426a74c0 Bug 1416686 - Reduce the uses of IPC_FAIL_NO_REASON in GMPChild.cpp. r=cpearce,dmajor
Originally, we use IPC_FAIL_NO_REASON to make IPC call return error and then it invokes MOZ_CRASH to kill the process itself.
By using IPC_FAIL, we can pass a descriptive reason to GMPChild::ProcessingError and Bug 1416667 will use MOZ_CRASH_UNSAFE_PRINTF
to print the reason to the crash report. In addition, we use CrashReporter::AnnotateCrashReport to record the lib path without exposing the data publicly.

MozReview-Commit-ID: 15n1PItLgAp

--HG--
extra : rebase_source : 011f02155b290f95fcde807264f3e1ffb9a09e80
2017-11-13 09:35:03 +00:00
James Cheng
c3103719c2 Bug 1416667 - Use MOZ_CRASH_UNSAFE_PRINTF in GMPChild::ProcessingError r=cpearce
We passed the crash reason to GMPChild::ProcessingError but we didn't use it anymore.
We can simply use MOZ_CRASH_UNSAFE_PRINTF instead of MOZ_CRASH to make the crash more descriptive.

MozReview-Commit-ID: D7mU3Dsg9V9

--HG--
extra : rebase_source : 467974fbcc81792850b6c4b1a6faa3e90cfabb41
2017-11-13 08:24:00 +00:00
Gabriele Svelto
0750d2d41a Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv
MozReview-Commit-ID: 4G2C9y6csvc

--HG--
extra : rebase_source : f0259c59c263b677a3a44751219dcb54378d72bc
2017-10-10 12:43:09 +02:00
shindli
fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto
13bba6b3c4 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv
MozReview-Commit-ID: 4G2C9y6csvc

--HG--
extra : rebase_source : 989a11eaed6641a17ab27ae10b7fea6277cec534
2017-10-10 12:43:09 +02:00
Alfredo.Yang
1691dbc3fd Bug 1417795 - remove mp4_demuxer namespace part6. r=kinetik
MozReview-Commit-ID: FI139lJTTX9

--HG--
extra : rebase_source : 5871e418b7cad1c95976e46535d94d7374629156
2017-11-17 11:57:44 +08:00
Alfredo.Yang
187142dbec Bug 1417794 - move Adts.h, AnnexB.h and H264.h to dom/media/platform/agnostic/bytestreams. r=kinetik
MozReview-Commit-ID: LUqvIdCD2XD

--HG--
rename : dom/media/platforms/agnostic/mp4_demuxer/Adts.cpp => dom/media/platforms/agnostic/bytestreams/Adts.cpp
rename : dom/media/platforms/agnostic/mp4_demuxer/Adts.h => dom/media/platforms/agnostic/bytestreams/Adts.h
rename : dom/media/platforms/agnostic/mp4_demuxer/AnnexB.cpp => dom/media/platforms/agnostic/bytestreams/AnnexB.cpp
rename : dom/media/platforms/agnostic/mp4_demuxer/AnnexB.h => dom/media/platforms/agnostic/bytestreams/AnnexB.h
rename : dom/media/platforms/agnostic/mp4_demuxer/H264.cpp => dom/media/platforms/agnostic/bytestreams/H264.cpp
rename : dom/media/platforms/agnostic/mp4_demuxer/H264.h => dom/media/platforms/agnostic/bytestreams/H264.h
rename : dom/media/platforms/agnostic/mp4_demuxer/moz.build => dom/media/platforms/agnostic/bytestreams/moz.build
extra : rebase_source : 45b73271e0bbd3da897a5c218c35343fd28071a1
2017-11-16 15:05:17 +08:00
James Cheng
76c71cd4dd Bug 1415466 - Part2 - Fix compile error due to the interface change. r=cpearce
MozReview-Commit-ID: FOIrboj029C

--HG--
extra : rebase_source : eeb9d0c1b905cd38e2df8ad362c83138127bf441
2017-11-15 10:57:22 +08:00
James Cheng
cc08a7b5c3 Bug 1415466 - Part1 - Update content_decryption_module.h, there are no changes in the rest of headers. r=cpearce
MozReview-Commit-ID: HQUpqokQ3Eu

--HG--
extra : rebase_source : 80a0ac7adcd5a9d14fe8d9fe9f64e33eb5d286e1
2017-11-15 10:33:28 +08:00
James Cheng
464a5841ed Bug 1417332 - Convert CDM Error to CDM Exception when we got OnLegacySessionError from CDM. r=cpearce
MozReview-Commit-ID: FQRZAhNfOcV

--HG--
extra : rebase_source : 3255554058fb450710e8086a65e24eb6545e2b71
2017-11-15 15:55:39 +08: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
28fae71ddc Bug 1415401 - Part4 - Have GMPServiceParent::RecvLaunchGMP fill in the error description. r=cpearce
MozReview-Commit-ID: GQoV7g1uQeC

--HG--
extra : rebase_source : 21bae673ebb3284fd298e69a8c701bc79b9f4e63
2017-11-10 12:03:00 +08:00
James Cheng
9774850bfe Bug 1415401 - Part3 - Add an out parameter to LaunchGMP interface in ipdl to better know the error detail when failure. r=cpearce
MozReview-Commit-ID: BmiTYeQGIrm

--HG--
extra : rebase_source : 11070597467394a8764d8be4369226844b50c637
2017-11-10 11:28:45 +08:00
James Cheng
416a6083b2 Bug 1415401 - Part2 - Make GetServiceChildPromise rejection function accept MediaResult and propagate the error result to GetContentParent rejection function. r=cpearce
MozReview-Commit-ID: 4IjV9KGcsvd

--HG--
extra : rebase_source : 4177b93bc2af2908e701ecbf6ea1d439d24ea095
2017-11-09 18:01:01 +08:00
James Cheng
f8dcd36ce5 Bug 1415401 - Part1 - Make GetGMPContentParentPromise rejection function accept MediaResult. r=cpearce
MozReview-Commit-ID: CdDFgkDSomW

--HG--
extra : rebase_source : 1dec10d8b96ad31c0246427549d337cd8ba28c84
2017-11-09 17:21:59 +08:00
James Cheng
66e09cf477 Bug 1413480 - Check mCDM in ChromiumCDMChild::RecvXXX before dereferencing it. r=cpearce,kikuo
MozReview-Commit-ID: Dp4FOtZ8Yok

--HG--
extra : rebase_source : d22a854a9b883d008357ba6bbe5337f8eaf9fe8b
2017-11-08 15:44:34 +08:00
James Cheng
9406b5b8a2 Bug 1410689 - Early return before creating ChromiumCDM8BackwardsCompat to avoid leak. r=gerald
MozReview-Commit-ID: JQtJxBgzSFC

--HG--
extra : rebase_source : 3fb457062d773f1b44d3bc3bb7051a494e12a787
2017-10-23 11:29:58 +08:00
Jed Davis
70736cfb1b Bug 1401790 - Remove ProcessArchitecture from IPC. r=billm,jimm
This was used to support cross-architecture NPAPI plugins on OS X, but
we stopped supporting that in 54 (bug 1339182).

MozReview-Commit-ID: 2BcWYD6mguY

--HG--
extra : rebase_source : 6e509a3cc1f356ccd24f1459c43bc8fb66d7b0f4
2017-10-04 20:31:12 -06:00
Alex Gaynor
279b3dd5ce Bug 1409747 - fixed compilation on macOS with the sandbox disabled; r=haik
MozReview-Commit-ID: F9lNO8OPKS4

--HG--
extra : rebase_source : dbf7e1858f712182bab5c85fbd70b5b4293c5db5
2017-10-18 10:27:34 -04:00