Closed
Bug 1280743
Opened 9 years ago
Closed 9 years ago
dom/media/gmp/GMPParent.cpp fails to compile with --disable-eme
Categories
(Core :: Audio/Video: GMP, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla50
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
Details
Attachments
(1 file)
2.95 KB,
patch
|
cpearce
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
dom/media/gmp/GMPParent.cpp:43:10: fatal error: 'mozilla/dom/WidevineCDMManifestBinding.h' file not found
#include "mozilla/dom/WidevineCDMManifestBinding.h"
^
Assignee | ||
Comment 1•9 years ago
|
||
This works for me, but I don't know this code at all...
Attachment #8763317 -
Flags: review?(cpearce)
Assignee: nobody → mats
Updated•9 years ago
|
Rank: 25
Priority: -- → P2
Updated•9 years ago
|
Attachment #8763317 -
Flags: review?(cpearce) → review+
Comment on attachment 8763317 [details] [diff] [review]
fix?
Review of attachment 8763317 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/media/gmp/GMPParent.cpp
@@ +819,5 @@
> manifestFile->AppendRelativePath(NS_LITERAL_STRING("manifest.json"));
> return ReadChromiumManifestFile(manifestFile);
> +#endif
> +
> + return GenericPromise::CreateAndReject(NS_ERROR_FAILURE, __func__);
Fly-by comment: When MOZ_EME is #defined, this last 'return' will be dead code after the previous 'return'! I would suggest using #else...#endif around it instead.
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/24999edead4e
Put Widevine stuff under #ifdef MOZ_EME to make this file compile under --disable-eme. r=cpearce
Assignee | ||
Comment 4•9 years ago
|
||
Good catch Gerald, I pushed with the #else as suggested.
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Comment 6•9 years ago
|
||
Chris -- Is Fx 49 affected? If so, does it make sense to uplift this to Fx 49?
Flags: needinfo?(cpearce)
Comment 7•9 years ago
|
||
(In reply to Maire Reavy (On PTO July 23rd to 31st) from comment #6)
> Chris -- Is Fx 49 affected? If so, does it make sense to uplift this to Fx
> 49?
Gerald: Can you uplift this if the build is broken without it please?
Flags: needinfo?(cpearce) → needinfo?(gsquelart)
49 is not affected, as the Widevine code there hides behind '#ifdef MOZ_WIDEVINE_EME', including the #include line that caused problem in 50.
status-firefox49:
--- → unaffected
Flags: needinfo?(gsquelart)
Comment 10•9 years ago
|
||
Actually the include guard has been removed:
https://hg.mozilla.org/releases/mozilla-beta/diff/7b8879ab0e02/dom/media/gmp/GMPParent.cpp
Updated•9 years ago
|
![]() |
||
Comment 11•9 years ago
|
||
I had put up a patch for beta 49 in bug 1296627 (not fully tested yet). Is it useful here?
![]() |
||
Comment 12•9 years ago
|
||
(In reply to kevink9876543 from comment #11)
> I had put up a patch for beta 49 in bug 1296627 (not fully tested yet). Is
> it useful here?
Tested my local beta 49 builds w/ attachment 8783123 [details] [diff] [review] and all is working as expected. I'm confused though because the patch in this bug is much smaller. What effect are the "extra" parts in my patch have, if any? Is it Gecko-49-specific?
Flags: needinfo?(mats)
Assignee | ||
Comment 13•9 years ago
|
||
Gerald, can you check v49 again and uplift if necessary, thanks!
Flags: needinfo?(mats) → needinfo?(gsquelart)
Comment on attachment 8763317 [details] [diff] [review]
fix?
Approval Request Comment
[Feature/regressing bug #]: --disable-eme
[User impact if declined]: Not possible to build Firefox when EME is not wanted
[Describe test coverage new/current, TreeHerder]: In 50 for 2 months
[Risks and why]: No risk that I can see, as this is just disabling the code dealing with Widevine
[String/UUID change made/needed]: None
Note that this was initially (end July) not needed in 49, but then bug 1276132 uplifted some EME code to 49 on August 10, including the part that was failing to build with --disable-eme.
Flags: needinfo?(gsquelart)
Attachment #8763317 -
Flags: approval-mozilla-beta?
(In reply to kevink9876543 from comment #12)
> I'm confused though because the
> patch in this bug [compared to bug 1296627] is much smaller. What effect are the "extra" parts in my
> patch have, if any?
The patch in bug 1296627 also #ifdef'd-out the full Widevine-related function declarations and definitions, instead of just not calling them.
I'm choosing the patch in this bug here for uplift, because it is touching less code, and it has been in the codebase for 2 months already so it carries lower risk.
Comment 16•9 years ago
|
||
Hi :gerald,
Since there is no feature/regression bug associated with this bug, if this is not in beta, will it be a critical issue?
Flags: needinfo?(gsquelart)
Assignee | ||
Comment 17•9 years ago
|
||
I suspect there are some downstream consumers (the Tor browser?) that use
--disable-eme. Not breaking them might be a reason to uplift.
![]() |
||
Comment 18•9 years ago
|
||
(In reply to Gerry Chang [:gchang] from comment #16)
> Since there is no feature/regression bug associated with this bug,
Maybe it wasn't quite made clear. There *is* a regressing bug here, that would be bug 1276132.
Thank you kevink, and :emk (comment 10). There is indeed a regression from bug 1276132 when it was uplifted to beta on August 10 (as I implied in my uplift request in comment 14).
Blocks: 1276132
Flags: needinfo?(gsquelart)
Comment 20•9 years ago
|
||
Comment on attachment 8763317 [details] [diff] [review]
fix?
We want to be able to disable this for non-eme builds, please uplift to beta.
Attachment #8763317 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 21•9 years ago
|
||
bugherder uplift |
You need to log in
before you can comment on or make changes to this bug.
Description
•