Summary: | HTML5 Application Cache Update Failures on Page Refresh | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andy Riedel <ariedel> | ||||||
Component: | WebCore Misc. | Assignee: | Alexey Proskuryakov <ap> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Major | CC: | ap, commit-queue, joepeck, michaeln, mrobinson, rniwa, xan.lopez | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac (Intel) | ||||||||
OS: | OS X 10.6 | ||||||||
URL: | http://ogw.watercooler-inc.com | ||||||||
Attachments: |
|
Description
Andy Riedel
2011-05-10 16:58:01 PDT
Both Safari and Firefox behaviors seem buggy indeed.
> The only way to actually update the cache a this point seems to be to restart Safari
Closing the current window and opening a new one seems to work, too.
Created attachment 93530 [details]
proposed fix
Comment on attachment 93530 [details] proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=93530&action=review > LayoutTests/http/tests/appcache/interrupted-update.html:15 > +if (applicationCache.status) { This check doesn't look necessary and it will cause this test to fail erroneously for the chromium port. Since the page contains a manifest attribute, the status value will return CHECKING when sampled at this time. > LayoutTests/http/tests/appcache/interrupted-update.html:49 > + log("\nPASS"); This test can't PASS the test when a cache is already present. Maybe add the alert() about a cache already being present here instead (or just include the message in the logging output) Comment on attachment 93530 [details]
proposed fix
OK, I'll change the test - but isn't it a bug in Chromium? Having status of CHECKING before a checking event is dispatched seems wrong.
Created attachment 93540 [details]
patch for landing
(In reply to comment #5) > OK, I'll change the test - but isn't it a bug in Chromium? Having status of CHECKING before a checking event is dispatched seems wrong. Thank you. As for the behavior, here's what the spec says... "The status attribute, on getting, must return the current state of the application cache that the ApplicationCache object's cache host is associated with, if any." Comment on attachment 93540 [details] patch for landing Clearing flags on attachment: 93540 Committed r86478: <http://trac.webkit.org/changeset/86478> All reviewed patches have been landed. Closing bug. It seems like interrupted-update.html has always been failing on GTK: http://build.webkit.org/results/GTK%20Linux%2032-bit%20Release/r86818%20(13889)/results.html http://build.webkit.org/results/GTK%20Linux%2032-bit%20Release/r86805%20(13882)/results.html |