Commit Graph

973 Commits

Author SHA1 Message Date
jrandolf
dfdd1aab38
chore: use existing types (#11851)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2024-02-06 17:42:51 +01:00
jrandolf
6c5b9ad3b9
refactor: rename _requestId to id (#11850)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2024-02-06 17:42:25 +01:00
jrandolf
27c71a9cf6
chore: use generic implementation for BrowserContext.waitForTarget (#11848)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2024-02-06 17:42:05 +01:00
jrandolf
f62380d373
chore: add storage.getCookies and storage.setCookie to bidi/core (#11847)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2024-02-06 16:34:41 +00:00
jrandolf
b63ebc721d
chore: add const to UserContext.DEFAULT (#11846) 2024-02-06 15:42:02 +00:00
Alex Rudenko
799058cc7b
docs: fix NetworkConditions descriptions (#11843) 2024-02-06 12:24:10 +00:00
Alex Rudenko
c5cee0e37d
fix: frameElement should work for framesets (#11842) 2024-02-06 12:13:06 +00:00
release-please[bot]
9add4b4815
chore(main): release ng-schematics 0.6.0 (#11820)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-02-05 13:03:02 +00:00
Nikolay Vitkov
e2d42800c3 chore: fix test 2024-02-05 13:44:00 +01:00
jrandolf
a69984e5db
refactor: move bidi CDPSession (#11833) 2024-02-05 13:25:15 +01:00
Alex Rudenko
8d7d9f1f05
test: rework test expectations (#11824) 2024-02-05 11:04:41 +00:00
release-please[bot]
9fbb9f9653
chore: release main (#11821)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-02-05 10:22:00 +00:00
Alex Rudenko
46a3ef2681
refactor!: rename createIncognitoBrowserContext to createBrowserContext (#11834) 2024-02-05 10:43:37 +01:00
Alex Rudenko
c63414dbb4
chore: bump firefox test version (#11835) 2024-02-05 10:43:17 +01:00
dependabot[bot]
d0f4a8d03b
chore(deps): Bump the dependencies group with 1 update (#11829)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 10:41:33 +01:00
Nikolay Vitkov
b2c69fe5bd
build: fix EsLint rule and add fixer (#11826) 2024-02-05 10:26:37 +01:00
Alex Rudenko
75c9e117f1
refactor!: enable the new-headless mode by default (#11815) 2024-02-02 13:25:43 +01:00
Alex Rudenko
7564dfa911
refactor!: remove networkConditions in favor of PredefinedNetworkConditions (#11806) 2024-02-02 13:25:20 +01:00
Nikolay Vitkov
84d9a94d62
refactor!: use ReadableStreams (#11805) 2024-02-02 13:25:02 +01:00
Nikolay Vitkov
514e2d5241
refactor!: remove duplicate type names (#11803) 2024-02-02 13:22:47 +01:00
Alex Rudenko
f1608743c8
refactor!: remove add/removeEventListener in favor of on/off (#11792) 2024-02-02 13:22:28 +01:00
Alex Rudenko
d4e9d8d591
fix!: make console warn level compatible with WebDriver BiDi (#11790) 2024-02-02 13:22:07 +01:00
Alex Rudenko
f18d44761c
refactor!: remove InterceptResolutionStrategy (#11788) 2024-02-02 13:21:48 +01:00
Alex Rudenko
eb360e3a76
refactor!: remove devices in favor of KnownDevices (#11787) 2024-02-02 13:20:33 +01:00
Nikolay Vitkov
53c9134809
refactor!: remove $x and waitForXpath (#11782) 2024-02-02 13:18:43 +01:00
Nikolay Vitkov
1900fa9418
refactor!: remove waitForTimeout (#11780) 2024-02-02 13:17:24 +01:00
Alex Rudenko
4fc14026e9
feat!: generate accessible PDFs by default (#11778) 2024-02-02 13:17:06 +01:00
Nikolay Vitkov
b3bfdd2024
refactor!: remove error const, change CustomError to PuppeteerError (#11777)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2024-02-02 13:15:20 +01:00
jrandolf
ced2235ada
fix!: remove viewport resizing from ElementHandle.screenshot (#11774) 2024-02-02 13:14:59 +01:00
Alex Rudenko
4677281877
feat!: remove PUPPETEER_DOWNLOAD_PATH in favor of PUPPETEER_CACHE_DIR (#11605) 2024-02-02 13:14:38 +01:00
Maksim Sadym
9cb1fde589
feat!: BiDi cookies (#11532)
Co-authored-by: Maksim Sadym <sadym@google.com>
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
2024-02-02 13:13:00 +01:00
Nikolay Vitkov
953f4207b1
feat!: drop support for node16 (#10912) 2024-02-02 13:12:28 +01:00
release-please[bot]
e04016a4a0
chore: release main (#11785)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-02-02 11:13:09 +00:00
jrandolf
0a9f6d670a
feat: implement boolean env vars (#11811) 2024-02-02 08:02:34 +00:00
jrandolf
0f0813db38
fix: use shareReplay for inflight requests (#11810) 2024-02-02 08:09:33 +01:00
Henrik Skupin
0de9f59062
chore: for Firefox keep preference "browser.tabs.closeWindowWithLastTab" disabled for CDP (#11794) 2024-01-31 17:30:23 +00:00
dependabot[bot]
b7285fc24d
chore(deps): Bump the dependencies group with 1 update (#11798)
Bumps the dependencies group with 1 update: [chromium-bidi](https://github.com/GoogleChromeLabs/chromium-bidi).

Updates `chromium-bidi` from 0.5.6 to 0.5.8
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/GoogleChromeLabs/chromium-bidi/releases">chromium-bidi's releases</a>.</em></p>
<blockquote>
<h2>chromium-bidi: v0.5.8</h2>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.7...chromium-bidi-v0.5.8">0.5.8</a> (2024-01-31)</h2>
<h3>Features</h3>
<ul>
<li>add temp <code>context</code> into worker realm for Puppeteer (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1801">#1801</a>) (<a href="3703549736">3703549</a>)</li>
</ul>
<h2>chromium-bidi: v0.5.7</h2>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.6...chromium-bidi-v0.5.7">0.5.7</a> (2024-01-30)</h2>
<h3>Features</h3>
<ul>
<li>separate realm types (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1709">#1709</a>) (<a href="9307f0515d">9307f05</a>)</li>
<li>support user context in cookies API (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1781">#1781</a>) (<a href="d838757a16">d838757</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/GoogleChromeLabs/chromium-bidi/blob/main/CHANGELOG.md">chromium-bidi's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.7...chromium-bidi-v0.5.8">0.5.8</a> (2024-01-31)</h2>
<h3>Features</h3>
<ul>
<li>add temp <code>context</code> into worker realm for Puppeteer (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1801">#1801</a>) (<a href="3703549736">3703549</a>)</li>
</ul>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.6...chromium-bidi-v0.5.7">0.5.7</a> (2024-01-30)</h2>
<h3>Features</h3>
<ul>
<li>separate realm types (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1709">#1709</a>) (<a href="9307f0515d">9307f05</a>)</li>
<li>support user context in cookies API (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1781">#1781</a>) (<a href="d838757a16">d838757</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6e6ea06be5"><code>6e6ea06</code></a> chore(main): release chromium-bidi 0.5.8 (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1802">#1802</a>)</li>
<li><a href="3703549736"><code>3703549</code></a> feat: add temp <code>context</code> into worker realm for Puppeteer (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1801">#1801</a>)</li>
<li><a href="b5aed185e4"><code>b5aed18</code></a> ci: add labeled as option (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1800">#1800</a>)</li>
<li><a href="79b539f665"><code>79b539f</code></a> ci: fix Puppeteer label (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1798">#1798</a>)</li>
<li><a href="119dd4c694"><code>119dd4c</code></a> refactor: clean up some naming (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1796">#1796</a>)</li>
<li><a href="38b574ccbc"><code>38b574c</code></a> build(deps): Bump wpt from <code>3c5b215</code> to <code>b44c438</code> (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1787">#1787</a>)</li>
<li><a href="fe46377c02"><code>fe46377</code></a> test: fix Promise rejection was handled asynchronously (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1784">#1784</a>)</li>
<li><a href="aea8599c5f"><code>aea8599</code></a> refactor: update types to more accurate represenation (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1780">#1780</a>)</li>
<li><a href="b2a97245bf"><code>b2a9724</code></a> chore(main): release chromium-bidi 0.5.7 (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1778">#1778</a>)</li>
<li><a href="d838757a16"><code>d838757</code></a> feat: support user context in cookies API (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1781">#1781</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.6...chromium-bidi-v0.5.8">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=chromium-bidi&package-manager=npm_and_yarn&previous-version=0.5.6&new-version=0.5.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-31 17:49:40 +01:00
Nikolay Vitkov
67d6e89021
chore: small fixes (#11797) 2024-01-31 16:01:27 +01:00
Alex Rudenko
2930a70c88
feat(bidi): implement UserContexts (#11784) 2024-01-31 09:22:47 +01:00
Nikolay Vitkov
b99d478cd4
feat: add outline to PDF generation (#11779) 2024-01-30 12:34:33 +01:00
Alex Rudenko
2c3711e885
docs: clarify current behavior of PUPPETEER_BROWSER_REVISION (#11783) 2024-01-30 11:37:54 +01:00
release-please[bot]
31a23399a9
chore: release main (#11756)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-01-29 13:55:30 +00:00
jrandolf
9cd66731d1
fix: set viewport for element screenshots (#11772) 2024-01-29 13:09:09 +00:00
dependabot[bot]
2d8acd2021
chore(deps): Bump the dependencies group with 6 updates (#11771)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2024-01-29 13:46:51 +01:00
Maksim Sadym
0dedc75df1
chore(deps): Bump chromium-bidi to 0.5.6 (#11770)
Updates `chromium-bidi` from 0.5.4 to 0.5.6
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/GoogleChromeLabs/chromium-bidi/releases">chromium-bidi's releases</a>.</em></p>
<blockquote>
<h2>chromium-bidi: v0.5.6</h2>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.5...chromium-bidi-v0.5.6">0.5.6</a> (2024-01-29)</h2>
<h3>Features</h3>
<ul>
<li>add CPD specific field in cookies (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1759">#1759</a>) (<a href="d24584ac0d">d24584a</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>handle headless errors when creating a target (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1757">#1757</a>) (<a href="cd7e772b39">cd7e772</a>)</li>
</ul>
<h2>chromium-bidi: v0.5.5</h2>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.4...chromium-bidi-v0.5.5">0.5.5</a> (2024-01-25)</h2>
<h3>Features</h3>
<ul>
<li>allow not partitioned cookies (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1718">#1718</a>) (<a href="d54a4f1860">d54a4f1</a>)</li>
<li>implement user contexts (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1715">#1715</a>) (<a href="b75def3778">b75def3</a>)</li>
<li>provide logs before Mapper is launched via NodeJS runner (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1737">#1737</a>) (<a href="0b278f30f9">0b278f3</a>)</li>
<li>return all cookies for a given browsing context (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1746">#1746</a>) (<a href="456d9473a7">456d947</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/GoogleChromeLabs/chromium-bidi/blob/main/CHANGELOG.md">chromium-bidi's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.5...chromium-bidi-v0.5.6">0.5.6</a> (2024-01-29)</h2>
<h3>Features</h3>
<ul>
<li>add CPD specific field in cookies (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1759">#1759</a>) (<a href="d24584ac0d">d24584a</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>handle headless errors when creating a target (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1757">#1757</a>) (<a href="cd7e772b39">cd7e772</a>)</li>
</ul>
<h2><a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.4...chromium-bidi-v0.5.5">0.5.5</a> (2024-01-25)</h2>
<h3>Features</h3>
<ul>
<li>allow not partitioned cookies (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1718">#1718</a>) (<a href="d54a4f1860">d54a4f1</a>)</li>
<li>implement user contexts (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1715">#1715</a>) (<a href="b75def3778">b75def3</a>)</li>
<li>provide logs before Mapper is launched via NodeJS runner (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1737">#1737</a>) (<a href="0b278f30f9">0b278f3</a>)</li>
<li>return all cookies for a given browsing context (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1746">#1746</a>) (<a href="456d9473a7">456d947</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3ad4653293"><code>3ad4653</code></a> chore(main): release chromium-bidi 0.5.6 (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1758">#1758</a>)</li>
<li><a href="a1e5f8fa1b"><code>a1e5f8f</code></a> build(deps): Bump wpt from <code>83ac63c</code> to <code>3c5b215</code> (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1763">#1763</a>)</li>
<li><a href="6d09a82bb5"><code>6d09a82</code></a> build: update cddlconv (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1761">#1761</a>)</li>
<li><a href="d24584ac0d"><code>d24584a</code></a> feat: add CPD specific field in cookies (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1759">#1759</a>)</li>
<li><a href="e273bf6000"><code>e273bf6</code></a> refactor: types + logic fix (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1760">#1760</a>)</li>
<li><a href="cd7e772b39"><code>cd7e772</code></a> fix: handle headless errors when creating a target (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1757">#1757</a>)</li>
<li><a href="db34f89443"><code>db34f89</code></a> build(deps): Bump wpt from <code>a8510ed</code> to <code>83ac63c</code> (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1756">#1756</a>)</li>
<li><a href="455a1e720a"><code>455a1e7</code></a> ci: pin version to file (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1755">#1755</a>)</li>
<li><a href="33cae112bf"><code>33cae11</code></a> build(deps): Bump the all group with 7 updates (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1754">#1754</a>)</li>
<li><a href="1a6f173fbf"><code>1a6f173</code></a> build(deps): Bump the all group with 3 updates (<a href="https://redirect.github.com/GoogleChromeLabs/chromium-bidi/issues/1753">#1753</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/GoogleChromeLabs/chromium-bidi/compare/chromium-bidi-v0.5.4...chromium-bidi-v0.5.6">compare view</a></li>
</ul>
</details>
<br />

Co-authored-by: Maksim Sadym <sadym@google.com>
2024-01-29 11:04:06 +00:00
jrandolf
d085127bba
refactor: use generic implementation for waitForNetworkIdle (#11757) 2024-01-26 16:06:41 +01:00
Alex Rudenko
ce894a2ffc
feat: download chrome-headless-shell by default and use it for the old headless mode (#11754) 2024-01-25 21:39:07 +01:00
Alex Rudenko
f88e1da638
feat: add experimental browser.debugInfo (#11748) 2024-01-25 14:57:45 +00:00
jrandolf
08f761486e
refactor: use generic implementation for waitForRequest (#11753) 2024-01-25 14:52:11 +01:00
jrandolf
3698fa8aec
refactor: use generic implementation for waitForResponse (#11752) 2024-01-25 14:22:48 +01:00