WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 88690
IndexedDB: Error codes, phase two
https://bugs.webkit.org/show_bug.cgi?id=88690
Summary
IndexedDB: Error codes, phase two
Alec Flett
Reported
2012-06-08 14:44:22 PDT
IndexedDB: Error codes, phase two
Attachments
Patch
(27.86 KB, patch)
2012-06-08 14:49 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch
(27.87 KB, patch)
2012-06-11 13:54 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch
(27.71 KB, patch)
2012-06-11 16:25 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch
(27.75 KB, patch)
2012-06-12 11:07 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Alec Flett
Comment 1
2012-06-08 14:49:43 PDT
Created
attachment 146655
[details]
Patch
Alec Flett
Comment 2
2012-06-11 13:54:24 PDT
jsbell@ / dgrogan@ - sanity check? This is a few small things that span a lot of files. They're all kind of interconnected, and would be a mess to try to decouple: - fix tests that try to create transactions in the setversion transaction (removal of that, along with a patch that verifies that you CANNOT do that, is coming up when this lands) - removes bit about I/O errors and error codes - spec now says UNKNOWN_ERR is correct - moves some readonly checks into the frontend, and puts an assert in the backend - this helps reduce RPCs as well as consolidates error checks (otherwise, trying to implement which exception takes precedence over other exceptions is near-impossible)
Alec Flett
Comment 3
2012-06-11 13:54:44 PDT
Created
attachment 146899
[details]
Patch
Joshua Bell
Comment 4
2012-06-11 15:03:46 PDT
Comment on
attachment 146899
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=146899&action=review
Overall lgtm, just nits.
> Source/WebCore/ChangeLog:17 > + already correct.
Need to close the parentheses.
> Source/WebCore/Modules/indexeddb/IDBCursor.cpp:209 > + ec = IDBDatabaseException::READ_ONLY_ERR;
FYI, in one of my in-progress patches I added IDBTransaction::isVersionChange() as a convenience. Maybe add IDBTransaction::isReadOnly() ?
> LayoutTests/storage/indexeddb/mozilla/index-prev-no-duplicate.html:85 > +function createObjectStore(request)
The onsuccess callback parameter is an event, not a request. This is also not necessary as the request object from line 80 is global, and the eval in line 89 has a global context - the parameter would not be visible to it anyway.
> LayoutTests/storage/indexeddb/mozilla/index-prev-no-duplicate.html:107 > + }
Should have a ; after the brace.
> LayoutTests/storage/indexeddb/resources/cursor-advance.js:51 > +function createObjectStore(request)
Ditto.
Alec Flett
Comment 5
2012-06-11 16:25:56 PDT
Created
attachment 146955
[details]
Patch
Alec Flett
Comment 6
2012-06-11 16:32:08 PDT
tony@ - r? cq?
Tony Chang
Comment 7
2012-06-11 16:37:17 PDT
Comment on
attachment 146955
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=146955&action=review
> Source/WebCore/Modules/indexeddb/IDBTransaction.h:73 > + bool isReadOnly() const { return m_mode == READ_ONLY; };
Nit: The semicolon at the end isn't necessary.
> Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.h:79 > + const unsigned short m_mode;
Nit: Can we change this from unsigned short to Mode in a follow up change?
Alec Flett
Comment 8
2012-06-12 11:07:17 PDT
Created
attachment 147114
[details]
Patch
Alec Flett
Comment 9
2012-06-12 11:08:16 PDT
Comment on
attachment 147114
[details]
Patch tony@ or jsbell@ - cq? (nit addressed - we're cleaning up the whole mode thing over a series of patches, and I'll try to make the enum thing part of that)
WebKit Review Bot
Comment 10
2012-06-12 11:54:11 PDT
Comment on
attachment 147114
[details]
Patch Rejecting
attachment 147114
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 ERROR: /mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output:
http://queues.webkit.org/results/12946582
Alec Flett
Comment 11
2012-06-12 12:16:29 PDT
Comment on
attachment 147114
[details]
Patch sorry tony@ - one more try? At least my committer paperwork is in the mail :)
Tony Chang
Comment 12
2012-06-12 12:20:20 PDT
(In reply to
comment #10
)
> (From update of
attachment 147114
[details]
) > Rejecting
attachment 147114
[details]
from commit-queue. > > Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 > > ERROR: /mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). > > Full output:
http://queues.webkit.org/results/12946582
You should be able to use "webkit-patch land-safely" when you have r+ now. It will fill in the reviewer name, upload the patch and set cq?.
WebKit Review Bot
Comment 13
2012-06-12 13:46:15 PDT
Comment on
attachment 147114
[details]
Patch Clearing flags on attachment: 147114 Committed
r120114
: <
http://trac.webkit.org/changeset/120114
>
WebKit Review Bot
Comment 14
2012-06-12 13:46:20 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug