This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24474 - StorageQuota.requestPersistentQuota() should use [Clamp] on newQuota argument
Summary: StorageQuota.requestPersistentQuota() should use [Clamp] on newQuota argument
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Quota Management API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Kinuko Yasuda
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 03:40 UTC by kinuko
Modified: 2014-02-04 03:54 UTC (History)
3 users (show)

See Also:


Attachments

Description kinuko 2014-02-03 03:40:26 UTC
https://dvcs.w3.org/hg/quota/raw-file/tip/Overview.html#storagequota-interface

Calling requestPersistentQuota(-1) could result in requesting an unexpectedly huge quota value. We should add [Clamp] so that out-of-range value is always clamped in the same way across implementation.
Comment 1 kinuko 2014-02-04 03:54:58 UTC
Updated the draft:

 Promise requestPersistentQuota ([Clamp] unsigned long long newQuota);