Bug 48857 - Link dns-prefetch doesn't properly parse double-slash notation
Summary: Link dns-prefetch doesn't properly parse double-slash notation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 48813
  Show dependency treegraph
 
Reported: 2010-11-02 11:32 PDT by Alexey Proskuryakov
Modified: 2011-01-12 08:51 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.