mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-27 09:27:20 +02:00
Disable the WebDriver BiDi protocol for Chrome
This should avoid the timeouts and OOM issues we have on the Linux bot, which started since PR #18473.
This commit is contained in:
parent
b4f368c180
commit
100fafa9fb
@ -904,6 +904,10 @@ async function startBrowser({
|
|||||||
const printFile = path.join(tempDir, "print.pdf");
|
const printFile = path.join(tempDir, "print.pdf");
|
||||||
|
|
||||||
if (browserName === "chrome") {
|
if (browserName === "chrome") {
|
||||||
|
// Run tests with the CDP protocol for Chrome only given that the Linux bot
|
||||||
|
// crashes with timeouts or OOM if WebDriver BiDi is used (issue #17961).
|
||||||
|
options.protocol = "cdp";
|
||||||
|
|
||||||
// avoid crash
|
// avoid crash
|
||||||
options.args = ["--no-sandbox", "--disable-setuid-sandbox"];
|
options.args = ["--no-sandbox", "--disable-setuid-sandbox"];
|
||||||
// silent printing in a pdf
|
// silent printing in a pdf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user