Changeset 193994 in webkit
- Timestamp:
- Dec 11, 2015, 4:18:18 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r193990 r193994 1 2015-12-11 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: storage/indexeddb/optional-arguments.html fails. 4 https://bugs.webkit.org/show_bug.cgi?id=152194 5 6 Reviewed by Alex Christensen. 7 8 * platform/mac-wk1/TestExpectations: 9 * storage/indexeddb/invalid-keys-expected.txt: Updated for new error message. 10 * storage/indexeddb/optional-arguments-expected.txt: Remove results that expect IDBObjectStore.openKeyCursor() to be 11 a thing. That method no longer exists in the spec and was already removed from the test. 12 1 13 2015-12-11 Brady Eidson <beidson@apple.com> 2 14 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r193990 r193994 105 105 storage/indexeddb/open-db-private-browsing.html [ Failure ] 106 106 storage/indexeddb/open-ordering.html [ Failure ] 107 storage/indexeddb/optional-arguments.html [ Failure ]108 107 storage/indexeddb/properties-disabled-at-runtime.html [ Failure ] 109 108 storage/indexeddb/setversion-blocked-by-versionchange-close.html [ Failure ] -
trunk/LayoutTests/storage/indexeddb/invalid-keys-expected.txt
r193892 r193994 14 14 PASS code is 0 15 15 PASS ename is 'DataError' 16 Exception message: Failed to store record in an IDBObjectStore: The parameter is not a valid key.16 Exception message: Failed to store record in an IDBObjectStore: The object store uses out-of-line keys and has no key generator and the key parameter was not provided. 17 17 Expecting exception from request = objectStore.put('value', null) 18 18 PASS Exception was thrown. -
trunk/LayoutTests/storage/indexeddb/optional-arguments-expected.txt
r163963 r193994 51 51 verifyCursor(): 52 52 request = store.openCursor(3) 53 cursor = request.result54 PASS cursor.direction is "next"55 PASS continues is 156 57 verifyCursor():58 request = store.openKeyCursor()59 cursor = request.result60 PASS cursor.direction is "next"61 PASS continues is 562 63 verifyCursor():64 request = store.openKeyCursor(null)65 cursor = request.result66 PASS cursor.direction is "next"67 PASS continues is 568 69 verifyCursor():70 request = store.openKeyCursor(IDBKeyRange.lowerBound(4))71 cursor = request.result72 PASS cursor.direction is "next"73 PASS continues is 274 75 verifyCursor():76 request = store.openKeyCursor(3)77 53 cursor = request.result 78 54 PASS cursor.direction is "next" -
trunk/Source/WebCore/ChangeLog
r193991 r193994 1 2015-12-11 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: storage/indexeddb/optional-arguments.html fails. 4 https://bugs.webkit.org/show_bug.cgi?id=152194 5 6 Reviewed by Alex Christensen. 7 8 No new tests (At least one failing test now passes). 9 10 * Modules/indexeddb/client/IDBCursorImpl.cpp: 11 (WebCore::IDBClient::IDBCursor::continueFunction): Allow 'undefined' for the key. 12 13 * Modules/indexeddb/client/IDBObjectStoreImpl.cpp: 14 (WebCore::IDBClient::IDBObjectStore::add): Ditto. 15 (WebCore::IDBClient::IDBObjectStore::put): Ditto. 16 1 17 2015-12-11 Brady Eidson <beidson@apple.com> 2 18 -
trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp
r193990 r193994 221 221 222 222 DOMRequestState requestState(context); 223 RefPtr<IDBKey> key = scriptValueToIDBKey(&requestState, keyValue); 223 RefPtr<IDBKey> key; 224 if (!keyValue.jsValue().isUndefined()) 225 key = scriptValueToIDBKey(&requestState, keyValue); 226 224 227 continueFunction(key.get(), ec); 225 228 } -
trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp
r193981 r193994 215 215 RefPtr<WebCore::IDBRequest> IDBObjectStore::add(JSC::ExecState& execState, JSC::JSValue value, JSC::JSValue key, ExceptionCodeWithMessage& ec) 216 216 { 217 auto idbKey = scriptValueToIDBKey(execState, key); 217 RefPtr<IDBKey> idbKey; 218 if (!key.isUndefined()) 219 idbKey = scriptValueToIDBKey(execState, key); 218 220 return putOrAdd(execState, value, idbKey, IndexedDB::ObjectStoreOverwriteMode::NoOverwrite, InlineKeyCheck::Perform, ec); 219 221 } … … 221 223 RefPtr<WebCore::IDBRequest> IDBObjectStore::put(JSC::ExecState& execState, JSC::JSValue value, JSC::JSValue key, ExceptionCodeWithMessage& ec) 222 224 { 223 auto idbKey = scriptValueToIDBKey(execState, key); 225 RefPtr<IDBKey> idbKey; 226 if (!key.isUndefined()) 227 idbKey = scriptValueToIDBKey(execState, key); 224 228 return putOrAdd(execState, value, idbKey, IndexedDB::ObjectStoreOverwriteMode::Overwrite, InlineKeyCheck::Perform, ec); 225 229 }
Note:
See TracChangeset
for help on using the changeset viewer.