-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Use service workers for loading webview resources on desktop #120654
Conversation
.yarnrc
Outdated
@@ -1,3 +1,3 @@ | |||
disturl "https://electronjs.org/headers" | |||
target "11.4.1" | |||
target "11.4.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak1556 I bumped the electron version for testing but this should likely be part of a separate PR
This brings in the service worker support required for microsoft#120654
* Pick up electorn 11.4.2 This brings in the service worker support required for #120654 * Update cgmanifest
This switches us from using a custom protocol to using a service worker to load resources inside webviews. Previously we had only been using service workers on web (since custom protocols are not supported on web). The service worker based approach is much cleaner to than our custom protocol work and lets us avoid some extra roundtrips between the main process and the renderer We were previously blocked from using service workers on desktop due to an electron issue. However this has now been resolved
92c97a4
to
ae3aeac
Compare
Merging this for testing in insiders It's possible this change will cause regressions due to an oversight the implementation or for specific extensions that are using the webview in interesting ways. Will continue testing today and look for more feedback once this hits insiders |
Mistakenly added as part of #120654 Doesn't seem to cause issues in the current builds but breaks our electron 12 build
This switches us from using a custom protocol to using a service worker to load resources inside webviews. Previously we had only been using service workers on web (since custom protocols are not supported on web). The service worker based approach is much cleaner to than our custom protocol work and lets us avoid some extra roundtrips between the main process and the renderer
We were previously blocked from using service workers on desktop due to an electron issue. However this has now been resolved
/cc @deepak1556