(Mozilla 1437080) service workers: load after unload, or session restoration, may lead to 'Corrupted Content Error' or 'Cannot load app' #581
Comments
|
Meta, tracking: #538 Reproducible with Waterfox 56.1.0 on a Mac. Additional informationCuriously, I began noticing this issue around the time of testing and release of 56.2.0. For example:
That was at home, https://discourse.mozilla.org/t/mozilla-buys-pocket-ask-your-questions-here/13998 with Today at home for the same URL, without a quit, I get the alternative symptom:
Discourse 2.0.0.
– 56.2.0 build 20180523041847 |
Refinement
I might find a Mozilla bug for this … |
|
Symptoms of probably the same bug (I might need to change the title here):
Result
|
|
Mozilla bug 1454400 - Session Restore doesn't activate service worker was a duplicate of 1437080 - service workers gets wrong FetchEvent.request.cache value
– and from https://bugzilla.mozilla.org/show_bug.cgi?id=1437080#c15, |
|
Not all service worker-active PWAs are affected. The Video Trimmer application at https://paulkinlan.github.io/videocut/index.html loads without error after a manual unload. |
|
Could you see if these new commits fix it? I can't seem to repro so far :-0 |
|
Thanks. 56.2.1.55_3 at https://www.freshports.org/www/waterfox is a fraction behind, and I don't have a Windows test environment handy, so I might be unable to verify until Monday or later. Or … … if you have a In any case, don't let my lack of verification delay a release. If you made the issue reproducible, yourself, before the commits: that's good enough for me Bottom line: a fix will be smart but IMHO this issue is not a showstopper. If I understand correctly, the reported corruption is cache-specific; not a cause for concern (e.g. no data loss). |
|
From #581 (comment):
Unfortunately I no longer have the affected profile. Either that, or the service worker was automatically un-registered at some point. With 56.2.1 (and 56.2.2) I can 'fake' registration by editing then locking With build 20180714033244 of 56.2.2 I can reproduce the symptom if there's no network connection: – however, that's an edge case (I did not make any offline test in May or June) and maybe a separate Mozilla bug. I shouldn't keep this issue open for that alone. For me it'll be sane to verify in a FreeBSD environment where I need not fake service worker registration. However we should not assume that the www/waterfox experiment will reach 56.2.2. More practically: I reckon, seek verification of the fix in Windows case #694 after 56.2.2 is released. |
|
Thanks @jbeich for making 56.2.2 available for FreeBSD.
The same, or similar, with 56.2.2 on FreeBSD-CURRENT. I might attach (or link to) a screen recording but essentially, it seems to happen in some cases if:
– then a load (after unload) may report corrupted content, and clicking Try again will not progress to a more user-friendly Server not found page. As far as I could tell it seemed to affect e.g. Mozilla Discourse but not CNET (tested: Magic Leap's long-awaited headset will ship this summer -- and everything else we learned - CNET). Let's close this. Thanks to Alex and Jan for the commits. |
Two screen recordingsMixtures of online and offline with 56.2.2 on FreeBSD-CURRENT. From the second recording:
|
Comparison with Firefox QuantumFirefox 61.0.1 (64-bit) in safe mode on Kubuntu 17.10 on an old Ergo Vista 621 notebook. https://roadtrip.glitch.me/ around forty-five minutes ago: I can not make it reproducible but I guess that there truly was a
Re: cramforce/roadtrip#7 (comment) I had previously left the application, in Firefox, Finding my location then closed the notebook for ... I don't know how long. Days, probably. This morning the reported corrupted content error (network protocol violation) occurred very shortly after I opened the notebook. Can't recall whether I attempted to reload the page. |
|
I don't use Waterfox, but this was the best hit on Google. So, for the record, I still experience the error with FF 62.0.3 (Ubuntu 18.04). |
|
@reitzig please raise the issue in a support area for Firefox. If you already use Reddit, https://www.reddit.com/r/firefox/ might be ideal. I'll join you there (not here; this issue is closed). Thanks. |











Steps
Expected
Actual result
Workaround
Space
Alternative workarounds include Control-L then Return or Enter, however for many users, it will be preferable to simply accept the invitation:
Notes
If you see 'Cannot load app' in lieu of 'Corrupted Content Error', please state the build of Waterfox, from:Please refrain from contacting the owners of meta.discourse.org. For this issue, re: http://www.discourse.org/about#browser we may expect the current release of Waterfox to be not supported by Discourse.
If you find an instance of Discourse that is not affected by this issue, please state both:
Version information can be shown with Wappalyzer or its bookmarklet.
Thanks
The text was updated successfully, but these errors were encountered: