Closed
Bug 804060
Opened 12 years ago
Closed 12 years ago
Need to ensure that captive portals don't destroy appcached apps
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
WORKSFORME
blocking-basecamp | + |
People
(Reporter: sicking, Unassigned)
Details
I'm not sure what our current implementation does, so the first step in this bug is to get clarity in that.
What we need to do is to ensure that if a user has an appcached app installed, and is currently behind a captive portal that he/she hasn't logged in to yet, that if we check for updates we don't blow away the cached resources or otherwise behave as if the app has changed.
What does the spec say to do here?
![]() |
||
Comment 1•12 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #0)
> What does the spec say to do here?
More what the update mechanism says here: the first request we do when updating is request for the manifest. If content of the manifest doesn't apply to the spec, i.e. it doesn't contain the "CACHE MANIFEST" heading line, then we ignore the load and (w/o any modifications to the current cache) cancel the update. There is just window.applicationCache.onerror event fired, AFAIK.
We also still check for "text/cache-manifest" MIME type, but that has been removed from the spec and we have an r+'ed but just still not landed patch to remove that check in bug 715809.
Only problem would be if the portal returned 404 or 410 for the manifest request. Then we would delete the cache.
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #1)
> (In reply to Jonas Sicking (:sicking) from comment #0)
> > What does the spec say to do here?
>
> More what the update mechanism says here: the first request we do when
> updating is request for the manifest. If content of the manifest doesn't
> apply to the spec, i.e. it doesn't contain the "CACHE MANIFEST" heading
> line, then we ignore the load and (w/o any modifications to the current
> cache) cancel the update. There is just window.applicationCache.onerror
> event fired, AFAIK.
I assume that it means that we then keep using the cache that we have?
Do we use this behavior for network errors too? For example if the manifest is located on a https server then a captive portal might end up causing ssl errors.
> Only problem would be if the portal returned 404 or 410 for the manifest
> request. Then we would delete the cache.
I'm not terribly worried about this since I don't think 404 errors would happen that often from captive portals.
![]() |
||
Comment 3•12 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #2)
> I assume that it means that we then keep using the cache that we have?
Yes.
>
> Do we use this behavior for network errors too? For example if the manifest
> is located on a https server then a captive portal might end up causing ssl
> errors.
Yes, network error means "do nothing, affect nothing".
>
> > Only problem would be if the portal returned 404 or 410 for the manifest
> > request. Then we would delete the cache.
>
> I'm not terribly worried about this since I don't think 404 errors would
> happen that often from captive portals.
Unless badly administrated.
Reporter | ||
Comment 4•12 years ago
|
||
Ok, I don't think this is a blocker then.
blocking-basecamp: --- → -
I think this is a blocker (blowing away apps people have paid for) but sounds like WFM.
Please reopen if you think there's anything left to do here.
Status: NEW → RESOLVED
blocking-basecamp: - → +
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•