Example.com/index.html defines a static iframe element with hard-coded src = another.com/frame.html.
Another.com has a serviceworker that frame.html creates and successfully postmessages to.
After another.com serviceworker is registered and responding to messages, reloading the top index.html (before the serviceworker timeout terminates) will again populate the iframe with another.com/frame.html, and even though the service worker continues to serve fetch requests, it no longer responds to postmessage, nor can serviceworker console.log messages be seen in the chrome devtools.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/HdSxJQE
Comments
Post a Comment