Open Bug 1887657 Opened 4 months ago Updated 3 months ago

Firefox immediately deletes the widevine files...

Categories

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

Firefox 124
defect

Tracking

()

UNCONFIRMED

People

(Reporter: marietto2008, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0

Steps to reproduce:

We are trying to enable widevine for Firefox on FreeBSD. Widevine support appears be compiled and the instructions from :

https://old.reddit.com/r/firefox/comments/nrb6fk/fix_widevine_content_decryption_module_wont/

mostly work (in combination with media.gmp-widevinecdm.enabled/media.gmp-widevinecdm.visible keys), but Firefox immediately deletes the files, then it can't find the cdm because it just deleted it. So that is the part that has to be located and patched.

Actual results:

Firefox deletes the widevine files.

Expected results:

Firefox should not delete the widevine files.

Group: firefox-core-security → mozilla-employee-confidential
Component: Untriaged → Audio/Video: GMP
Product: Firefox → Core

The bug that I'm talking about is explained here :

https://github.com/i-rinat/gmp-widevine/blob/master/how-to-enable-on-firefox-47.md

where he says :

(For some reason Firefox could try to remove files in 1.4.8.885 directory. To prevent that you may remove write bit from directory permissions (chmod a-w 1.4.8.885), and also make the directory owned by root user.)

so,it has never been fixed...

Are you using a custom built Firefox binary by chance?

Flags: needinfo?(marietto2008)

One option that might help is to run the instance with media.gmp.log.level set to 5, and check the console for addon install logging information.

Severity: -- → S3
Severity: S3 → S2
Group: mozilla-employee-confidential

Can you give a look here ? ---> https://forums.freebsd.org/threads/firefox-stopped-to-support-drm.92809/post-649380

here there is the full discussion between me and the FreeBSD system admins with the goal to enable widevine on Firefox on FreeBSD.

Flags: needinfo?(marietto2008)

They talk about the bug even here :

https://forums.FreeBSD.org/threads/watching-spotify-and-listening-to-netflix-in-2023.90695/post-626087

---> It should be, but somebody would have to patch Firefox to enable Widevine. Neither me nor arrowd (who worked on the ports) are going to do it.

Marietto, try this -

  1. Open Firefox
  2. open about:config
  3. Create a new custom pref - 'media.gmp.log.level' and set the value of the pref to 5
  4. In the config search field, enter 'media.gmp'
  5. if you see a pref media.gmp-manager.lastCheck, delete it
  6. open the js console (ctrl-shift-i)
  7. open about:addons
  8. go to plugins and from the gear icon select check for updates

check the js console for anything related to checking for widevine updates and paste the output here.

Severity: S2 → S3

ok. I did everything as you have explained,but on the js console I don't see any message related to the widevine updates. Check by yourself :

https://ibb.co/1rwSJgM

but,widevine is enabled :

https://ibb.co/b1phCg9

I tried to watch some Netflix protected contents but I haven't able. The error is that I should use a more recent version of Firefox /but I'm already using version 124/. The messages that are on the Console are the following :

The connection to wss://push.prod.netflix.com/ws was interrupted while the page was loading. akiraClient.js.2ab5b150b7f67e667207.js:93:181547
GET
https://cdn.cookielaw.org/scripttemplates/otSDKStub.js
The resource from “https://cdn.cookielaw.org/scripttemplates/otSDKStub.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). 81464239
Uncaught (in promise)
Object { code: 7701, Nc: 1003, Ce: undefined, vy: undefined, mz: undefined, message: "Unable to create media keys system access. Operation is not supported", details: "Operation is not supported\n90349/c.prototype.c3b@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.GDb/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.GDb@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.Z3b/</</<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.$3b/</<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\npromise callback9717/c.prototype.$3b/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.$3b@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.Z3b/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\npromise callback9717/c.prototype.Z3b@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n9717/c.prototype.UB@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n5180/c.prototype.$ra@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n65264/c.prototype.yU@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n65264/c.prototype.zU/l<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n65264/c.prototype.zU@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n46286/c.prototype.zU@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n65264/c.prototype.SFb@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n65264/c.prototype.l3a@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n98960/c.prototype.m3a@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n3035/c.prototype.transform@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n86563/c.prototype.Cf@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n99070/c.prototype.wcb@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n99070/c.prototype.Fy@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.JY@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.oVa/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\npromise callback*18128/c.prototype.oVa@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.kja/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\nD@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\nVq@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.kja@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.Yzb@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.Aac@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.mDb@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.load/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\nc@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n22894/b.AGa/<@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n31073/c.prototype.wW@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n18128/c.prototype.load@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n41893/c.prototype.load@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n58343/c/this.load@https://assets.nflxext.com/.../cadmium-playercore-6.0044...\n3715/B<@https://assets.nflxext.com/.../akiraClient.js...\n83241/n.exports@https://assets.nflxext.com/.../akiraClient.js...\n3715/n.exports/</</<@https://assets.nflxext.com/.../akiraClient.js...\n97877/t.bindMiddlewareToSubState/</</<@https://assets.nflxext.com/.../akiraClient.js...\n42039/n.exports/</</<@https://assets.nflxext.com/.../akiraClient.js...\n97877/t.bindMiddlewareToSubState/</</<@https://assets.nflxext.com/.../akiraClient.js...\n28792/n.exports/</</<@https://assets.nflxext.com/.../akiraClient.js...\n97877/t.bindMiddlewareToSubState/</</<@https://assets.nflxext.com/.../akiraClient.js...\n60208/n.exports/</</</<@https://assets.nflxext.com/.../akiraClient.js...\n97877/t.bindMiddlewareToSubState/</</<@https://assets.nflxext.com/.../akiraClient.js...\n21082/n.exports/</</<@https://assets.nflxext.com/.../akiraClient.js...\n97877/t.bindMiddlewareToSubState/</</<@https://assets.nflxext.com/.../akiraClient.js...\n27594/n.exports/</</<@https://assets.nflxext.com/.../akiraClient.js...\n97877/t.bindMiddlewareToSubState/</</<@https://assets.nflxext.com/.../akiraClient.js...\n32917/t.createSavePrevStateMiddleware/</</<@https://assets.nflxext.com/.../akiraClient.js...\n", data: DOMException, Ht: undefined, n_b: undefined, … }

(In reply to marietto2008 from comment #8)

ok. I did everything as you have explained,but on the js console I don't see any message related to the widevine updates. Check by yourself :

https://ibb.co/1rwSJgM

This screenshot indicated the widevine plugin is not installed. It should be listed here. The key system error in the console indicates this as well.

So basically widevine is failing to install.

What I was hoping for through the steps in comment 7 was to record the logs for an attempt to install widevine, but that's not present. Could you go through these logging steps again with a fresh test profile created from about:profiles?

In the console, we should see a ton of messages about gmp updates taking place. That in turn would provide a clue as to what's going wrong.

You need to log in before you can comment on or make changes to this bug.