-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ext/node): do not apply socket-init-workaround to ipc socket (#27779
) This PR resolves 2 issues of Socket class of node compat (both are related to playwright) Currently `browser.launch()` of playwright is not working. `browser.launch` opens PipeTransport (which is based on Pipe/IPC socket) with the browser process. But that pipe doesn't start reading the data because of the workaround #27662 (which pauses the socket at the beginning if it's from playwright-core). This PR fixes this issue by checking whether the given handle is `ipc` handle or not. Another issue is that sock-init-workaround for TLS connection stopped working at #27707 because of the changes of TLS socket initialization steps. This change fixes the issue by correctly returning the function in workaround path. The added case `specs::npm::playwright_compat` checks both fixes with actual playwright and playwright-core packages. `browser.launch` issues closes #16899 closes #27623 `https.request` issue closes #27658
- Loading branch information
1 parent
86a79f4
commit 41406d6
Showing
12 changed files
with
310 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,109 @@ | ||
{ | ||
"name": "fsevents", | ||
"description": "Native Access to MacOS FSEvents", | ||
"dist-tags": { | ||
"latest": "2.3.3" | ||
}, | ||
"versions": { | ||
"2.3.3": { | ||
"2.3.2": { | ||
"name": "fsevents", | ||
"version": "2.3.3", | ||
"description": "Native Access to MacOS FSEvents", | ||
"main": "fsevents.js", | ||
"types": "fsevents.d.ts", | ||
"version": "2.3.2", | ||
"license": "MIT", | ||
"_id": "[email protected]", | ||
"bugs": { | ||
"url": "https://github.com/fsevents/fsevents/issues" | ||
}, | ||
"os": [ | ||
"darwin" | ||
], | ||
"dist": { | ||
"shasum": "8a526f78b8fdf4623b709e0b975c52c24c02fd1a", | ||
"tarball": "http://localhost:4260/fsevents/fsevents-2.3.2.tgz", | ||
"fileCount": 6, | ||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", | ||
"unpackedSize": 156422 | ||
}, | ||
"main": "fsevents.js", | ||
"types": "fsevents.d.ts", | ||
"engines": { | ||
"node": "^8.16.0 || ^10.6.0 || >=11.0.0" | ||
}, | ||
"gitHead": "a7f5d00939b74e141a73131468c4ce48ee0f2197", | ||
"gypfile": true, | ||
"scripts": { | ||
"clean": "node-gyp clean && rm -f fsevents.node", | ||
"build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean", | ||
"test": "/bin/bash ./test.sh 2>/dev/null", | ||
"prepublishOnly": "npm run build", | ||
"install": "node-gyp rebuild" | ||
"build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean", | ||
"clean": "node-gyp clean && rm -f fsevents.node", | ||
"install": "node-gyp rebuild", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/fsevents/fsevents.git" | ||
"url": "git+https://github.com/fsevents/fsevents.git", | ||
"type": "git" | ||
}, | ||
"_npmVersion": "6.14.10", | ||
"description": "Native Access to MacOS FSEvents", | ||
"directories": {}, | ||
"_nodeVersion": "12.20.1", | ||
"_hasShrinkwrap": false, | ||
"devDependencies": { | ||
"node-gyp": "^6.1.0" | ||
} | ||
}, | ||
"2.3.3": { | ||
"name": "fsevents", | ||
"version": "2.3.3", | ||
"license": "MIT", | ||
"_id": "[email protected]", | ||
"bugs": { | ||
"url": "https://github.com/fsevents/fsevents/issues" | ||
}, | ||
"devDependencies": { | ||
"node-gyp": "^9.4.0" | ||
}, | ||
"gypfile": true, | ||
"gitHead": "2db891e51aa0f2975c5eaaf6aa30f13d720a830a", | ||
"_id": "[email protected]", | ||
"_nodeVersion": "18.17.1", | ||
"_npmVersion": "9.6.7", | ||
"os": [ | ||
"darwin" | ||
], | ||
"dist": { | ||
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", | ||
"shasum": "cac6407785d03675a2a5e1a5305c697b347d90d6", | ||
"tarball": "http://localhost:4260/fsevents/fsevents-2.3.3.tgz", | ||
"fileCount": 6, | ||
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", | ||
"unpackedSize": 173224 | ||
}, | ||
"main": "fsevents.js", | ||
"types": "fsevents.d.ts", | ||
"engines": { | ||
"node": "^8.16.0 || ^10.6.0 || >=11.0.0" | ||
}, | ||
"gitHead": "2db891e51aa0f2975c5eaaf6aa30f13d720a830a", | ||
"gypfile": true, | ||
"scripts": { | ||
"test": "/bin/bash ./test.sh 2>/dev/null", | ||
"build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean", | ||
"clean": "node-gyp clean && rm -f fsevents.node", | ||
"install": "node-gyp rebuild", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"repository": { | ||
"url": "git+https://github.com/fsevents/fsevents.git", | ||
"type": "git" | ||
}, | ||
"_npmVersion": "9.6.7", | ||
"description": "Native Access to MacOS FSEvents", | ||
"directories": {}, | ||
"_hasShrinkwrap": false | ||
"_nodeVersion": "18.17.1", | ||
"_hasShrinkwrap": false, | ||
"devDependencies": { | ||
"node-gyp": "^9.4.0" | ||
} | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/fsevents/fsevents.git" | ||
}, | ||
"readmeFilename": "README.md", | ||
"homepage": "https://github.com/fsevents/fsevents", | ||
"bugs": { | ||
"url": "https://github.com/fsevents/fsevents/issues" | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"homepage": "https://github.com/fsevents/fsevents", | ||
"repository": { | ||
"url": "git+https://github.com/fsevents/fsevents.git", | ||
"type": "git" | ||
}, | ||
"description": "Native Access to MacOS FSEvents", | ||
"readmeFilename": "README.md" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"name": "playwright-core", | ||
"dist-tags": { | ||
"latest": "1.49.1" | ||
}, | ||
"versions": { | ||
"1.49.1": { | ||
"name": "playwright-core", | ||
"version": "1.49.1", | ||
"author": { | ||
"name": "Microsoft Corporation" | ||
}, | ||
"license": "Apache-2.0", | ||
"_id": "[email protected]", | ||
"bugs": { | ||
"url": "https://github.com/microsoft/playwright/issues" | ||
}, | ||
"bin": { | ||
"playwright-core": "cli.js" | ||
}, | ||
"dist": { | ||
"shasum": "32c62f046e950f586ff9e35ed490a424f2248015", | ||
"tarball": "http://localhost:4260/playwright-core/playwright-core-1.49.1.tgz", | ||
"fileCount": 337, | ||
"integrity": "sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==", | ||
"attestations": { | ||
"url": "https://registry.npmjs.org/-/npm/v1/attestations/[email protected]", | ||
"provenance": { | ||
"predicateType": "https://slsa.dev/provenance/v1" | ||
} | ||
}, | ||
"unpackedSize": 7966574 | ||
}, | ||
"types": "types/types.d.ts", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.mjs", | ||
"default": "./index.js", | ||
"require": "./index.js" | ||
}, | ||
"./lib/utils": "./lib/utils/index.js", | ||
"./lib/server": "./lib/server/index.js", | ||
"./package.json": "./package.json", | ||
"./lib/zipBundle": "./lib/zipBundle.js", | ||
"./types/structs": "./types/structs.d.ts", | ||
"./types/protocol": "./types/protocol.d.ts", | ||
"./lib/cli/program": "./lib/cli/program.js", | ||
"./lib/utilsBundle": "./lib/utilsBundle.js", | ||
"./lib/outofprocess": "./lib/outofprocess.js", | ||
"./lib/image_tools/stats": "./lib/image_tools/stats.js", | ||
"./lib/image_tools/compare": "./lib/image_tools/compare.js", | ||
"./lib/server/registry/index": "./lib/server/registry/index.js", | ||
"./lib/image_tools/colorUtils": "./lib/image_tools/colorUtils.js", | ||
"./lib/remote/playwrightServer": "./lib/remote/playwrightServer.js", | ||
"./lib/image_tools/imageChannel": "./lib/image_tools/imageChannel.js" | ||
}, | ||
"gitHead": "88bc8afc78ea6ff13d2bbb312b99eb924962766c", | ||
"repository": { | ||
"url": "git+https://github.com/microsoft/playwright.git", | ||
"type": "git" | ||
}, | ||
"_npmVersion": "10.8.2", | ||
"description": "A high-level API to automate web browsers", | ||
"directories": {}, | ||
"_nodeVersion": "18.20.5", | ||
"_hasShrinkwrap": false | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/microsoft/playwright/issues" | ||
}, | ||
"author": { | ||
"name": "Microsoft Corporation" | ||
}, | ||
"license": "Apache-2.0", | ||
"homepage": "https://playwright.dev", | ||
"repository": { | ||
"url": "git+https://github.com/microsoft/playwright.git", | ||
"type": "git" | ||
}, | ||
"description": "A high-level API to automate web browsers", | ||
"readmeFilename": "" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"name": "playwright", | ||
"dist-tags": { | ||
"latest": "1.49.1" | ||
}, | ||
"versions": { | ||
"1.49.1": { | ||
"name": "playwright", | ||
"version": "1.49.1", | ||
"author": { | ||
"name": "Microsoft Corporation" | ||
}, | ||
"license": "Apache-2.0", | ||
"_id": "[email protected]", | ||
"bugs": { | ||
"url": "https://github.com/microsoft/playwright/issues" | ||
}, | ||
"bin": { | ||
"playwright": "cli.js" | ||
}, | ||
"dist": { | ||
"shasum": "830266dbca3008022afa7b4783565db9944ded7c", | ||
"tarball": "http://localhost:4260/playwright/playwright-1.49.1.tgz", | ||
"fileCount": 108, | ||
"integrity": "sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==", | ||
"attestations": { | ||
"url": "https://registry.npmjs.org/-/npm/v1/attestations/[email protected]", | ||
"provenance": { | ||
"predicateType": "https://slsa.dev/provenance/v1" | ||
} | ||
}, | ||
"unpackedSize": 3149816 | ||
}, | ||
"main": "index.js", | ||
"types": "./index.d.ts", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.mjs", | ||
"default": "./index.js", | ||
"require": "./index.js" | ||
}, | ||
"./test": { | ||
"types": "./test.d.ts", | ||
"import": "./test.mjs", | ||
"default": "./test.js", | ||
"require": "./test.js" | ||
}, | ||
"./lib/util": "./lib/util.js", | ||
"./types/test": { | ||
"types": "./types/test.d.ts" | ||
}, | ||
"./jsx-runtime": { | ||
"import": "./jsx-runtime.mjs", | ||
"default": "./jsx-runtime.js", | ||
"require": "./jsx-runtime.js" | ||
}, | ||
"./lib/plugins": "./lib/plugins/index.js", | ||
"./lib/program": "./lib/program.js", | ||
"./package.json": "./package.json", | ||
"./lib/fsWatcher": "./lib/fsWatcher.js", | ||
"./lib/utilsBundle": "./lib/utilsBundle.js", | ||
"./types/testReporter": { | ||
"types": "./types/testReporter.d.ts" | ||
}, | ||
"./lib/internalsForTest": "./lib/internalsForTest.js", | ||
"./lib/common/configLoader": "./lib/common/configLoader.js", | ||
"./lib/transform/esmLoader": "./lib/transform/esmLoader.js", | ||
"./lib/transform/transform": "./lib/transform/transform.js", | ||
"./lib/transform/babelBundle": "./lib/transform/babelBundle.js", | ||
"./lib/transform/compilationCache": "./lib/transform/compilationCache.js" | ||
}, | ||
"gitHead": "88bc8afc78ea6ff13d2bbb312b99eb924962766c", | ||
"repository": { | ||
"url": "git+https://github.com/microsoft/playwright.git", | ||
"type": "git" | ||
}, | ||
"_npmVersion": "10.8.2", | ||
"description": "A high-level API to automate web browsers", | ||
"directories": {}, | ||
"_nodeVersion": "18.20.5", | ||
"dependencies": { | ||
"playwright-core": "1.49.1" | ||
}, | ||
"_hasShrinkwrap": false, | ||
"optionalDependencies": { | ||
"fsevents": "2.3.2" | ||
} | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/microsoft/playwright/issues" | ||
}, | ||
"author": { | ||
"name": "Microsoft Corporation" | ||
}, | ||
"license": "Apache-2.0", | ||
"homepage": "https://playwright.dev", | ||
"repository": { | ||
"url": "git+https://github.com/microsoft/playwright.git", | ||
"type": "git" | ||
}, | ||
"description": "A high-level API to automate web browsers", | ||
"readmeFilename": "" | ||
} |
Oops, something went wrong.