haikuwebkit/LayoutTests/storage/indexeddb/missing-exception-check-in-...

7 lines
211 B
Plaintext
Raw Permalink Normal View History

Fix missing exception check in createIDBKeyFromValue(). https://bugs.webkit.org/show_bug.cgi?id=213681 <rdar://problem/64804893> Reviewed by Chris Dumez. Source/WebCore: Test: storage/indexeddb/missing-exception-check-in-IDBKey.html Also fixed up miscellaneous other exception check related code to enable the new test to run with exception check validation. * bindings/js/IDBBindingUtilities.cpp: (WebCore::createIDBKeyFromValue): * bindings/js/JSDOMBindingSecurity.cpp: (WebCore::BindingSecurity::shouldAllowAccessToDOMWindow): * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::updateDocument): * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::put): (WebCore::JSDOMWindow::defineOwnProperty): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::initScriptForWindowProxy): * bindings/scripts/CodeGeneratorJS.pm: (GenerateAttributeGetterBodyDefinition): (GenerateAttributeSetterBodyDefinition): (GenerateOperationBodyDefinition): * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: (WebCore::jsTestActiveDOMObjectExcitingAttrGetter): (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunctionBody): (WebCore::jsTestActiveDOMObjectPrototypeFunctionOverloadedMethodOverloadDispatcher): * bridge/objc/WebScriptObject.mm: (-[WebScriptObject _isSafeScript]): * testing/js/WebCoreTestSupport.cpp: (WebCoreTestSupport::injectInternalsObject): LayoutTests: * storage/indexeddb/missing-exception-check-in-IDBKey-expected.txt: Added. * storage/indexeddb/missing-exception-check-in-IDBKey.html: Added. Canonical link: https://commits.webkit.org/226493@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@263628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-06-27 22:14:05 +00:00
CONSOLE MESSAGE: TypeError: Type error
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x8
RenderBlock {HTML} at (0,0) size 800x8
RenderBody {BODY} at (8,8) size 784x0