WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
23022
Fix multiple issues with appcache online whitelist handling
https://bugs.webkit.org/show_bug.cgi?id=23022
Summary
Fix multiple issues with appcache online whitelist handling
Alexey Proskuryakov
Reported
2008-12-29 03:41:35 PST
Patch forthcoming.
Attachments
proposed patch
(13.41 KB, patch)
2008-12-29 03:57 PST
,
Alexey Proskuryakov
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2008-12-29 03:57:26 PST
Created
attachment 26288
[details]
proposed patch
Darin Adler
Comment 2
2008-12-30 10:34:54 PST
Comment on
attachment 26288
[details]
proposed patch
> + unsigned whitelistSize = m_onlineWhitelist.size(); > + for (unsigned i = 0; i < whitelistSize; ++i) {
We normally use size_t to iterate vectors.
> + unsigned whitelistSize = onlineWhitelist.size(); > + for (unsigned i = 0; i < whitelistSize; ++i) {
Ditto. For scaling, with large whitelists, it seems we might want to come up with a hash function so we can use a hashed set rather than a vector.
> +# This should work normally. > +counter.php?uncached > \ No newline at end of file
Can we add a newline? r=me
Alexey Proskuryakov
Comment 3
2008-12-30 10:57:52 PST
(In reply to
comment #2
)
> For scaling, with large whitelists, it seems we might want to come up with a > hash function so we can use a hashed set rather than a vector.
I'm not aware of any way to use a hash function for prefix matching. We could use a tree though. But I doubt that whitelists will be very large.
> > +# This should work normally. > > +counter.php?uncached > > \ No newline at end of file > > Can we add a newline?
I didn't add it intentionally - I wanted to have a test for parsing such a manifest.
Alexey Proskuryakov
Comment 4
2009-01-02 03:13:04 PST
Committed revision 39548.
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