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 10585 - Need an error to indicate that the user disallowed access
Summary: Need an error to indicate that the user disallowed access
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Jonas Sicking (Not reading bugmail)
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2010-09-08 23:57 UTC by Shawn Wilsher :sdwilsh (Mozilla)
Modified: 2011-03-29 23:08 UTC (History)
4 users (show)

See Also:


Description Shawn Wilsher :sdwilsh (Mozilla) 2010-09-08 23:57:19 UTC
Mozilla like to see a code in IDBDatabaseException that would indicate that the the user denied permission to use IndexedDB, much like PERMISSION_DENIED in geolocation.
Comment 1 Nikunj Mehta 2010-09-09 00:06:25 UTC
Could this not be NOT_ALLOWED_ERR? In any case, it is a sub-category of the non-transient errors. If we want to add a new one, its value should be 6.
Comment 2 Shawn Wilsher :sdwilsh (Mozilla) 2010-09-09 00:08:22 UTC
Well, it's more like RECOVERABLE_ERR, but having a specific error so the site knows that the user denied it seems a bit more usable.  The site could then say, "Hey, you denied access, but we can't actually doing anything without that access".
Comment 3 Jeremy Orlow 2010-12-10 12:23:28 UTC
Are you planning on working on this soon?  If not, maybe you should assign it to
Comment 4 Jonas Sicking (Not reading bugmail) 2011-03-29 23:02:47 UTC

I also removed some unused error codes and make the remaining ones consecutive and non-zero