Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spec] Explicitly set service worker mode to none #1351

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

qingxinwu
Copy link
Collaborator

@qingxinwu qingxinwu commented Dec 1, 2024

Set requests' service worker mode to null, instead of using a note to explain the service working mode being null when client is set to null.
It first came from this comment


Preview | Diff

Set requests' service worker mode to null,  instead of using a note to explain the service working mode being null when client is set to null
@qingxinwu
Copy link
Collaborator Author

qingxinwu commented Dec 1, 2024

@morlovich We probably want to set skip_service_worker to true explicitly as well? Our code currently behaves the same as it being set to true since the client is "null" although it uses the default value false, IIUC, is that right?

@morlovich
Copy link
Collaborator

@morlovich We probably want to set skip_service_worker to true explicitly as well? Our code currently behaves the same as it being set to true since the client is "null" although it uses the default value false, IIUC, is that right?

It's probably a good idea to do it defensively, yes, but the reason it doesn't involve service workers is because it's talking to a layer where they haven't been hooked up, and not really calling fetch(), which doesn't really exist as such in Chrome outside the renderer.

@JensenPaul JensenPaul merged commit 6a37e10 into main Dec 2, 2024
2 checks passed
@JensenPaul JensenPaul deleted the service-worker-mode branch December 2, 2024 18:21
github-actions bot added a commit that referenced this pull request Dec 2, 2024
SHA: 6a37e10
Reason: push, by JensenPaul

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Relates to the spec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants