Changeset 237591 in webkit
- Timestamp:
- Oct 30, 2018 10:32:05 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 54 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r237590 r237591 1 2018-10-30 Sihui Liu <sihui_liu@apple.com> 2 3 Add a deprecation warning to console for Web SQL 4 https://bugs.webkit.org/show_bug.cgi?id=190936 5 6 Reviewed by Ryosuke Niwa. 7 8 Rebaseline the tests that are affected by the added console message. 9 10 * fast/dom/MutationObserver/database-callback-delivery-expected.txt: 11 * fast/frames/sandboxed-iframe-storage-expected.txt: 12 * fast/history/page-cache-webdatabase-no-transaction-db-expected.txt: 13 * http/tests/security/cross-origin-websql-allowed-expected.txt: 14 * http/tests/security/cross-origin-websql-expected.txt: 15 * http/tests/security/same-origin-websql-blocked-expected.txt: 16 * http/tests/security/storage-blocking-loosened-websql-expected.txt: 17 * http/tests/security/storage-blocking-strengthened-websql-expected.txt: 18 * http/tests/storage/callbacks-are-called-in-correct-context-expected.txt: 19 * inspector/runtime/CommandLineAPI-inspect-expected.txt: 20 * js/dom/callback-function-with-handle-event-expected.txt: 21 * js/dom/exceptions-thrown-in-callbacks-expected.txt: 22 * storage/websql/alter-to-info-table-expected.txt: 23 * storage/websql/change-version-expected.txt: 24 * storage/websql/change-version-handle-reuse-expected.txt: 25 * storage/websql/change-version-no-crash-on-preflight-failure-expected.txt: 26 * storage/websql/close-during-stress-test-expected.txt: 27 * storage/websql/database-lock-after-reload-expected.txt: 28 * storage/websql/empty-statement-expected.txt: 29 * storage/websql/execute-sql-args-expected.txt: 30 * storage/websql/execute-sql-rowsAffected-expected.txt: 31 * storage/websql/executesql-accepts-only-one-statement-expected.txt: 32 * storage/websql/hash-change-with-xhr-expected.txt: 33 * storage/websql/multiple-databases-garbage-collection-expected.txt: 34 * storage/websql/multiple-transactions-expected.txt: 35 * storage/websql/multiple-transactions-on-different-handles-expected.txt: 36 * storage/websql/null-callbacks-expected.txt: 37 * storage/websql/open-database-creation-callback-expected.txt: 38 * storage/websql/open-database-creation-callback-isolated-world-expected.txt: 39 * storage/websql/open-database-empty-version-expected.txt: 40 * storage/websql/open-database-expand-quota-expected.txt: 41 * storage/websql/open-database-over-quota-expected.txt: 42 * storage/websql/open-database-set-empty-version-expected.txt: 43 * storage/websql/open-database-while-transaction-in-progress-expected.txt: 44 * storage/websql/private-browsing-noread-nowrite-expected.txt: 45 * storage/websql/read-and-write-transactions-dont-run-together-expected.txt: 46 * storage/websql/read-transactions-running-concurrently-expected.txt: 47 * storage/websql/sql-data-types-expected.txt: 48 * storage/websql/statement-error-callback-expected.txt: 49 * storage/websql/statement-error-callback-isolated-world-expected.txt: 50 * storage/websql/statement-success-callback-isolated-world-expected.txt: 51 * storage/websql/success-callback-expected.txt: 52 * storage/websql/success-callback-when-page-defers-loading-expected.txt: 53 * storage/websql/test-authorizer-expected.txt: 54 * storage/websql/transaction-callback-exception-crash-expected.txt: 55 * storage/websql/transaction-callback-isolated-world-expected.txt: 56 * storage/websql/transaction-database-expand-quota-expected.txt: 57 * storage/websql/transaction-error-callback-expected.txt: 58 * storage/websql/transaction-error-callback-isolated-world-expected.txt: 59 * storage/websql/transaction-prototype-expected.txt: 60 * storage/websql/transaction-success-callback-isolated-world-expected.txt: 61 1 62 2018-10-30 Sihui Liu <sihui_liu@apple.com> 2 63 -
trunk/LayoutTests/fast/dom/MutationObserver/database-callback-delivery-expected.txt
r137662 r237591 1 CONSOLE MESSAGE: line 21: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Testing mutations are delivered following Database transaction callbacks. 2 3 -
trunk/LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt
r231450 r237591 1 CONSOLE MESSAGE: line 1: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 1: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This test verifies that a sandboxed iframe does not have access to any session storage, local storage or database. 2 4 -
trunk/LayoutTests/fast/history/page-cache-webdatabase-no-transaction-db-expected.txt
r181577 r237591 1 CONSOLE MESSAGE: line 32: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Tests that a page with an open WebDatabase with no pending transaction goes into the page cache. 2 3 -
trunk/LayoutTests/http/tests/security/cross-origin-websql-allowed-expected.txt
r231450 r237591 1 CONSOLE MESSAGE: line 5: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 5: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This iframe should not return any errors: 2 4 -
trunk/LayoutTests/http/tests/security/cross-origin-websql-expected.txt
r231450 r237591 1 CONSOLE MESSAGE: line 5: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 5: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This iframe should return a security error: 2 4 -
trunk/LayoutTests/http/tests/security/same-origin-websql-blocked-expected.txt
r231450 r237591 1 CONSOLE MESSAGE: line 5: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This iframe should return a security error: 2 3 -
trunk/LayoutTests/http/tests/security/storage-blocking-loosened-websql-expected.txt
r231450 r237591 1 CONSOLE MESSAGE: line 12: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 22: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This iframe should return only one security error: 2 4 -
trunk/LayoutTests/http/tests/security/storage-blocking-strengthened-websql-expected.txt
r231450 r237591 1 CONSOLE MESSAGE: line 12: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 22: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This iframe should return only one security error: 2 4 -
trunk/LayoutTests/http/tests/storage/callbacks-are-called-in-correct-context-expected.txt
r64537 r237591 1 CONSOLE MESSAGE: line 4: Web SQL is deprecated. Please use IndexedDB instead. 1 2 2 3 -
trunk/LayoutTests/inspector/runtime/CommandLineAPI-inspect-expected.txt
r220159 r237591 1 CONSOLE MESSAGE: line 1: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Tests for CommandLineAPI.prototype.inspect with different object types. 2 3 -
trunk/LayoutTests/js/dom/callback-function-with-handle-event-expected.txt
r156066 r237591 1 CONSOLE MESSAGE: line 32: Web SQL is deprecated. Please use IndexedDB instead. 1 2 When a JS callback is a function, it should be called. If the function has another function as its handleEvent property, that function should not be called. 2 3 -
trunk/LayoutTests/js/dom/exceptions-thrown-in-callbacks-expected.txt
r156066 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 CONSOLE MESSAGE: line 17: PASS: toString called on exception value thrown from event handler 2 3 CONSOLE MESSAGE: line 23: PASS: toString called on exception value thrown from sql transaction callback -
trunk/LayoutTests/storage/websql/alter-to-info-table-expected.txt
r183646 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This tests that a tricky way to setup your own info table fails. 2 3 CREATE TABLE statement succeeded. -
trunk/LayoutTests/storage/websql/change-version-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 63: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 64: Web SQL is deprecated. Please use IndexedDB instead. 3 CONSOLE MESSAGE: line 86: Web SQL is deprecated. Please use IndexedDB instead. 4 CONSOLE MESSAGE: line 45: Web SQL is deprecated. Please use IndexedDB instead. 1 5 This test verifies that the JS database.changeVersion() function works as expected. 2 6 Finished tests with version 3; expected version: 3 -
trunk/LayoutTests/storage/websql/change-version-handle-reuse-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This tests that a database can be accessed after changing its version. You should see an error about FooBar table below, not about mismatching versions. 2 3 changeVersion: transaction callback -
trunk/LayoutTests/storage/websql/change-version-no-crash-on-preflight-failure-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 21: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test verifies that no assertion is triggered when changeVersion()'s preflight step fails. 2 3 PASS: db.changeVersion() failed as expected, and no assertions were triggered. -
trunk/LayoutTests/storage/websql/close-during-stress-test-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 9: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Should not crash or cause an assertion failure. 2 3 -
trunk/LayoutTests/storage/websql/database-lock-after-reload-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 46: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 39: Web SQL is deprecated. Please use IndexedDB instead. 1 3 Inserting some data 2 4 Test part 2 Complete -
trunk/LayoutTests/storage/websql/empty-statement-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 25: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Executed an empty statement. If you didn't see a crash or assertion, the test passed. 2 3 -
trunk/LayoutTests/storage/websql/execute-sql-args-expected.txt
r210134 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 PASS. executeSql(null) did not throw an exception 2 3 PASS. executeSql(undefined) did not throw an exception -
trunk/LayoutTests/storage/websql/execute-sql-rowsAffected-expected.txt
r130891 r237591 1 CONSOLE MESSAGE: line 25: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test tests that SQLResultSet.rowsAffected attribute is correct in success callback for executeSql(). 2 3 -
trunk/LayoutTests/storage/websql/executesql-accepts-only-one-statement-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 54: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test tests that executeSql() fails when called with a string that has more than one valid statement in it. 2 3 Test passed. -
trunk/LayoutTests/storage/websql/hash-change-with-xhr-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Changing the hash to create history entries. 2 3 Db is warmed up -
trunk/LayoutTests/storage/websql/multiple-databases-garbage-collection-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This test opens two databases, queues up a series of operations on both, then "forgets" about one of them. After forcing GC, resources associated with that database should be freed gracefully. 2 4 Forgotten Database Transaction Complete -
trunk/LayoutTests/storage/websql/multiple-transactions-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This is a test to see if the database API allows multiple transactions to be queued on the same database at once: 2 3 Transaction 1 Started -
trunk/LayoutTests/storage/websql/multiple-transactions-on-different-handles-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 3 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 4 This is a test to see if queueing up multiple transactions on different handles to the same database results in a deadlock. 2 5 db1 read statement succeeded -
trunk/LayoutTests/storage/websql/null-callbacks-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 19: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test checks that 'null' can be used wherever we expect an optional callback. 2 3 PASS -
trunk/LayoutTests/storage/websql/open-database-creation-callback-expected.txt
r178527 r237591 1 CONSOLE MESSAGE: line 30: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 56: Web SQL is deprecated. Please use IndexedDB instead. 1 3 CONSOLE MESSAGE: line 56: unable to open database, version mismatch, '1.0' does not match the currentVersion of '' 4 CONSOLE MESSAGE: line 69: Web SQL is deprecated. Please use IndexedDB instead. 5 CONSOLE MESSAGE: line 70: Web SQL is deprecated. Please use IndexedDB instead. 2 6 This test tests openDatabase()'s creation callback. 3 7 -
trunk/LayoutTests/storage/websql/open-database-creation-callback-isolated-world-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 6: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 42: Web SQL is deprecated. Please use IndexedDB instead. 1 3 ALERT: undefined 2 4 ALERT: PASS: document.body.bar visible in a callback created in this world. -
trunk/LayoutTests/storage/websql/open-database-empty-version-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 9: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This tests that calling openDatabase with an empty version string does not cause an exception to be thrown. 2 3 SUCCESS! Did not throw an exception. -
trunk/LayoutTests/storage/websql/open-database-expand-quota-expected.txt
r157874 r237591 1 CONSOLE MESSAGE: line 13: Web SQL is deprecated. Please use IndexedDB instead. 1 2 UI DELEGATE DATABASE CALLBACK: increased quota to 8000000 2 3 This tests that calling openDatabase with a size over 5MB doesn't assert on debug builds, and will increase the quota to accommodate the requested size whennot exceeding a max limit of 10M. -
trunk/LayoutTests/storage/websql/open-database-over-quota-expected.txt
r158447 r237591 1 CONSOLE MESSAGE: line 11: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This tests that calling openDatabase with a size greater or equal to the test max quota limit of 5MB doesn't assert on debug builds. 2 3 PASS -
trunk/LayoutTests/storage/websql/open-database-set-empty-version-expected.txt
r219663 r237591 1 CONSOLE MESSAGE: line 11: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 13: Web SQL is deprecated. Please use IndexedDB instead. 1 3 CONSOLE MESSAGE: line 13: unable to open database, version mismatch, 'test' does not match the currentVersion of '' 2 4 This tests that calling openDatabase with an empty version string sets the current version of that database to the empty string and subsequent attempts to open the database with a different expected version throw an exception. -
trunk/LayoutTests/storage/websql/open-database-while-transaction-in-progress-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This is a test to see if opening a database while a transaction is running on a different handle to the same database results in a deadlock. 2 4 openDatabase() succeeded. -
trunk/LayoutTests/storage/websql/private-browsing-noread-nowrite-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 92: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test makes sure that attempts to change the database during private browsing fail. 2 3 Setup statement 1 completed successfully -
trunk/LayoutTests/storage/websql/read-and-write-transactions-dont-run-together-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 3 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 4 This test tests that read and write transactions on different handles to the same database don't run together. 2 5 Transaction successful. -
trunk/LayoutTests/storage/websql/read-transactions-running-concurrently-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 18: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 18: Web SQL is deprecated. Please use IndexedDB instead. 1 3 This test tests that two read-only transactions on different handles to the same database run concurrently. 2 4 Read transactions running concurrently. -
trunk/LayoutTests/storage/websql/sql-data-types-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 82: Web SQL is deprecated. Please use IndexedDB instead. 1 2 PASS: property 'timestamp' ok, type was number 2 3 PASS: property 'id' ok, type was number -
trunk/LayoutTests/storage/websql/statement-error-callback-expected.txt
r147877 r237591 1 CONSOLE MESSAGE: line 64: Web SQL is deprecated. Please use IndexedDB instead. 1 2 CONSOLE MESSAGE: line 67: Exception in statement error callback 2 3 This test confirms that a transaction is immediately rolled back if and only if a statement's error callback throws an exception, returns true, or doesn't return any value. -
trunk/LayoutTests/storage/websql/statement-error-callback-isolated-world-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 6: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 45: Web SQL is deprecated. Please use IndexedDB instead. 1 3 ALERT: undefined 2 4 ALERT: PASS: document.body.bar visible in a callback created in this world. -
trunk/LayoutTests/storage/websql/statement-success-callback-isolated-world-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 6: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 45: Web SQL is deprecated. Please use IndexedDB instead. 1 3 ALERT: undefined 2 4 ALERT: PASS: document.body.bar visible in a callback created in this world. -
trunk/LayoutTests/storage/websql/success-callback-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 40: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test confirms that a successful transaction - both with and without a statement - receives its successCallback 2 3 Transaction succeeded - Transaction with one statement -
trunk/LayoutTests/storage/websql/success-callback-when-page-defers-loading-expected.txt
r189568 r237591 1 CONSOLE MESSAGE: line 18: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This tests that a SQL success callback completes when the page defers loading. 2 3 -
trunk/LayoutTests/storage/websql/test-authorizer-expected.txt
r214237 r237591 1 CONSOLE MESSAGE: line 8: Web SQL is deprecated. Please use IndexedDB instead. 1 2 This test tests the database authorizer. 2 3 SQLITE_CREATE_TABLE statement succeeded. -
trunk/LayoutTests/storage/websql/transaction-callback-exception-crash-expected.txt
r147877 r237591 1 CONSOLE MESSAGE: line 9: Web SQL is deprecated. Please use IndexedDB instead. 1 2 CONSOLE MESSAGE: line 13: TransactionCallbackError 2 3 If WebKit doesn't crash, this test has passed -
trunk/LayoutTests/storage/websql/transaction-callback-isolated-world-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 6: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 43: Web SQL is deprecated. Please use IndexedDB instead. 1 3 ALERT: undefined 2 4 ALERT: PASS: document.body.bar visible in a callback created in this world. -
trunk/LayoutTests/storage/websql/transaction-database-expand-quota-expected.txt
r236370 r237591 1 CONSOLE MESSAGE: line 48: Web SQL is deprecated. Please use IndexedDB instead. 1 2 UI DELEGATE DATABASE CALLBACK: exceededDatabaseQuotaForSecurityOrigin:{file, , 0} database:ExpandedQuotaTransaction 2 3 UI DELEGATE DATABASE CALLBACK: increased quota to 209715 -
trunk/LayoutTests/storage/websql/transaction-error-callback-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 76: Web SQL is deprecated. Please use IndexedDB instead. 1 2 CONSOLE MESSAGE: line 63: [object Object] 2 3 CONSOLE MESSAGE: line 63: [object Object] -
trunk/LayoutTests/storage/websql/transaction-error-callback-isolated-world-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 6: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 45: Web SQL is deprecated. Please use IndexedDB instead. 1 3 ALERT: undefined 2 4 ALERT: PASS: document.body.bar visible in a callback created in this world. -
trunk/LayoutTests/storage/websql/transaction-prototype-expected.txt
r199942 r237591 1 CONSOLE MESSAGE: line 9: Web SQL is deprecated. Please use IndexedDB instead. 1 2 Tests that it is possible to access SQLTransaction.constructor.prototype and that it is correct 2 3 -
trunk/LayoutTests/storage/websql/transaction-success-callback-isolated-world-expected.txt
r117816 r237591 1 CONSOLE MESSAGE: line 6: Web SQL is deprecated. Please use IndexedDB instead. 2 CONSOLE MESSAGE: line 43: Web SQL is deprecated. Please use IndexedDB instead. 1 3 ALERT: undefined 2 4 ALERT: PASS: document.body.bar visible in a callback created in this world. -
trunk/Source/WebCore/ChangeLog
r237590 r237591 1 2018-10-30 Sihui Liu <sihui_liu@apple.com> 2 3 Add a deprecation warning to console for Web SQL 4 https://bugs.webkit.org/show_bug.cgi?id=190936 5 6 Reviewed by Ryosuke Niwa. 7 8 No new tests. Just adding a console message. 9 10 * Modules/webdatabase/DOMWindowWebDatabase.cpp: 11 (WebCore::DOMWindowWebDatabase::openDatabase): 12 1 13 2018-10-30 Sihui Liu <sihui_liu@apple.com> 2 14 -
trunk/Source/WebCore/Modules/webdatabase/DOMWindowWebDatabase.cpp
r219856 r237591 46 46 if (!document) 47 47 return Exception { SecurityError }; 48 document->addConsoleMessage(MessageSource::Storage, MessageLevel::Warning, "Web SQL is deprecated. Please use IndexedDB instead."); 49 48 50 auto& securityOrigin = document->securityOrigin(); 49 51 if (!securityOrigin.canAccessDatabase(document->topOrigin()))
Note: See TracChangeset
for help on using the changeset viewer.