Bug 163749 - IndexedDB 2.0: Support IDBObjectStore name assignment
Summary: IndexedDB 2.0: Support IDBObjectStore name assignment
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks: 160306
  Show dependency treegraph
 
Reported: 2016-10-20 12:38 PDT by Brady Eidson
Modified: 2016-10-20 16:06 PDT (History)
9 users (show)

See Also:


Attachments
Patch (70.95 KB, patch)
2016-10-20 12:43 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.42 MB, application/zip)
2016-10-20 13:29 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-yosemite (1.76 MB, application/zip)
2016-10-20 13:52 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews102 for mac-yosemite (888.46 KB, application/zip)
2016-10-20 13:56 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews125 for ios-simulator-wk2 (10.18 MB, application/zip)
2016-10-20 13:58 PDT, Build Bot
no flags Details
Patch (78.86 KB, patch)
2016-10-20 14:31 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2016-10-20 12:38:22 PDT
IndexedDB 2.0: Support IDBObjectStore name assignment
Comment 1 Brady Eidson 2016-10-20 12:38:46 PDT
<rdar://problem/28806931>
Comment 2 Brady Eidson 2016-10-20 12:43:27 PDT
Created attachment 292238 [details]
Patch
Comment 3 Alex Christensen 2016-10-20 13:10:23 PDT
Comment on attachment 292238 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=292238&action=review

test renaming an object store to an existing object store's name.

> Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp:115
> +        return Exception { INVALID_STATE_ERR, makeString(ASCIILiteral("Failed set property 'name' on 'IDBObjectStore': The database already has an object store named '"), name, ASCIILiteral("'.")) };

I'm not sure if ASCIILiteral helps if it's inside a makeString.

> LayoutTests/storage/indexeddb/resources/readonly.js:-33
> -    setReadonlyProperty("objectStore.name", "'bar'");

Explain why this is removed in the changelog.
Comment 4 Build Bot 2016-10-20 13:29:54 PDT
Comment on attachment 292238 [details]
Patch

Attachment 292238 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2332893

New failing tests:
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-errors.html
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-store.html
Comment 5 Build Bot 2016-10-20 13:29:58 PDT
Created attachment 292243 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-10-20 13:52:38 PDT
Comment on attachment 292238 [details]
Patch

Attachment 292238 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2332947

New failing tests:
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-errors.html
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-store.html
Comment 7 Build Bot 2016-10-20 13:52:42 PDT
Created attachment 292247 [details]
Archive of layout-test-results from ews117 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-10-20 13:56:23 PDT
Comment on attachment 292238 [details]
Patch

Attachment 292238 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2333027

New failing tests:
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-errors.html
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-store.html
Comment 9 Build Bot 2016-10-20 13:56:27 PDT
Created attachment 292253 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 10 Build Bot 2016-10-20 13:58:19 PDT
Comment on attachment 292238 [details]
Patch

Attachment 292238 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2332982

New failing tests:
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-errors.html
imported/w3c/web-platform-tests/IndexedDB/idbobjectstore-rename-store.html
Comment 11 Build Bot 2016-10-20 13:58:23 PDT
Created attachment 292257 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 12 Brady Eidson 2016-10-20 14:31:55 PDT
Created attachment 292264 [details]
Patch
Comment 13 Brady Eidson 2016-10-20 14:34:38 PDT
Relying on EWS to sort out layouttest issues, will cq+ once green.
Comment 14 Brady Eidson 2016-10-20 15:42:35 PDT
The current ios-sim failure is unrelated stuff. cq+'ing
Comment 15 WebKit Commit Bot 2016-10-20 16:06:06 PDT
Comment on attachment 292264 [details]
Patch

Clearing flags on attachment: 292264

Committed r207641: <http://trac.webkit.org/changeset/207641>
Comment 16 WebKit Commit Bot 2016-10-20 16:06:13 PDT
All reviewed patches have been landed.  Closing bug.