mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: remove CDP-specific preferences from defaults for Firefox (#11477)
This commit is contained in:
parent
030598110f
commit
f8c94699c7
@ -220,12 +220,6 @@ function defaultProfilePreferences(
|
|||||||
// Make sure opening about:addons will not hit the network
|
// Make sure opening about:addons will not hit the network
|
||||||
'extensions.webservice.discoverURL': `http://${server}/dummy/discoveryURL`,
|
'extensions.webservice.discoverURL': `http://${server}/dummy/discoveryURL`,
|
||||||
|
|
||||||
// Temporarily force disable BFCache in parent (https://bit.ly/bug-1732263)
|
|
||||||
'fission.bfcacheInParent': false,
|
|
||||||
|
|
||||||
// Force all web content to use a single content process
|
|
||||||
'fission.webContentIsolationStrategy': 0,
|
|
||||||
|
|
||||||
// Allow the application to have focus even it runs in the background
|
// Allow the application to have focus even it runs in the background
|
||||||
'focusmanager.testmode': true,
|
'focusmanager.testmode': true,
|
||||||
// Disable useragent updates
|
// Disable useragent updates
|
||||||
|
@ -113,7 +113,21 @@ export class FirefoxLauncher extends ProductLauncher {
|
|||||||
|
|
||||||
await createProfile(SupportedBrowsers.FIREFOX, {
|
await createProfile(SupportedBrowsers.FIREFOX, {
|
||||||
path: userDataDir,
|
path: userDataDir,
|
||||||
preferences: extraPrefsFirefox,
|
preferences: {
|
||||||
|
...extraPrefsFirefox,
|
||||||
|
...(options.protocol === 'cdp'
|
||||||
|
? {
|
||||||
|
// Temporarily force disable BFCache in parent (https://bit.ly/bug-1732263)
|
||||||
|
'fission.bfcacheInParent': false,
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
// Force all web content to use a single content process. TODO: remove
|
||||||
|
// this once Firefox supports mouse event dispatch from the main frame
|
||||||
|
// context. Once this happens, webContentIsolationStrategy should only
|
||||||
|
// be set for CDP. See
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1773393
|
||||||
|
'fission.webContentIsolationStrategy': 0,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
let firefoxExecutable: string;
|
let firefoxExecutable: string;
|
||||||
|
@ -2765,12 +2765,24 @@
|
|||||||
"parameters": ["cdp", "firefox"],
|
"parameters": ["cdp", "firefox"],
|
||||||
"expectations": ["FAIL"]
|
"expectations": ["FAIL"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"testIdPattern": "[oopif.spec] OOPIF clickablePoint, boundingBox, boxModel should work for elements inside OOPIFs",
|
||||||
|
"platforms": ["darwin", "linux", "win32"],
|
||||||
|
"parameters": ["firefox", "webDriverBiDi"],
|
||||||
|
"expectations": ["PASS"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"testIdPattern": "[oopif.spec] OOPIF should keep track of a frames OOP state",
|
"testIdPattern": "[oopif.spec] OOPIF should keep track of a frames OOP state",
|
||||||
"platforms": ["darwin", "linux", "win32"],
|
"platforms": ["darwin", "linux", "win32"],
|
||||||
"parameters": ["firefox", "webDriverBiDi"],
|
"parameters": ["firefox", "webDriverBiDi"],
|
||||||
"expectations": ["PASS"]
|
"expectations": ["PASS"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"testIdPattern": "[oopif.spec] OOPIF should provide access to elements",
|
||||||
|
"platforms": ["darwin", "linux", "win32"],
|
||||||
|
"parameters": ["firefox", "webDriverBiDi"],
|
||||||
|
"expectations": ["PASS"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"testIdPattern": "[oopif.spec] OOPIF should support lazy OOP frames",
|
"testIdPattern": "[oopif.spec] OOPIF should support lazy OOP frames",
|
||||||
"platforms": ["darwin", "linux", "win32"],
|
"platforms": ["darwin", "linux", "win32"],
|
||||||
|
Loading…
Reference in New Issue
Block a user