forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1897183 - [puppeteer] Sync vendored puppeteer to v22.9.0. r=webdr…
…iver-reviewers,whimboo Differential Revision: https://phabricator.services.mozilla.com/D210771
- Loading branch information
Showing
107 changed files
with
3,406 additions
and
1,627 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"packages/puppeteer": "22.6.5", | ||
"packages/puppeteer-core": "22.6.5", | ||
"packages/puppeteer": "22.9.0", | ||
"packages/puppeteer-core": "22.9.0", | ||
"packages/testserver": "0.6.0", | ||
"packages/ng-schematics": "0.6.0", | ||
"packages/browsers": "2.2.2" | ||
"packages/browsers": "2.2.3" | ||
} |
2 changes: 2 additions & 0 deletions
2
remote/test/puppeteer/examples/puppeteer-in-browser/.gitignore
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,2 @@ | ||
out | ||
node_modules |
7 changes: 7 additions & 0 deletions
7
remote/test/puppeteer/examples/puppeteer-in-browser/index.html
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,7 @@ | ||
<!doctype html> | ||
<script type="module" src="out/main.min.js"></script> | ||
<label> | ||
<span>WebSocket URL</span> | ||
<input id="ws" /> | ||
</label> | ||
<button onclick="onConnectClick()">Connect</button> |
23 changes: 23 additions & 0 deletions
23
remote/test/puppeteer/examples/puppeteer-in-browser/main.mjs
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,23 @@ | ||
/** | ||
* @license | ||
* Copyright 2024 Google Inc. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
// TODO: can rollup find the browser entrypoint? | ||
|
||
import puppeteer from 'puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser.js'; | ||
|
||
async function onConnectClick() { | ||
const wsUrl = document.querySelector('#ws').value; | ||
|
||
const browser = await puppeteer.connect({ | ||
browserWSEndpoint: wsUrl, | ||
}); | ||
|
||
alert('Browser has ' + (await browser.pages()).length + ' pages'); | ||
|
||
browser.disconnect(); | ||
} | ||
|
||
globalThis.onConnectClick = onConnectClick; |
Oops, something went wrong.