Closed Bug 1892887 Opened 1 year ago Closed 1 year ago

gmp-clearkey doesn't work if the binary is called something other than "firefox"

Categories

(Core :: Audio/Video: GMP, defect)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox-esr115 --- fixed
firefox126 --- fixed
firefox127 --- fixed

People

(Reporter: jcristau, Assigned: glandium)

References

Details

Crash Data

Attachments

(3 files)

Initially reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069683:

It seems that the gmp code does not expect the executable to be called something other than firefox:

GMPChild::MakeCDMHostVerificationPaths calls AppendHostPath with /usr/lib/firefox-esr/firefox, but that file doesn't exist, so AppendHostPath fails, and we end up calling into VerifyCdmHost_0 with aNumFiles==2, which fails the assertion that it's equal to NumExpectedHostFiles (4).

Initially seen with Debian's "firefox-esr" package, where the binary is /usr/lib/firefox-esr/firefox-esr; Mike suggested I file this upstream since it could affect others like seamonkey.

This probably should use MOZ_APP_NAME. I don't think we have anything returning the executable name in the directory service, although it would be convenient to avoid the platform-specific stuff.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/8b3f4c19c12c Use MOZ_APP_NAME and XUL_DLL in GMPChild::MakeCDMHostVerificationPaths. r=media-playback-reviewers,padenot
Attachment #9398314 - Flags: approval-mozilla-beta?
Attachment #9398315 - Flags: approval-mozilla-esr115?

beta Uplift Approval Request

  • User impact if declined: CDM doesn't work properly when application name is not firefox
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: It's a no-op for mozilla builds
  • String changes made/needed: N/A
  • Is Android affected?: no

esr115 Uplift Approval Request

  • User impact if declined: CDM doesn't work properly when application name is not firefox
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: It's a no-op for mozilla builds
  • String changes made/needed: N/A
  • Is Android affected?: no
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Attachment #9398314 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9398315 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+

:glandium this failed to land on ESR115. If you could take a look?
https://lando.services.mozilla.com/D208456/

Flags: needinfo?(mh+mozilla)

(In reply to Donal Meehan [:dmeehan] from comment #10)

:glandium this failed to land on ESR115. If you could take a look?
https://lando.services.mozilla.com/D208456/

Refreshed the patch.

Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: