Bug 99994 - [Qt] Use the DNS resolve queue
Summary: [Qt] Use the DNS resolve queue
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 420+
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Allan Sandfeld Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 07:04 PDT by Allan Sandfeld Jensen
Modified: 2012-10-22 08:33 PDT (History)
2 users (show)

See Also:


Attachments
Patch (5.25 KB, patch)
2012-10-22 07:07 PDT, Allan Sandfeld Jensen
no flags Details | Formatted Diff | Diff
Patch (5.90 KB, patch)
2012-10-22 07:37 PDT, Allan Sandfeld Jensen
no flags Details | Formatted Diff | Diff
Patch (9.55 KB, patch)
2012-10-22 08:06 PDT, Allan Sandfeld Jensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld Jensen 2012-10-22 07:04:28 PDT
A queue for DNS prefetch resolutions has been added to the platform independent WebCore code. In Qt we can use that to ensure we actually prefetch more than just the first 10 links encounted in a page, and only prefetch each hostname once during parsing.
Comment 1 Allan Sandfeld Jensen 2012-10-22 07:07:52 PDT
Created attachment 169903 [details]
Patch
Comment 2 WebKit Review Bot 2012-10-22 07:12:39 PDT
Attachment 169903 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/platform/network/qt/DnsPrefetchHelper.h:22:  Header file should not contain WebCore config.h. Should be: alphabetically sorted.  [build/include_order] [4]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Simon Hausmann 2012-10-22 07:20:25 PDT
Comment on attachment 169903 [details]
Patch

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

>> Source/WebCore/platform/network/qt/DnsPrefetchHelper.h:22
>> +#include "config.h"
> 
> Header file should not contain WebCore config.h. Should be: alphabetically sorted.  [build/include_order] [4]

I think the style queue is right here and so I think this requires the code to be moved into DnsPrefetchHelper.cpp. I wonder why it's inline anyway :)

Otherwise the change looks good!
Comment 4 Allan Sandfeld Jensen 2012-10-22 07:37:40 PDT
Created attachment 169907 [details]
Patch
Comment 5 Simon Hausmann 2012-10-22 07:56:38 PDT
Comment on attachment 169907 [details]
Patch

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

r=me but needs minor author fix before landing ;)

> Source/WebCore/platform/network/qt/DnsPrefetchHelper.cpp:2
> -    Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
> +    Copyright (C) 2009,2012 Digia Plc. and/or its subsidiary(-ies)

Digia bought the Qt assets, allow the change of author of Qt code, but I'm not sure that extends to WebKit, so I suggest to maintain both here.
Comment 6 Allan Sandfeld Jensen 2012-10-22 08:00:49 PDT
(In reply to comment #5)
> (From update of attachment 169907 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=169907&action=review
> 
> r=me but needs minor author fix before landing ;)
> 
> > Source/WebCore/platform/network/qt/DnsPrefetchHelper.cpp:2
> > -    Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
> > +    Copyright (C) 2009,2012 Digia Plc. and/or its subsidiary(-ies)
> 
> Digia bought the Qt assets, allow the change of author of Qt code, but I'm not sure that extends to WebKit, so I suggest to maintain both here.

Okay, I would have assumed that since Nokia did that when they bought it from Trolltech, it would be the same for Digia. 2009 in this case sounds old enough to originally having been Trolltech copyright.
Comment 7 Allan Sandfeld Jensen 2012-10-22 08:06:51 PDT
Created attachment 169914 [details]
Patch

Avoid having a useless header file, and use consistent file namnig
Comment 8 WebKit Review Bot 2012-10-22 08:33:11 PDT
Comment on attachment 169914 [details]
Patch

Clearing flags on attachment: 169914

Committed r132074: <http://trac.webkit.org/changeset/132074>
Comment 9 WebKit Review Bot 2012-10-22 08:33:15 PDT
All reviewed patches have been landed.  Closing bug.