Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot launch Foxhound 114.0.2 with Playwright 1.37 #179

Open
eleumasc opened this issue Nov 6, 2023 · 0 comments
Open

Cannot launch Foxhound 114.0.2 with Playwright 1.37 #179

eleumasc opened this issue Nov 6, 2023 · 0 comments
Assignees
Labels
playwright Issues with playwright integration

Comments

@eleumasc
Copy link

eleumasc commented Nov 6, 2023

When launching Foxhound with Playwright, the browser terminates immediately with the following output:

browserType.launch: Browser.enable): Browser closed.
==================== Browser output: ====================
<launching> /home/osboxes/foxhound-src/obj-tf-release/dist/bin/foxhound -no-remote -wait-for-browser -foreground -profile /tmp/playwright_firefoxdev_profile-ueZNgB -juggler-pipe -silent
<launched> pid=33916
[pid=33916][out] console.error: "Warning: unrecognized command line flag -wait-for-browser\n"
[pid=33916][out] console.error: "Warning: unrecognized command line flag -juggler-pipe\n"
[pid=33916][out] console.error: Region.sys.mjs: "Error fetching region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
[pid=33916][out] console.error: Region.sys.mjs: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.sys.mjs", 414))
[pid=33916] <process did exit: exitCode=0, signal=null>
[pid=33916] starting temporary directories cleanup
=========================== logs ===========================
<launching> /home/osboxes/foxhound-src/obj-tf-release/dist/bin/foxhound -no-remote -wait-for-browser -foreground -profile /tmp/playwright_firefoxdev_profile-ueZNgB -juggler-pipe -silent
<launched> pid=33916
[pid=33916][out] console.error: "Warning: unrecognized command line flag -wait-for-browser\n"
[pid=33916][out] console.error: "Warning: unrecognized command line flag -juggler-pipe\n"
[pid=33916][out] console.error: Region.sys.mjs: "Error fetching region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
[pid=33916][out] console.error: Region.sys.mjs: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.sys.mjs", 414))
[pid=33916] <process did exit: exitCode=0, signal=null>
[pid=33916] starting temporary directories cleanup
============================================================

Note: I also tried to run Foxhound with Puppeteer and the browser starts, but I need Playwright to use the page.initAddScript feature. The "equivalent" feature in Puppeteer, which is page.evaluateOnNewDocument, does not work for Firefox. I think this is because Puppeteer's page.evaluateOnNewDocument should invoke a CDP command that Firefox does not support. On the contrary, Playwright's page.initAddScript should rely on a WebDriver BiDi command supported by Firefox.

Foxhound: 114.0.2 (main: 5566a85, firefox-release: 4223211)
Playwright: 1.37.0
Puppeteer: 21.5.0
Node.js: 20.9.0
OS: Ubuntu 22.04 LTS

@tmbrbr tmbrbr self-assigned this Nov 23, 2023
@tmbrbr tmbrbr added the playwright Issues with playwright integration label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playwright Issues with playwright integration
Projects
None yet
Development

No branches or pull requests

2 participants