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

265 Коммитов

Автор SHA1 Сообщение Дата
alwu 26d844a92e Bug 1878713 - part2 : implement GetStatusForPolicy for ClearKey CDM. r=media-playback-reviewers,jolin
This patch implement GetStatusForPolicy for ClearKey CDM so that we can
extend our test coverage.

Differential Revision: https://phabricator.services.mozilla.com/D200757
2024-02-10 00:24:32 +00:00
Narcis Beleuzu 4701f6b0f9 Backed out 5 changesets (bug 1878713, bug 1878039) for wpt failure on clearkey-check-status-for-hdcp.https.html
Backed out changeset ba6c8f006d21 (bug 1878039)
Backed out changeset 825190c91d7a (bug 1878039)
Backed out changeset dda9fe6e9007 (bug 1878039)
Backed out changeset 1ad9eddcde2a (bug 1878713)
Backed out changeset 693b73304431 (bug 1878713)
2024-02-09 03:16:47 +02:00
alwu 10c6981b6c Bug 1878713 - part2 : implement GetStatusForPolicy for ClearKey CDM. r=media-playback-reviewers,jolin
This patch implement GetStatusForPolicy for ClearKey CDM so that we can
extend our test coverage.

Differential Revision: https://phabricator.services.mozilla.com/D200757
2024-02-08 23:25:02 +00:00
alwu 35fe5d5edc Bug 1828018 - move clearkey implementation out from the gmp-clear folder for the reusing purpose. r=aosmond
We're going to implement a Media Foundation based ClearKey CDM which
also needs to have same ability of our currnet GMP ClearyKey. In order
to avoid code duplication, this patch move the Clearkey implementation
out from the gmp-clearkey folder, and make them a library for the reuse
purpose.

Differential Revision: https://phabricator.services.mozilla.com/D175434
2024-01-04 04:13:01 +00:00
Cristian Tuns 687f62e227 Backed out 2 changesets (bug 1861618, bug 1856240) for causing build bustages in ClearKeyUtils.cpp CLOSED TREE
Backed out changeset 0ee046556e13 (bug 1856240)
Backed out changeset fb450a287979 (bug 1861618)
2023-11-01 18:03:05 -04:00
Tawah Peggy 3080a029fe Bug 1856240 - Delete out[i] since its never used. r=sylvestre
Depends on D192310

Differential Revision: https://phabricator.services.mozilla.com/D192314
2023-11-01 20:33:21 +00:00
serge-sans-paille e035801cdc Bug 1826752 - Make media/gmp-clearkey/0.1 buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174878
2023-04-18 09:42:14 +00:00
serge-sans-paille c7cd4a02f6 Bug 1826397 - ClearKeyDecryptor::Decrypt only decrypt first sample in CBCS mode r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174664
2023-04-17 13:25:23 +00:00
Stanca Serban cefd926755 Backed out 9 changesets (bug 1826760, bug 1826758, bug 1826752, bug 1826756, bug 1826759, bug 1826761, bug 1826757, bug 1826753, bug 1826754) for causing bp-hybrid bustages in ClearKeyDecryptionManager.cpp.
CLOSED TREE

