Changeset 57492 in webkit
- Timestamp:
- Apr 12, 2010 6:04:16 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57490 r57492 1 2010-04-12 Dumitru Daniliuc <dumi@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Throwing a SECURITY_ERR when openDatabase() cannot open a database 6 for whatever reason, as required by the spec. 7 https://bugs.webkit.org/show_bug.cgi?id=33916 8 9 * bindings/js/JSDOMWindowCustom.cpp: 10 (WebCore::JSDOMWindow::openDatabase): 11 * bindings/v8/custom/V8DOMWindowCustom.cpp: 12 (WebCore::V8DOMWindow::openDatabaseCallback): 13 1 14 2010-04-12 Steve Falkenburg <sfalken@apple.com> 2 15 -
trunk/WebCore/bindings/js/JSDOMWindowCustom.cpp
r56591 r57492 978 978 979 979 JSValue result = toJS(exec, globalObject(), WTF::getPtr(impl()->openDatabase(name, version, displayName, estimatedSize, creationCallback.release(), ec))); 980 if (!ec && result.isNull()) 981 ec = SECURITY_ERR; 982 980 983 setDOMException(exec, ec); 981 984 return result; -
trunk/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
r57207 r57492 736 736 737 737 v8::Handle<v8::Value> result = toV8(imp->openDatabase(name, version, displayName, estimatedSize, creationCallback.release(), ec)); 738 if (!ec && result.IsEmpty()) 739 ec = SECURITY_ERR; 740 738 741 V8Proxy::setDOMException(ec); 739 742 return result;
Note: See TracChangeset
for help on using the changeset viewer.