[Webkit-unassigned] [Bug 147824] NetworkProcess: DNS prefetch happens in the Web Process
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 16 09:58:48 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147824
--- Comment #20 from Chris Dumez <cdumez at apple.com> ---
Comment on attachment 262588
--> https://bugs.webkit.org/attachment.cgi?id=262588
Updated patch
View in context: https://bugs.webkit.org/attachment.cgi?id=262588&action=review
I like the approach in general.
> Source/WebKit2/WebProcess/WebProcess.cpp:1462
> + if (!usesNetworkProcess()) {
I think it should be factored so that we only to the usesNetworkProcess() is ENABLE(NETWORK_PROCESS) is true.
e.g.
#if ENABLE(NETWORK_PROCESS)
if (usesNetworkProcess()) {
// do stuff
return;
}
#endif
WebCore::prefetchDNS(hostname);
> Source/WebKit2/WebProcess/WebProcess.cpp:1473
> + static const double dnsPrefetchedHostsCleanupDelay = 5;
I believe we prefer the following pattern now:
const auto dnsPrefetchedHostsCleanupDelay = 5_s;
> Source/WebKit2/WebProcess/WebProcess.cpp:1474
> + m_dnsPrefetchedHostsCleanupTimer.stop();
Using a hysteresis activity, these 2 lines would become a call to impulse().
> Source/WebKit2/WebProcess/WebProcess.h:220
> + void didPrefetchDNS(const String&);
Where is this implemented?
> Source/WebKit2/WebProcess/WebProcess.h:221
> + void initializeDNSPrefetchedHosts(const Vector<String>&);
ditto.
> Source/WebKit2/WebProcess/WebProcess.h:370
> + WebCore::Timer m_dnsPrefetchedHostsCleanupTimer;
Seems like a good use for HysteresisActivity instead of Timer.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151016/50a0fc2d/attachment.html>
More information about the webkit-unassigned
mailing list