IndexedDB: Hidden indexing events are visible to script via bubbling/capture
authorjsbell@chromium.org <jsbell@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Oct 2012 00:55:33 +0000 (00:55 +0000)
committerjsbell@chromium.org <jsbell@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Oct 2012 00:55:33 +0000 (00:55 +0000)
commitd348cb11fa2b49b8219c6a32ee6f6c6864fed60e
treec53aab00aaf2dc8e757b30a39aa25ff5147a9e1a
parentcd56f5370a1250c22683722342ad04aaae985b5b
IndexedDB: Hidden indexing events are visible to script via bubbling/capture
https://bugs.webkit.org/show_bug.cgi?id=96566

Reviewed by Tony Chang.

Source/WebCore:

Stop propagation of error events fired at internal indexing requests as a result of
aborting, as they should not be visible to scripts.

Test: storage/indexeddb/index-population.html

* Modules/indexeddb/IDBObjectStore.cpp:
(WebCore::IDBObjectStore::createIndex):
* Modules/indexeddb/IDBRequest.cpp:
(WebCore::IDBRequest::IDBRequest):
(WebCore::IDBRequest::dispatchEvent):
* Modules/indexeddb/IDBRequest.h:
(WebCore::IDBRequest::preventPropagation):
(IDBRequest):

LayoutTests:

Listen for unexpected events in both capture and bubble phases.

* storage/indexeddb/resources/index-population.js:
(deleteSuccess):
(doSetVersion1):
(setVersion2):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/resources/index-population.js
Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp
Source/WebCore/Modules/indexeddb/IDBRequest.cpp
Source/WebCore/Modules/indexeddb/IDBRequest.h