Bug 37812 - Assertion failure when appcache/fail-on-update.html is run twice in a row
Summary: Assertion failure when appcache/fail-on-update.html is run twice in a row
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexey Proskuryakov
Depends on: 43506
  Show dependency treegraph
Reported: 2010-04-19 12:15 PDT by Alexey Proskuryakov
Modified: 2010-10-04 16:13 PDT (History)
1 user (show)

See Also:

work in progress (8.43 KB, patch)
2010-08-17 03:05 PDT, Alexey Proskuryakov
no flags Details | Formatted Diff | Diff
proposed fix (8.46 KB, patch)
2010-10-04 16:02 PDT, Alexey Proskuryakov
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2010-04-19 12:15:52 PDT
run-webkit-tests --repeat 2 http/tests/appcache/fail-on-update.html

This often fails an assertion in associateDocumentLoaderWithCache(), as an obsolete cache gets associated with a document. This seems to be a mistake in the spec, e-mailed <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/025975.html>.
Comment 1 Alexey Proskuryakov 2010-08-12 13:37:42 PDT
Spec fixed in <http://html5.org/tools/web-apps-tracker?from=5285&to=5286>.
Comment 2 Alexey Proskuryakov 2010-08-17 03:05:21 PDT
Created attachment 64568 [details]
work in progress

It's easy to apply the spec changes, but my test uncovered several other bugs. This patch fixes those, but the test still crashes randomly, possibly due to the same issue as bug 43506.
Comment 3 Alexey Proskuryakov 2010-10-04 16:02:15 PDT
Created attachment 69709 [details]
proposed fix
Comment 4 Adam Barth 2010-10-04 16:06:22 PDT
Comment on attachment 69709 [details]
proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=69709&action=review

Hum...  This change is a bit mysterious to me, but ap tells me that no one really understands appcache and he's looking for more of a sanity check.

> LayoutTests/http/tests/appcache/resources/fail-on-update-2.php:4
> +$tmpFile = sys_get_temp_dir() . "/" . "fail_on_update_state";

Does sys_get_temp_dir give you something specific to webkit?
Comment 5 Alexey Proskuryakov 2010-10-04 16:13:05 PDT
Committed <http://trac.webkit.org/changeset/69048>.