This PR fixes the following edge case:
- `const oldPromise = world.puppeteerUtil`.
- setContext occurs but context is immediately destroyed, i.e.
`world.#puppeteerUtil === oldPromise` is not resolved.
- clearContext occurs due to destruction, i.e. `world.#puppeteerUtil` is
replaced (`world.#puppeteerUtil !== oldPromise`).
- `oldPromise` never resolves.
Bumps
[@angular-devkit/schematics](https://github.com/angular/angular-cli)
from 15.1.2 to 15.1.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/angular/angular-cli/releases"><code>@angular-devkit/schematics</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v15.1.3</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.1.3 (2023-01-25)</h1>
<h3><code>@schematics/angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="2c04f4a8f4"><img
src="https://img.shields.io/badge/2c04f4a8f-fix-green" alt="fix -
2c04f4a8f" /></a></td>
<td>update browserslist config to include last 2 Chrome version</td>
</tr>
</tbody>
</table>
<h3><code>@angular/cli</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="de15ec5763"><img
src="https://img.shields.io/badge/de15ec576-fix-green" alt="fix -
de15ec576" /></a></td>
<td>handle extended schematics when retrieving aliases</td>
</tr>
</tbody>
</table>
<h3><code>@angular-devkit/build-angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="f31bf300b9"><img
src="https://img.shields.io/badge/f31bf300b-fix-green" alt="fix -
f31bf300b" /></a></td>
<td>avoid undefined module path for Sass imports in esbuild</td>
</tr>
<tr>
<td><a
href="c152a4a13f"><img
src="https://img.shields.io/badge/c152a4a13-fix-green" alt="fix -
c152a4a13" /></a></td>
<td>update browserslist config to include last 2 Chrome versions</td>
</tr>
</tbody>
</table>
<h3><code>@angular-devkit/core</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="9de99202e9"><img
src="https://img.shields.io/badge/9de99202e-fix-green" alt="fix -
9de99202e" /></a></td>
<td>handle number like strings in workspace writer</td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius, Charles Lyding and Doug Parker</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/angular/angular-cli/blob/main/CHANGELOG.md"><code>@angular-devkit/schematics</code>'s
changelog</a>.</em></p>
<blockquote>
<h1>15.1.3 (2023-01-25)</h1>
<h3><code>@angular/cli</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="de15ec5763">de15ec576</a></td>
<td>fix</td>
<td>handle extended schematics when retrieving aliases</td>
</tr>
</tbody>
</table>
<h3><code>@schematics/angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="2c04f4a8f4">2c04f4a8f</a></td>
<td>fix</td>
<td>update browserslist config to include last 2 Chrome version</td>
</tr>
</tbody>
</table>
<h3><code>@angular-devkit/build-angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="f31bf300b9">f31bf300b</a></td>
<td>fix</td>
<td>avoid undefined module path for Sass imports in esbuild</td>
</tr>
<tr>
<td><a
href="c152a4a13f">c152a4a13</a></td>
<td>fix</td>
<td>update browserslist config to include last 2 Chrome versions</td>
</tr>
</tbody>
</table>
<h3><code>@angular-devkit/core</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="9de99202e9">9de99202e</a></td>
<td>fix</td>
<td>handle number like strings in workspace writer</td>
</tr>
</tbody>
</table>
<h2>Special Thanks</h2>
<p>Alan Agius, Charles Lyding and Doug Parker</p>
<!-- raw HTML omitted -->
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h1>15.2.0-next.1 (2023-01-18)</h1>
<h3><code>@angular/cli</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="3ebb195525">3ebb19552</a></td>
<td>fix</td>
<td>register schematic aliases when providing collection name in
<code>ng generate</code></td>
</tr>
<tr>
<td><a
href="697df4f6e5">697df4f6e</a></td>
<td>fix</td>
<td>remove <code>--to</code> option from being required when using
<code>--from</code> in <code>ng update</code></td>
</tr>
</tbody>
</table>
<h3><code>@schematics/angular</code></h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="c8a3b30000">c8a3b3000</a></td>
<td>fix</td>
<td>replace existing <code>BrowserModule.withServerTransition</code>
calls when running universal schematic</td>
</tr>
</tbody>
</table>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b27ce5da26"><code>b27ce5d</code></a>
release: cut the v15.1.3 release</li>
<li><a
href="3c459c3f68"><code>3c459c3</code></a>
build: update bazel aspect lib to 1.23.3</li>
<li><a
href="e293cb1a33"><code>e293cb1</code></a>
docs(<code>@angular/cli</code>): minor updates to <code>ng run</code>
description</li>
<li><a
href="2c04f4a8f4"><code>2c04f4a</code></a>
fix(<code>@schematics/angular</code>): update browserslist config to
include last 2 Chrome...</li>
<li><a
href="c152a4a13f"><code>c152a4a</code></a>
fix(<code>@angular-devkit/build-angular</code>): update browserslist
config to include las...</li>
<li><a
href="9de99202e9"><code>9de9920</code></a>
fix(<code>@angular-devkit/core</code>): handle number like strings in
workspace writer</li>
<li><a
href="f31bf300b9"><code>f31bf30</code></a>
fix(<code>@angular-devkit/build-angular</code>): avoid undefined module
path for Sass impo...</li>
<li><a
href="de15ec5763"><code>de15ec5</code></a>
fix(<code>@angular/cli</code>): handle extended schematics when
retrieving aliases</li>
<li><a
href="3661b3031d"><code>3661b30</code></a>
Revert "refactor: temporaily disable sending analytics"</li>
<li>See full diff in <a
href="https://github.com/angular/angular-cli/compare/15.1.2...15.1.3">compare
view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@angular-devkit/schematics&package-manager=npm_and_yarn&previous-version=15.1.2&new-version=15.1.3)](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 ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Since we moved to the central binaries cache it does not make sense to
clean up old binaries automatically because multiple installations can
use different versions. We expect the users to clean the cache from time
to time until we offer a CLI for managing the browsers.
Closes#9533
Issue: #9394
**What kind of change does this PR introduce?**
Feature - Added support of the `referrerPolicy` parameter (from CDP's
`Page.navigate`) to Puppeteer's `page.goto`.
**Did you add tests for your changes?**
No, currently it has no meaning that isn't browser implementation based,
which might get broken in the future. If there are suggestions to tests,
please let me know so I'll add them.
**If relevant, did you update the documentation?**
Yes, the documentation of the `goto` method has been updated.
**Summary**
I wanted to contribute to this project, which I used for testing on our
environment and saw issue #9394, so I decided to resolve it :)
**Does this PR introduce a breaking change?**
No. I added the `referrerPolicy` as an optional parameter, which will
use the HTTP header `Referrer-Policy` if not provided (much like the
`referer` parameter) so it will not interfere.
Co-authored-by: Ophir Back <ophir.back@broadcom.com>