WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
69567
Make IconLoader a CachedResourceClient
https://bugs.webkit.org/show_bug.cgi?id=69567
Summary
Make IconLoader a CachedResourceClient
Nate Chapin
Reported
2011-10-06 14:55:14 PDT
This, combined with bugs.webkit.org/show_bug.cgi?id=61225, would allow us to remove SubresourceLoaderClient and simplify the layering in the loader. Unlike bugs.webkit.org/show_bug.cgi?id=61225, this patch is relatively small.
Attachments
patch
(29.61 KB, patch)
2011-10-06 14:59 PDT
,
Nate Chapin
no flags
Details
Formatted Diff
Diff
Patch for landing
(30.61 KB, patch)
2011-10-07 10:23 PDT
,
Nate Chapin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Nate Chapin
Comment 1
2011-10-06 14:59:07 PDT
Created
attachment 110037
[details]
patch This is plumbing only, the CachedResource for an icon load is never reused. I'd be happy to change that policy in a later patch, if others think it's a good idea.
Adam Barth
Comment 2
2011-10-06 16:04:25 PDT
Comment on
attachment 110037
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=110037&action=review
This looks great. One question: Why "raw" resource instead of "icon" resource? Are you planning to use this kind of cached resource for other purposes?
> Source/WebCore/loader/cache/CachedResource.h:139 > + virtual bool ignoreForRequestCount() const
Why virtual?
Nate Chapin
Comment 3
2011-10-07 08:49:47 PDT
(In reply to
comment #2
)
> (From update of
attachment 110037
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=110037&action=review
> > This looks great. One question: Why "raw" resource instead of "icon" resource? Are you planning to use this kind of cached resource for other purposes?
The behavior of the CachedResource for icons will be pretty much exactly the behavior of the CachedResource for DocumentThreadableLoader (see the naming in
https://bugs.webkit.org/show_bug.cgi?id=61225
) Also, I was trying to indicate that this CachedResource type has no decoded version of the data, unlike all of the other types.
> > > Source/WebCore/loader/cache/CachedResource.h:139 > > + virtual bool ignoreForRequestCount() const > > Why virtual?
I had been thinking that it might make sense to allow CachedResource subtypes to override this, but I don't think it's actually necessary. Will remove before landing.
Nate Chapin
Comment 4
2011-10-07 08:50:50 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 110037
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=110037&action=review
> > > > This looks great. One question: Why "raw" resource instead of "icon" resource? Are you planning to use this kind of cached resource for other purposes?
> > The behavior of the CachedResource for icons will be pretty much exactly the behavior of the CachedResource for DocumentThreadableLoader (see the naming in
https://bugs.webkit.org/show_bug.cgi?id=61225
)
I hit submit too soon. The icon behavior should be a strict subset of the behavior for DocumentThreadableLoader
Adam Barth
Comment 5
2011-10-07 08:57:16 PDT
Ok. We might end up with empty subclasses so that we can continue to do security checks using semantically meaningful type names, but that's a super minor issue and something we can worry about in the future.
Nate Chapin
Comment 6
2011-10-07 10:23:53 PDT
Created
attachment 110167
[details]
Patch for landing
WebKit Review Bot
Comment 7
2011-10-07 11:15:11 PDT
Comment on
attachment 110167
[details]
Patch for landing Clearing flags on attachment: 110167 Committed
r96961
: <
http://trac.webkit.org/changeset/96961
>
WebKit Review Bot
Comment 8
2011-10-07 11:15:16 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug