Skip to content

Commit 148474f

Browse files
authored
chore: add PLAYWRIGHT_FIREFOX_UTILITY_PRINCIPAL escape hatch (#43718)
1 parent 71276fd commit 148474f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/playwright-core/src/server/firefox/ffBrowser.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ export class FFBrowserContext extends BrowserContext {
196196
promises.push(this._browser.session.send('Browser.setIgnoreHTTPSErrors', { browserContextId, ignoreHTTPSErrors: true }));
197197
if (this._options.javaScriptEnabled === false)
198198
promises.push(this._browser.session.send('Browser.setJavaScriptDisabled', { browserContextId, javaScriptDisabled: true }));
199+
if (process.env.PLAYWRIGHT_FIREFOX_UTILITY_PRINCIPAL)
200+
promises.push(this._browser.session.send('Browser.setIsolatedWorldExtendedPrincipal', { browserContextId, extendedPrincipal: true }));
199201
if (this._options.locale)
200202
promises.push(this._browser.session.send('Browser.setLocaleOverride', { browserContextId, locale: this._options.locale }));
201203
if (this._options.timezoneId)

0 commit comments

Comments
 (0)