Skip to content

Do not use integrity when request is no-cors#3099

Merged
jeffposnick merged 4 commits into
v6from
coint
Jul 25, 2022
Merged

Do not use integrity when request is no-cors#3099
jeffposnick merged 4 commits into
v6from
coint

Conversation

@tropicadri

Copy link
Copy Markdown
Contributor

Fixing interaction between integrity and no-cors request in Precache Strategy

Fixes: #3096

@jeffposnick jeffposnick self-requested a review July 19, 2022 13:15

@jeffposnick jeffposnick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this changed!

response = await handler.fetch(
new Request(request, {
integrity: integrityInRequest || integrityInManifest,
integrity:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add

// See https://github.com/GoogleChrome/workbox/issues/3096

so that the context is not lost?

@tropicadri tropicadri marked this pull request as ready for review July 20, 2022 02:50
@jeffposnick

Copy link
Copy Markdown
Contributor

😂 🥲 😂

[03:07:13] 'test_integration' errored after 6 min
[03:07:13] SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 98
Current browser version is 103.0.5060.134 with binary path /Users/runner/.selenium-assistant/chrome/stable/Google Chrome.app/Contents/MacOS/Google Chrome

@tropicadri tropicadri requested a review from jeffposnick July 23, 2022 01:15
@jeffposnick jeffposnick merged commit 978c4f6 into v6 Jul 25, 2022
@zlk89

zlk89 commented Jul 27, 2022

Copy link
Copy Markdown

Thanks for the fix! When do we expect this to be released? @jeffposnick

@tropicadri

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workbox precaching network fallback cannot handle integrity

3 participants