mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
5734680cc7
On Linux some implementations of time(0) appear to be suffering from integer overflow and giving us the wrong dates. This causes the time we expose to the CDM to be wrong, and so licenses passed to the CDM are failing to authenticate, and Netflix is thus broken on some Linux systems. This is only happening in Firefox 54 and earlier, as in those versions we use the WidevineDecryptor to talk to the CDM. In 55 (in beta) and later we use the PChromiumCDM protocol to talk to the CDM. This doesn't use time(0) to get a time for the CDM, so it's immune to the problem here. So this patch makes the GetCurrentWallTime() implementation in WidevineDecryptor match the code currently being used on Nightly and Beta in the ChromiumCDMChild::GetCurrentWallTime() function. Since we use the PChromiumCDM protocol to talk to the CDM on Nightly and Beta by default, the WidevineDecryptor isn't actually being used on Nightly and Beta. So this patch will only cause a behaviour change in Release, which still uses the old backend. However it will make Release run the same code that we're running in Nightly and Beta, so it should be safe to uplift to Release. MozReview-Commit-ID: J58iDyinyQG --HG-- extra : rebase_source : dcdf4a846f7b007526aa626db24598942f13f01d |
||
---|---|---|
.. | ||
content_decryption_module.h | ||
moz.build | ||
WidevineAdapter.cpp | ||
WidevineAdapter.h | ||
WidevineDecryptor.cpp | ||
WidevineDecryptor.h | ||
WidevineDummyDecoder.cpp | ||
WidevineDummyDecoder.h | ||
WidevineFileIO.cpp | ||
WidevineFileIO.h | ||
WidevineUtils.cpp | ||
WidevineUtils.h | ||
WidevineVideoDecoder.cpp | ||
WidevineVideoDecoder.h | ||
WidevineVideoFrame.cpp | ||
WidevineVideoFrame.h |