Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to update firefox default prefs #1124

Closed
star-kashyap opened this issue Feb 26, 2020 · 3 comments
Closed

[Question] How to update firefox default prefs #1124

star-kashyap opened this issue Feb 26, 2020 · 3 comments
Assignees

Comments

@star-kashyap
Copy link

star-kashyap commented Feb 26, 2020

@arjun27 Can you please help unblocking us regarding below issue.
We are testing a streaming application and not able to play some contents (DRM) on firefox because media.gmp-manager.updateEnabled is set false in playwright.cfg file.

// Disable download and usage of OpenH264: and Widevine plugins
pref("media.gmp-manager.updateEnabled", false);

Is there a way to turn this pref true via api ?

@mxschmitt
Copy link
Member

As a workaround maybe you could use a custom user directory like shown here. There you can have a file with your user preferences: #917 (comment)


Maybe this can be standardised for all the browsers and added natively to the Playwright API, since:

  • Firefox has user preferences: about:config
  • Chromium has flags: chrome://flags
  • WebKit has experimental features not fully identical but goes into the direction

@aslushnikov aslushnikov removed the v1 label Apr 21, 2020
@pavelfeldman
Copy link
Member

You can use firefoxUserPrefs

@illright
Copy link
Contributor

For anyone coming to this thread in the future looking to change Firefox user preferences in the playwright.config.ts:

// playwright.config.ts
const config = defineConfig({
  projects: [
    {
      name: "firefox",
      use: {
        ...devices["Desktop Firefox"],

        launchOptions: {
          firefoxUserPrefs: { "dom.webgpu.enabled": true },
        },
      },
    },
  ]
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants