Add a deprecation warning to console for Web SQL
authorsihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Oct 2018 17:32:05 +0000 (17:32 +0000)
committersihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Oct 2018 17:32:05 +0000 (17:32 +0000)
commit98c32ebe1fa421b0abb64caa9a81bf47d15b8ad3
treebd54d6e6fd3aa9a835a4cbc40512813485ceb2fd
parentc34bc692362cfd70c4c146947ec1816eb4cc57f2
Add a deprecation warning to console for Web SQL
https://bugs.webkit.org/show_bug.cgi?id=190936

Reviewed by Ryosuke Niwa.

Source/WebCore:

No new tests. Just adding a console message.

* Modules/webdatabase/DOMWindowWebDatabase.cpp:
(WebCore::DOMWindowWebDatabase::openDatabase):

LayoutTests:

Rebaseline the tests that are affected by the added console message.

* fast/dom/MutationObserver/database-callback-delivery-expected.txt:
* fast/frames/sandboxed-iframe-storage-expected.txt:
* fast/history/page-cache-webdatabase-no-transaction-db-expected.txt:
* http/tests/security/cross-origin-websql-allowed-expected.txt:
* http/tests/security/cross-origin-websql-expected.txt:
* http/tests/security/same-origin-websql-blocked-expected.txt:
* http/tests/security/storage-blocking-loosened-websql-expected.txt:
* http/tests/security/storage-blocking-strengthened-websql-expected.txt:
* http/tests/storage/callbacks-are-called-in-correct-context-expected.txt:
* inspector/runtime/CommandLineAPI-inspect-expected.txt:
* js/dom/callback-function-with-handle-event-expected.txt:
* js/dom/exceptions-thrown-in-callbacks-expected.txt:
* storage/websql/alter-to-info-table-expected.txt:
* storage/websql/change-version-expected.txt:
* storage/websql/change-version-handle-reuse-expected.txt:
* storage/websql/change-version-no-crash-on-preflight-failure-expected.txt:
* storage/websql/close-during-stress-test-expected.txt:
* storage/websql/database-lock-after-reload-expected.txt:
* storage/websql/empty-statement-expected.txt:
* storage/websql/execute-sql-args-expected.txt:
* storage/websql/execute-sql-rowsAffected-expected.txt:
* storage/websql/executesql-accepts-only-one-statement-expected.txt:
* storage/websql/hash-change-with-xhr-expected.txt:
* storage/websql/multiple-databases-garbage-collection-expected.txt:
* storage/websql/multiple-transactions-expected.txt:
* storage/websql/multiple-transactions-on-different-handles-expected.txt:
* storage/websql/null-callbacks-expected.txt:
* storage/websql/open-database-creation-callback-expected.txt:
* storage/websql/open-database-creation-callback-isolated-world-expected.txt:
* storage/websql/open-database-empty-version-expected.txt:
* storage/websql/open-database-expand-quota-expected.txt:
* storage/websql/open-database-over-quota-expected.txt:
* storage/websql/open-database-set-empty-version-expected.txt:
* storage/websql/open-database-while-transaction-in-progress-expected.txt:
* storage/websql/private-browsing-noread-nowrite-expected.txt:
* storage/websql/read-and-write-transactions-dont-run-together-expected.txt:
* storage/websql/read-transactions-running-concurrently-expected.txt:
* storage/websql/sql-data-types-expected.txt:
* storage/websql/statement-error-callback-expected.txt:
* storage/websql/statement-error-callback-isolated-world-expected.txt:
* storage/websql/statement-success-callback-isolated-world-expected.txt:
* storage/websql/success-callback-expected.txt:
* storage/websql/success-callback-when-page-defers-loading-expected.txt:
* storage/websql/test-authorizer-expected.txt:
* storage/websql/transaction-callback-exception-crash-expected.txt:
* storage/websql/transaction-callback-isolated-world-expected.txt:
* storage/websql/transaction-database-expand-quota-expected.txt:
* storage/websql/transaction-error-callback-expected.txt:
* storage/websql/transaction-error-callback-isolated-world-expected.txt:
* storage/websql/transaction-prototype-expected.txt:
* storage/websql/transaction-success-callback-isolated-world-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
54 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/MutationObserver/database-callback-delivery-expected.txt
LayoutTests/fast/frames/sandboxed-iframe-storage-expected.txt
LayoutTests/fast/history/page-cache-webdatabase-no-transaction-db-expected.txt
LayoutTests/http/tests/security/cross-origin-websql-allowed-expected.txt
LayoutTests/http/tests/security/cross-origin-websql-expected.txt
LayoutTests/http/tests/security/same-origin-websql-blocked-expected.txt
LayoutTests/http/tests/security/storage-blocking-loosened-websql-expected.txt
LayoutTests/http/tests/security/storage-blocking-strengthened-websql-expected.txt
LayoutTests/http/tests/storage/callbacks-are-called-in-correct-context-expected.txt
LayoutTests/inspector/runtime/CommandLineAPI-inspect-expected.txt
LayoutTests/js/dom/callback-function-with-handle-event-expected.txt
LayoutTests/js/dom/exceptions-thrown-in-callbacks-expected.txt
LayoutTests/storage/websql/alter-to-info-table-expected.txt
LayoutTests/storage/websql/change-version-expected.txt
LayoutTests/storage/websql/change-version-handle-reuse-expected.txt
LayoutTests/storage/websql/change-version-no-crash-on-preflight-failure-expected.txt
LayoutTests/storage/websql/close-during-stress-test-expected.txt
LayoutTests/storage/websql/database-lock-after-reload-expected.txt
LayoutTests/storage/websql/empty-statement-expected.txt
LayoutTests/storage/websql/execute-sql-args-expected.txt
LayoutTests/storage/websql/execute-sql-rowsAffected-expected.txt
LayoutTests/storage/websql/executesql-accepts-only-one-statement-expected.txt
LayoutTests/storage/websql/hash-change-with-xhr-expected.txt
LayoutTests/storage/websql/multiple-databases-garbage-collection-expected.txt
LayoutTests/storage/websql/multiple-transactions-expected.txt
LayoutTests/storage/websql/multiple-transactions-on-different-handles-expected.txt
LayoutTests/storage/websql/null-callbacks-expected.txt
LayoutTests/storage/websql/open-database-creation-callback-expected.txt
LayoutTests/storage/websql/open-database-creation-callback-isolated-world-expected.txt
LayoutTests/storage/websql/open-database-empty-version-expected.txt
LayoutTests/storage/websql/open-database-expand-quota-expected.txt
LayoutTests/storage/websql/open-database-over-quota-expected.txt
LayoutTests/storage/websql/open-database-set-empty-version-expected.txt
LayoutTests/storage/websql/open-database-while-transaction-in-progress-expected.txt
LayoutTests/storage/websql/private-browsing-noread-nowrite-expected.txt
LayoutTests/storage/websql/read-and-write-transactions-dont-run-together-expected.txt
LayoutTests/storage/websql/read-transactions-running-concurrently-expected.txt
LayoutTests/storage/websql/sql-data-types-expected.txt
LayoutTests/storage/websql/statement-error-callback-expected.txt
LayoutTests/storage/websql/statement-error-callback-isolated-world-expected.txt
LayoutTests/storage/websql/statement-success-callback-isolated-world-expected.txt
LayoutTests/storage/websql/success-callback-expected.txt
LayoutTests/storage/websql/success-callback-when-page-defers-loading-expected.txt
LayoutTests/storage/websql/test-authorizer-expected.txt
LayoutTests/storage/websql/transaction-callback-exception-crash-expected.txt
LayoutTests/storage/websql/transaction-callback-isolated-world-expected.txt
LayoutTests/storage/websql/transaction-database-expand-quota-expected.txt
LayoutTests/storage/websql/transaction-error-callback-expected.txt
LayoutTests/storage/websql/transaction-error-callback-isolated-world-expected.txt
LayoutTests/storage/websql/transaction-prototype-expected.txt
LayoutTests/storage/websql/transaction-success-callback-isolated-world-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/Modules/webdatabase/DOMWindowWebDatabase.cpp