[Webkit-unassigned] [Bug 147824] NetworkProcess: DNS prefetch happens in the Web Process

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 11 09:13:30 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147824

--- Comment #7 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #6)
> Comment on attachment 258713 [details]
> Updated patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=258713&action=review
> 
> >> Source/WebCore/html/HTMLAnchorElement.cpp:257
> >> +                    document().frame()->loader().client().prefetchDNS(document().completeURL(parsedURL).host());
> > 
> > I think that the document can have a null frame here, in which case we'll crash. Please add a test case for this, and fix the crash if I'm right.
> 
> That's why I added && document().frame() to the previous if condition
> 
> >> Source/WebCore/loader/LinkLoader.cpp:101
> >> +            document.frame()->loader().client().prefetchDNS(href.host());
> > 
> > Ditto.
> 
> Ditto.
> 
> >> Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:632
> >> +        m_page->mainFrame().loader().client().prefetchDNS(downcast<Element>(*node).absoluteLinkURL().host());
> > 
> > Can m_page be null here?
> 
> m_page is created in the constructor, and deleted in ::close(), so if we are
> here we should have a valid page, I can add an assert

I could also use node->document().frame()->loader().client() checking frame() is not null, since we are already checking node is not null.

-- 
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/20150811/23349b64/attachment.html>


More information about the webkit-unassigned mailing list