Rayrun
← Back to Discord Forum

How to set `browser.tabs.remote.useCrossOriginOpenerPolicy` to false in Firefox

.icesmarterposted in #help-playwright
Open in Discord

Hi, As the title, is it possible to set browser.tabs.remote.useCrossOriginOpenerPolicy to false in Firefox and how? much appreciated!

This thread is trying to answer question "Is it possible to set `browser.tabs.remote.useCrossOriginOpenerPolicy` to false in Firefox and how?"

1 reply

btw, it seems no use to use firefoxUserPrefs

const context = await pw.firefox.launchPersistentContext('',{
        headless: false,
         ignoreHTTPSErrors: true,
         bypassCSP: true,
        userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0",
        viewport: {
            width: 1920,
            height: 1040,
        },
        firefoxUserPrefs: {
            "network.cookie.cookieBehavior": 1,
            "browser.tabs.remote.useCrossOriginOpenerPolicy":false,
            "browser.tabs.remote.useCrossOriginOpenerPolicy":"false"
        }
    });

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.