Bug 76496 - file:// doesn't work as base URL
Summary: file:// doesn't work as base URL
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on: 76563 76619 76631 76653
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-17 16:58 PST by Alexey Proskuryakov
Modified: 2012-01-19 11:54 PST (History)
1 user (show)

See Also:


Attachments
proposed patch (8.13 KB, patch)
2012-01-17 17:26 PST, Alexey Proskuryakov
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2012-01-17 16:58:18 PST
KURL normalizes "file://" to "file:". When later used as a base URL, it's seen as a non-hierarchical one, making completion fail.

This works fine in both IE and Firefox, as the URL is canonicalized to "file:///".
Comment 1 Alexey Proskuryakov 2012-01-17 17:26:56 PST
Created attachment 122847 [details]
proposed patch
Comment 2 Alexey Proskuryakov 2012-01-18 10:42:17 PST
Committed <http://trac.webkit.org/changeset/105294>.
Comment 4 Alexey Proskuryakov 2012-01-18 12:12:39 PST
Looking. Strange, I updated results of two of these.
Comment 5 Alexey Proskuryakov 2012-01-18 12:20:36 PST
Thank you - update results in <http://trac.webkit.org/changeset/105307>.

However, iframe-invalid-source-crash.html and bubble-drag-events.html appear to be broken on Qt because of a DumpRenderTree difference, where it dumps "file:///" as empty path instead of "/". I'll file a separate bug for this.