Skip to content

[Feature] How to pass a policies.json to firefox launch #18115

Open
@enrialonso

Description

@enrialonso

Hi! I need launch a firefox browser but with a somes policies.json. How can do this with playwright?

On Firefox you can create a distribution folder on the instalation path for Firefox and set the policies for the browser, here speak about this

I am test on Ubuntu 22 and my distribution firefox browser read the policies and apply then, but playwright for some reason can't read this and not apply the policies en the firefox browser launch.

Example policie:

{
 "policies": {
   "BlockAboutConfig": true
 }
}

What is the correct way to load the policies for firefox browser?

PD: I try put the policy of the binary download folder for the firefox browser for playwright and not work, any idea how to do this?

/home/user/.cache/ms-playwright/firefox-1357/firefox

And apologies for my basic english

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions