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

Service Worker Automatically Skips Waiting #5815

Closed
NoelAbrahams opened this issue Nov 5, 2018 · 2 comments
Closed

Service Worker Automatically Skips Waiting #5815

NoelAbrahams opened this issue Nov 5, 2018 · 2 comments
Labels

Comments

@NoelAbrahams
Copy link

NoelAbrahams commented Nov 5, 2018

Hi

Edge version: 42.17134.1.0
Edge HTML: 17.17134

In Edge a newly installed Service Worker is being automatically activated on refresh (ie equivalent to always calling skipWaiting).

The following bit of code should alert whenever serviceworker.js is modified and the browser is refreshed:

navigator.serviceWorker.ready.then(function (registration) {
      console.log('ready');

      if (registration.waiting) {
           alert('waiting');
       }
});

This never alerts in Edge, but does in Chrome and FireFox.

@liminzhu
Copy link
Collaborator

Hey thanks for the report @NoelAbrahams ! Unfortunately this is a web API issue rather than a JS engine issue. Can you open an issue on EdgeHTML issue tracker so the right folks can look at them?

@NoelAbrahams
Copy link
Author

Moved to EdgeHTML Issue Tracker as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants