Changeset 68984 in webkit
- Timestamp:
- Oct 3, 2010 1:19:34 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r68978 r68984 1 2010-10-03 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Holger Freyther. 4 5 All the WebSocket tests crash 6 https://bugs.webkit.org/show_bug.cgi?id=47055 7 8 This code attempts to hold onto temporary objects using references. 9 That doesn't work in C++. Instead, we need to actually store the 10 objects somewhere. 11 12 * bindings/js/JSWebSocketCustom.cpp: 13 (WebCore::JSWebSocketConstructor::constructJSWebSocket): 14 1 15 2010-10-02 Diego Gonzalez <diegohcg@webkit.org> 2 16 -
trunk/WebCore/bindings/js/JSWebSocketCustom.cpp
r61390 r68984 55 55 return throwVMError(exec, createSyntaxError(exec, "Not enough arguments")); 56 56 57 const String&urlString = ustringToString(exec->argument(0).toString(exec));57 String urlString = ustringToString(exec->argument(0).toString(exec)); 58 58 if (exec->hadException()) 59 59 return throwVMError(exec, createSyntaxError(exec, "wrong URL")); 60 const KURL&url = context->completeURL(urlString);60 KURL url = context->completeURL(urlString); 61 61 RefPtr<WebSocket> webSocket = WebSocket::create(context); 62 62 ExceptionCode ec = 0; … … 64 64 webSocket->connect(url, ec); 65 65 else { 66 const String&protocol = ustringToString(exec->argument(1).toString(exec));66 String protocol = ustringToString(exec->argument(1).toString(exec)); 67 67 if (exec->hadException()) 68 68 return JSValue::encode(JSValue());
Note: See TracChangeset
for help on using the changeset viewer.