Bug 108475

Summary: [Qt] Properly layer QtWebContext on top of the C API
Product: WebKit Reporter: Jocelyn Turcotte <jturcotte>
Component: WebKit QtAssignee: Jocelyn Turcotte <jturcotte>
Status: RESOLVED FIXED    
Severity: Normal CC: allan.jensen, benjamin, hausmann, jturcotte
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 109829    
Bug Blocks: 108471, 109922, 111435    
Attachments:
Description Flags
Patch
none
Patch
none
Patch hausmann: review+

Jocelyn Turcotte
Reported 2013-01-31 06:16:45 PST
QtWebContext, QtWebIconDatabaseClient and QtDownloadManager should be able to simply act as Qt bindings for the corresponding C APIs.
Attachments
Patch (23.85 KB, patch)
2013-02-12 03:41 PST, Jocelyn Turcotte
no flags
Patch (23.86 KB, patch)
2013-02-12 03:48 PST, Jocelyn Turcotte
no flags
Patch (6.84 KB, patch)
2013-02-14 07:36 PST, Jocelyn Turcotte
hausmann: review+
Jocelyn Turcotte
Comment 1 2013-02-12 03:41:15 PST
Jocelyn Turcotte
Comment 2 2013-02-12 03:48:49 PST
Created attachment 187827 [details] Patch Fix a sentence in the ChangeLog
Kenneth Rohde Christiansen
Comment 3 2013-02-12 05:04:43 PST
Comment on attachment 187827 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=187827&action=review > Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp:917 > +void QQuickWebViewPrivate::didReceiveMessageFromNavigatorQtObject(WKStringRef message) > { > QVariantMap variantMap; > - variantMap.insert(QLatin1String("data"), QString(message)); > + variantMap.insert(QLatin1String("data"), WKStringCopyQString(message)); So your message is a WKString but WKStringCopyQString creates a QString? I think the naming of that method is confusing. CopyTo? anywya it that is the common naming then that is fine, I just found it a bit confusing
Jocelyn Turcotte
Comment 4 2013-02-13 02:21:42 PST
Comment on attachment 187827 [details] Patch I'm working on splitting this patch in 2-3.
Jocelyn Turcotte
Comment 5 2013-02-14 07:36:25 PST
Created attachment 188348 [details] Patch Splitted patch
Simon Hausmann
Comment 6 2013-02-20 07:01:02 PST
Comment on attachment 188348 [details] Patch After the split-up this patch is indeed pretty simple now. LGTM. I'm hoping Benjamin can sign off on it :)
Benjamin Poulain
Comment 7 2013-02-21 15:44:20 PST
Sorry, I missed it. Ping me if that happens again. This looks great, I sign off on the change.
Jocelyn Turcotte
Comment 8 2013-03-12 04:16:59 PDT
Note You need to log in before you can comment on or make changes to this bug.