Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent IndexedDB exceptions #5635

Open
rakudrama opened this issue Oct 3, 2012 · 6 comments
Open

Inconsistent IndexedDB exceptions #5635

rakudrama opened this issue Oct 3, 2012 · 6 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-libraries Issues impacting dart:html, etc., libraries

Comments

@rakudrama
Copy link
Member

In indexeddb_3_test at

   db.deleteObjectStore(STORE_NAME);

FireFox 15 throws DOMException
Chrome throws IDBDatabaseException
neither of these implement the standard library Exception.

It appears that they should all be DOMException: http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#exceptions
The exception type (exn.name) seems to be the only reliable point of diagnosis since the above spec says new exceptions not listed in the DOM4 table of exception names may have exn.code == 0.

It is clear that the DOM exceptions should implement Exception.

It is not clear beyond that what browser compatibility needs to be done.
It seems that exn.name is not well specified in practice.
exn.name is "SECURITY_ERR" in html/execeptions_test but the spec says it should be "SecurityError", with code 18 (DOMException.SecurityError).

@blois
Copy link
Contributor

blois commented Oct 15, 2012

Added this to the M2 milestone.

@blois
Copy link
Contributor

blois commented Nov 30, 2012

Removed this from the M2 milestone.
Added this to the M3 milestone.

@blois
Copy link
Contributor

blois commented Feb 14, 2013

Removed this from the M3 milestone.
Added this to the Later milestone.

@kevmoo
Copy link
Member

kevmoo commented Apr 7, 2014

Removed Area-HTML label.
Added Area-Library, Library-Html labels.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@rakudrama rakudrama added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-html labels Aug 4, 2014
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
@vsmenon vsmenon added area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. and removed area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. labels Jul 20, 2019
@sigmundch sigmundch added the web-libraries Issues impacting dart:html, etc., libraries label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

6 participants