Bug 48592 - [Chrome] Need to fix an appcache regression introduced in r69226
Summary: [Chrome] Need to fix an appcache regression introduced in r69226
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Michael Nordman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 16:48 PDT by Michael Nordman
Modified: 2010-10-29 15:34 PDT (History)
4 users (show)

See Also:


Attachments
fix regression (4.59 KB, patch)
2010-10-28 18:01 PDT, Michael Nordman
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nordman 2010-10-28 16:48:18 PDT
r69226 fixed a bug with retrieving main resources out of webcore's appcache upon redirection. Ironically, chrome didn't exhibit a bug in this regard until this patch was landed. It broke chrome's handling of this case.
Comment 1 Michael Nordman 2010-10-28 18:01:47 PDT
Created attachment 72277 [details]
fix regression
Comment 2 Alexey Proskuryakov 2010-10-28 20:39:16 PDT
Comment on attachment 72277 [details]
fix regression

OK.

This code is overdue for refactoring - even the name ApplicationCacheHost conflicts with HTML5, and of course forking code is a recipe for continuing trouble.
Comment 3 Michael Nordman 2010-10-29 13:15:09 PDT
(In reply to comment #2)
> (From update of attachment 72277 [details])
> OK.
> 
> This code is overdue for refactoring - even the name ApplicationCacheHost conflicts with HTML5, and of course forking code is a recipe for continuing trouble.

Why do you say that name conflicts?

"A cache host is a Document or a SharedWorkerGlobalScope object. A cache host can be associated with an application cache."

This class is the class that instills a document or shared worker with that ability.
Comment 4 Alexey Proskuryakov 2010-10-29 13:22:16 PDT
The translation of "is a" relationship into C++ is very unambiguous. It's inheritance.

To match the HTML5 model, a class named ApplicationCacheHost (if one exists) has to be a parent class of Document.
Comment 5 Michael Nordman 2010-10-29 14:07:04 PDT
Committed r70923: <http://trac.webkit.org/changeset/70923>
Comment 6 WebKit Review Bot 2010-10-29 15:34:01 PDT
http://trac.webkit.org/changeset/70923 might have broken Leopard Intel Release (Tests) and Leopard Intel Debug (Tests)
The following tests are not passing:
media/controls-drag-timebar.html