Bug 48857

Summary: Link dns-prefetch doesn't properly parse double-slash notation
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: gavinp
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 48813    

Description Alexey Proskuryakov 2010-11-02 11:32:26 PDT
It's possible to specify a hostname instead of URL for DNS prefetch using double slash:

<link rel="dns-prefetch" href="//www.spreadfirefox.com">

There is no code in WebCore to that effect - instead, this is parsed as URL, and magically works for HTTP. This is fragile, and can fail for other main document schemes.