This thread is trying to answer question "Is it possible to set `browser.tabs.remote.useCrossOriginOpenerPolicy` to false in Firefox and how?"
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"
}
});
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 [email protected].