[Webkit-unassigned] [Bug 40627] Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 27 10:22:12 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40627





--- Comment #33 from David Kilzer (ddkilzer) <ddkilzer at webkit.org>  2010-07-27 10:22:12 PST ---
(In reply to comment #30)
> > > diff --git a/WebCore/loader/appcache/ApplicationCacheStorage.h b/WebCore/loader/appcache/ApplicationCacheStorage.h
> > > +    static const int64_t noQuota = INT64_MAX;
> > 
> > It's unfortunate that this constant isn't "-1" since it's a signed value.  Has this ship already sailed for existing users?
> 
> I few points on this int64 part:
> 
>   - session storage uses the max as noQuota, so I went with the flow.
>   - this is signed only because SQLite doesn't store unsigned. I thought about this later, and
>     I think this value should actually be unsigned, and I check and log cases where the value
>     attempts to be set more than INT64_MAX.
>   - I actually use -1 later on to mean "unknown" or "not set" rather than using a boolean.

Okay.

> Also the build bots don't like INT64_MAX on other platforms. Do you know of a
> platform independent constant I can use? Using numeric_limit<int64_t> gave
> me a warning at compile time.

Maybe numeric_limit<long long>?  I think int64_t is just a typedef on most platforms.  At worst, I suppose we could define it for platforms that are missing it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list