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 24475 - StorageQuota.supportedTypes should return a frozen Array
Summary: StorageQuota.supportedTypes should return a frozen Array
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:54 UTC by kinuko
Modified: 2015-04-01 13:42 UTC (History)
5 users (show)

See Also:


Attachments

Description kinuko 2014-02-03 03:54:40 UTC
Adding a simple method like

isSupportedType(type)

might be easier / more convenient in real usage?
Comment 1 Domenic Denicola 2014-02-03 04:03:54 UTC
Alternately you could use the fruits of https://www.w3.org/Bugs/Public/show_bug.cgi?id=23682 and use a frozen array. That's option A in the original post there; according to https://www.w3.org/Bugs/Public/show_bug.cgi?id=23682#c7 the resulting syntax is going to be

[SameObject] readonly attribute frozen array<StorageType> supportedTypes;
Comment 2 kinuko 2014-02-03 04:24:38 UTC
Thanks for the suggestion, I just skimmed through the issue and it looks returning a frozen JS array perfectly makes sense in our case.

I'll update the spec to use [SameObject] (and 'frozen' when we have it in IDL) if it gets no objections.
Comment 3 kinuko 2014-02-03 04:26:06 UTC
Updating the subject for clarification.
Comment 4 Arthur Barstow 2015-04-01 13:42:42 UTC
It appears Kinuko fixed this on Github via Issue <https://github.com/kinu/quota-api/issues/3> and commit <https://github.com/kinu/quota-api/issues/3#ref-commit-b1b0c63>. Do you agree Kinuko and Domenic?


Kinuko, BTW, now that you are using GH for this spec <>, perhaps this Bugzilla component should be: marked as "Historical", the component no longer accept new bugs and Github Issues be used exclusively for this spec. WDYT? If you agree, I'll work with W3C staff to make this happen.