Bug 79486

Summary: [Qt] API: Unify the loading properties and signals.
Product: WebKit Reporter: Jocelyn Turcotte <jturcotte>
Component: New BugsAssignee: Jocelyn Turcotte <jturcotte>
Severity: Normal CC: commit-queue, hausmann, menard, vestbo, zalan, zoltan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 74403    
Description Flags
Patch hausmann: review+

Description Jocelyn Turcotte 2012-02-24 06:35:44 PST
[Qt] API: Unify the loading properties and signals.
Comment 1 Jocelyn Turcotte 2012-02-24 06:44:35 PST
Created attachment 128725 [details]
Comment 2 Simon Hausmann 2012-02-24 08:03:01 PST
Comment on attachment 128725 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=128725&action=review


The only iffy thing that I think can be easily fixed if it actually turns out to be a problem (I'm not sure it is), is that the argument to the loadingChanged signal is very short-lived. This isn't quite specific to this patch, but perhaps we should consider using actual JavaScript objects as parameters (QJSValue) with according properties. (or JSON if you want so :)

> Source/WebKit2/UIProcess/API/qt/qwebloadrequest_p.h:47
> +    QWebLoadRequestPrivate* d;

As a general rule perhaps we should consider adopting the Qt rule of using QScopedPointer for the d-pointer.
Comment 3 Jocelyn Turcotte 2012-02-24 09:51:13 PST
Committed r108815: <http://trac.webkit.org/changeset/108815>