Backed out changeset 210012222277 (bug 1826761)
Backed out changeset e364bb149efa (bug 1826760)
Backed out changeset e456e2f9966c (bug 1826759)
Backed out changeset 2b6ff545f4a3 (bug 1826758)
Backed out changeset 95fe1de8ba00 (bug 1826757)
Backed out changeset f8af52d7f2a1 (bug 1826756)
Backed out changeset 2646e773f098 (bug 1826754)
Backed out changeset 58d5d74b1835 (bug 1826753)
Backed out changeset 8567e6595acc (bug 1826752)
2023-04-17 13:52:39 +03:00
serge-sans-paille f2890518c7 Bug 1826752 - Make media/gmp-clearkey/0.1 buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174878
2023-04-17 10:11:55 +00:00
Mike Hommey 49275714a9 Bug 1766347 - Fix comma warnings in Windows builds. r=media-playback-reviewers,bryce
media/gmp-clearkey/0.1/WMFH264Decoder.cpp(145,24): error: possible misuse of comma operator here [-Werror,-Wcomma]
  while (type = nullptr,
                       ^
media/gmp-clearkey/0.1/WMFH264Decoder.cpp(145,10): note: cast expression to void to silence warning
  while (type = nullptr,
         ^~~~~~~~~~~~~~
         static_cast<void>( )

Differential Revision: https://phabricator.services.mozilla.com/D144641
2022-04-26 02:04:58 +00:00
Timur Valeev afaa2381ce Bug 1759846 - the 'empty' method should be used to check for emptiness. r=sylvestre
In ClearKeyUtils.cpp: the 'empty' method should be used to check
for emptiness instead of 'size'

Differential Revision: https://phabricator.services.mozilla.com/D141956
2022-03-24 17:08:50 +00:00
Mike Hommey 526e84fa47 Bug 1757122 - Replace unqualified uses of std::move. r=xpcom-reviewers,media-playback-reviewers,mccr8,bryce
Clang trunk added a warning about unqualified uses of std::move.
https://reviews.llvm.org/D119670

Differential Revision: https://phabricator.services.mozilla.com/D139681
2022-03-01 04:15:26 +00:00
Mike Hommey 1acc37c7a6 Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-30 20:56:43 +00:00
Iulian Moraru b469802d84 Backed out changeset 7f9b4b6191ad (bug 1747756) for causing multiple failures. CLOSED TREE 2021-12-30 01:59:26 +02:00
Mike Hommey cb50a5444f Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-29 22:18:52 +00:00
Bryce Seager van Dyk 078aa06342 Bug 1727133 - Handle clear key cbcs media with 0:0 pattern. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D123359
2021-08-25 20:41:43 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Bryce Seager van Dyk fa930a9e95 Bug 1726615 - Reorder includes in ClearKey files. r=alwu
Reorder includes to match Google C++ style. The follow decisions were made to
resolve ambiguities.
- The pssh parser and clearkey are considered part of mozilla-central/Gecko and
  so have their includes grouped into the 'your project' includes at the end of
  includes. I.e. they're grouped with other mozilla-central headers.
- NSS and the CDM headers are considered as coming from other libs, so are
  placed in a block preceding the mozilla-central's.

I think everything else is decided by using the style guide and by Mozilla using
case sensitive sorting.

This also changes a few instances of using "systemheader.h" to <systemheader.h>,
which is more in line with the style guide.

Differential Revision: https://phabricator.services.mozilla.com/D123230
2021-08-20 18:00:12 +00:00
Bryce Seager van Dyk 4416660111 Bug 1711912 - Implement output protection query in Clearkey CDM. r=alwu
This implements logic in the clear key CDM to emulate protection queries. The
CDM will only do so if configured using the new test key system added prior to
this patch.

Differential Revision: https://phabricator.services.mozilla.com/D122633
2021-08-19 17:14:09 +00:00
Bryce Seager van Dyk b7fc1c78ef Bug 1711912 - Set flag on clear key CDM if created using special protection query key system. r=alwu
This lets the clear key CDM behave differently if it's created with the
protection query key system. The different behaviour will be implemented in
following patches and gated behind the member set here.

Differential Revision: https://phabricator.services.mozilla.com/D122632
2021-08-19 17:14:08 +00:00
Bryce Seager van Dyk 5d9f888ba9 Bug 1711912 - Reorder ClearKeySessionManager include order. r=alwu
Fix this up before making further changes in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D122630
2021-08-19 17:14:08 +00:00
Marian-Vasile Laza d479928bd4 Backed out 6 changesets (bug 1711912) for causing build bustages on MediaKeySystemAccessManager.cpp. CLOSED TREE
Backed out changeset b07f45562c35 (bug 1711912)
Backed out changeset 3e825fc0f7d3 (bug 1711912)
Backed out changeset 964d14b3352e (bug 1711912)
Backed out changeset b941cfb1f5ae (bug 1711912)
Backed out changeset fde1d605fce1 (bug 1711912)
Backed out changeset b135eb6bb7db (bug 1711912)
2021-08-19 01:46:57 +03:00
Bryce Seager van Dyk d5505afbf2 Bug 1711912 - Implement output protection query in Clearkey CDM. r=alwu
This implements logic in the clear key CDM to emulate protection queries. The
CDM will only do so if configured using the new test key system added prior to
this patch.

Differential Revision: https://phabricator.services.mozilla.com/D122633
2021-08-18 21:28:28 +00:00
Bryce Seager van Dyk 40dfee6f0d Bug 1711912 - Set flag on clear key CDM if created using special protection query key system. r=alwu
This lets the clear key CDM behave differently if it's created with the
protection query key system. The different behaviour will be implemented in
following patches and gated behind the member set here.

Differential Revision: https://phabricator.services.mozilla.com/D122632
2021-08-18 21:28:27 +00:00
Bryce Seager van Dyk 3ed8e4dcf3 Bug 1711912 - Reorder ClearKeySessionManager include order. r=alwu
Fix this up before making further changes in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D122630
2021-08-18 21:28:26 +00:00
Marian-Vasile Laza 21972e53f0 Backed out 6 changesets (bug 1711912) for causing build bustages on MediaKeySystemAccessManager.cpp. CLOSED TREE
Backed out changeset a3c678c2c608 (bug 1711912)
Backed out changeset db34f1ec3a86 (bug 1711912)
Backed out changeset 10639e1dbb6e (bug 1711912)
Backed out changeset f6aeda8b4fca (bug 1711912)
Backed out changeset 2aa33cd01f67 (bug 1711912)
Backed out changeset 0a2af5ba370f (bug 1711912)
2021-08-18 23:03:28 +03:00
Bryce Seager van Dyk d015a6fef8 Bug 1711912 - Implement output protection query in Clearkey CDM. r=alwu
This implements logic in the clear key CDM to emulate protection queries. The
CDM will only do so if configured using the new test key system added prior to
this patch.

Differential Revision: https://phabricator.services.mozilla.com/D122633
2021-08-18 18:38:16 +00:00
Bryce Seager van Dyk 96e86f6b33 Bug 1711912 - Set flag on clear key CDM if created using special protection query key system. r=alwu
This lets the clear key CDM behave differently if it's created with the
protection query key system. The different behaviour will be implemented in
following patches and gated behind the member set here.

Differential Revision: https://phabricator.services.mozilla.com/D122632
2021-08-18 18:38:15 +00:00
Bryce Seager van Dyk 57085783e7 Bug 1711912 - Reorder ClearKeySessionManager include order. r=alwu
Fix this up before making further changes in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D122630
2021-08-18 18:38:14 +00:00
Mike Hommey 9c0fcac97c Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges
Instead of snprintf.

Because some standalone code uses those functions directly or indirectly,
and PrintfTarget lives in mozglue, they now need to depend on mozglue
instead of mfbt. Except logalloc/replay, which cherry-picks what it
uses, and the updater, for which we keep using vsnprintf.

Differential Revision: https://phabricator.services.mozilla.com/D103730
2021-03-10 23:52:40 +00:00
Andreea Pavel 64289058b6 Backed out 5 changesets (bug 1690167) for failing xpcshell at bootstrapSvc.js on a CLOSED TREE
Backed out changeset d28c0f11743f (bug 1690167)
Backed out changeset 3b2bebed9128 (bug 1690167)
Backed out changeset 7e925e90a251 (bug 1690167)
Backed out changeset f85934a2b7ad (bug 1690167)
Backed out changeset 6d83474e81bb (bug 1690167)
2021-02-17 07:10:58 +02:00
Mike Hommey 622b111f9e Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges
Instead of snprintf.

Because some standalone code uses those functions directly or indirectly,
and PrintfTarget lives in mozglue, they now need to depend on mozglue
instead of mfbt. Except logalloc/replay, which cherry-picks what it
uses.

Differential Revision: https://phabricator.services.mozilla.com/D103730
2021-02-16 21:20:04 +00:00
Mihai Alexandru Michis 9154148880 Backed out 4 changesets (bug 1690167) for causing cppunit failures in TestIntegerPrintfMacros.
CLOSED TREE

Backed out changeset 27dee66eba83 (bug 1690167)
Backed out changeset cfffb092a39f (bug 1690167)
Backed out changeset 87b2a2a66fd9 (bug 1690167)
Backed out changeset cac4879f50b4 (bug 1690167)
2021-02-13 00:07:00 +02:00
Mike Hommey 47675f5460 Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges
Instead of snprintf.

Because some standalone code uses those functions directly or indirectly,
and PrintfTarget lives in mozglue, they now need to depend on mozglue
instead of mfbt. Except logalloc/replay, which cherry-picks what it
uses.

Differential Revision: https://phabricator.services.mozilla.com/D103730
2021-02-12 20:21:50 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Mike Hommey 91d99a2d66 Bug 1671376 - Disable -Wmissing-braces on clang < 6. r=firefox-build-system-reviewers,dmajor
The warning is broken in older versions of clang. It also turns out we
were disabling it locally for some directories because of this very
problem.

A few local disable rules stay under accessible/ because they do hide
actual warnings from code generated by MIDL.

Differential Revision: https://phabricator.services.mozilla.com/D94262
2020-10-22 01:31:19 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Simon Giesecke 1e02318b49 Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
David Major dd955b19e7 Bug 1646206 - Fix a vsnprintf lint in ClearKeyUtils.cpp r=bryce
We have a clang-plugin check that discourages raw `vsnprintf`, but for some reason it doesn't catch this before clang 11. I _think_ it's related to earlier versions not being able to see that `len` is a constant, but I'm not really sure.

Differential Revision: https://phabricator.services.mozilla.com/D79918
2020-06-16 23:06:22 +00:00
Bryce Seager van Dyk defad44097 Bug 1623651 - Update enums that have changed with CDM header bump. r=alwu,dminor
The CDM header bump has moved some enums, as well as using enum classes instead
of old style enums. This patch updates consumers of these enums to be compatible
with the new headers.

Drive by remove `using namespace cdm` from a couple of files as
- In some places I'd already been using fully qualified names.
- I prefer the fully qualified names as they make it clear when enums are coming
  from the cdm namespace and `cdm::` is not a particularly more verbose thing to
  have on identifiers.

Differential Revision: https://phabricator.services.mozilla.com/D78343
2020-06-08 19:02:05 +00:00
Omri Sarig a60ad3ae44 Bug 1626787 - ClearKeyDecryptionManager.cpp check emptiness by empty instead of by size. r=sylvestre
Emptiness of values should be checked using the `empty` method, and not
by comparing the size to 0. Fix such case in the code of
ClearKeyDecryptionManager.cpp module.

Differential Revision: https://phabricator.services.mozilla.com/D70206

--HG--
extra : moz-landing-system : lando
2020-04-08 15:47:17 +00:00
Jason ea383d394a Bug 1516673 - Adds CBCS encryption scheme functionality. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D60053

--HG--
extra : moz-landing-system : lando
2020-03-26 20:53:59 +00:00
Simon Giesecke 810fd1f507 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in media. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D65494

--HG--
extra : moz-landing-system : lando
2020-03-06 09:21:47 +00:00
Alex Henrie 7f77eac87f Bug 1608657 - Drop version check from WMFDecoderDllName and inline when possible. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D59604

--HG--
extra : moz-landing-system : lando
2020-01-14 04:03:28 +00:00
shindli a17667ebcc Backed out changeset 1b423cf63926 (bug 1608657) for causing windows build bustages CLOSED TREE 2020-01-14 03:59:22 +02:00
Alex Henrie f2831b31e1 Bug 1608657 - Drop version check from WMFDecoderDllName and inline when possible. r=jya
Only Windows 7 and later are now supported.

Differential Revision: https://phabricator.services.mozilla.com/D59604

--HG--
extra : moz-landing-system : lando
2020-01-14 01:18:49 +00:00