RESOLVED FIXED 45340
Support SerializedScriptValue in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=45340
Summary Support SerializedScriptValue in WebKit2
Oliver Hunt
Reported 2010-09-07 17:15:48 PDT
Support SerializedScriptValue in WebKit2
Attachments
Patch (20.79 KB, patch)
2010-09-07 17:19 PDT, Oliver Hunt
no flags
Patch (20.83 KB, patch)
2010-09-07 17:33 PDT, Oliver Hunt
no flags
Patch (22.73 KB, patch)
2010-09-07 17:51 PDT, Oliver Hunt
no flags
Patch (24.09 KB, patch)
2010-09-07 18:12 PDT, Oliver Hunt
andersca: review+
Oliver Hunt
Comment 1 2010-09-07 17:19:33 PDT
WebKit Review Bot
Comment 2 2010-09-07 17:24:31 PDT
Attachment 66795 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebKit2/UIProcess/API/C/WKAPICast.h:104: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Oliver Hunt
Comment 3 2010-09-07 17:33:58 PDT
WebKit Review Bot
Comment 4 2010-09-07 17:34:58 PDT
Attachment 66802 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebKit2/UIProcess/API/C/WKAPICast.h:104: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 5 2010-09-07 17:44:28 PDT
Comment on attachment 66802 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=66802&action=prettypatch > WebKit2/UIProcess/API/C/WKAPICast.h:107 > template<> struct ImplTypeInfo<WebNavigationData*> { typedef WKNavi > template<> struct ImplTypeInfo<WebPageNamespace*> { typedef WKPageNamespaceRef APIType; }; > template<> struct ImplTypeInfo<WebPageProxy*> { typedef WKPageRef APIType; }; > template<> struct ImplTypeInfo<WebPreferences*> { typedef WKPreferencesRef APIType; }; > +template<> struct ImplTypeInfo<WebSerializedScriptValue*> { typedef WKSerializedScriptValueRef APIType; }; > template<> struct ImplTypeInfo<WebString*> { typedef WKStringRef APIType; }; > template<> struct ImplTypeInfo<WebURL*> { typedef WKURLRef APIType; }; > template<> struct ImplTypeInfo<WebURLRequest*> { typedef WKURLRequestRef APIType; }; It looks like you are missing the APITypeInfo definition here. > WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp:43 > +JSValueRef WKSerializedScriptValueDeserialize(WKSerializedScriptValueRef scriptValueRef, JSContextRef contextRef, JSValueRef* exception) > +{ > + return toWK(serializedValueRef)->deserialize(contextRef, exceptionRef); > +} This won't compile. You need to change serializedValueRef to scriptValueRef. I believe you are also missing the WebKit2.pro and WebKit2.vcproj changes.
Sam Weinig
Comment 6 2010-09-07 17:44:51 PDT
Comment on attachment 66802 [details] Patch Sorry, I meant r=me with those changes.
Oliver Hunt
Comment 7 2010-09-07 17:51:41 PDT
WebKit Review Bot
Comment 8 2010-09-07 17:55:47 PDT
Attachment 66809 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebKit2/UIProcess/API/C/WKAPICast.h:79: More than one command on the same line [whitespace/newline] [4] WebKit2/UIProcess/API/C/WKAPICast.h:105: More than one command on the same line [whitespace/newline] [4] Total errors found: 3 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Oliver Hunt
Comment 9 2010-09-07 18:12:28 PDT
WebKit Review Bot
Comment 10 2010-09-07 18:14:41 PDT
Attachment 66814 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebKit2/UIProcess/API/C/WKAPICast.h:79: More than one command on the same line [whitespace/newline] [4] WebKit2/UIProcess/API/C/WKAPICast.h:105: More than one command on the same line [whitespace/newline] [4] Total errors found: 3 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 11 2010-09-08 10:36:55 PDT
Comment on attachment 66814 [details] Patch Please add WebSerializedScriptValue.h to WebKit2.vcproj, looks fine otherwise!
Oliver Hunt
Comment 12 2010-09-08 10:58:49 PDT
Note You need to log in before you can comment on or make changes to this bug.