-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(webkit): allow running WebKit via WSL on Windows #36358
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
base: main
Are you sure you want to change the base?
Conversation
10a64dd
to
34667d2
Compare
Test results for "tests 1"2 fatal errors, not part of any test 0 passed, 4091 did not run Merge workflow run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very clean. I like it.
socket.on('error', reject); | ||
}); | ||
|
||
const [executable, ...args] = process.argv.slice(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though this is run by us, this should have proper error handling.
env: { | ||
...this.amendEnvironment(env, userDataDir, executable, browserArguments, options.channel), | ||
"WSLENV": "SOCKET_ADDRESS", | ||
'SOCKET_ADDRESS': (transportServer?.address() as any)?.port?.toString() ?? '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is our goal here if we don't have a transport?
bae0c10
to
18c9ba8
Compare
ba3bd42
to
48251d4
Compare
48251d4
to
62bd7f5
Compare
override amendEnvironment(env: Env, userDataDir: string, executable: string, browserArguments: string[], channel?: string): Env { | ||
return { | ||
...env, | ||
// CURL_COOKIE_JAR_PATH: path.join(channel === 'webkit-wsl' ? translatePathToWSL(userDataDir) : userDataDir, 'cookiejar.db'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if condition.
62bd7f5
to
e8c3971
Compare
No description provided.