Bug 165621 - REGRESSION (URL parser): Relative URLs aren’t resolved correctly when the base URL is an applewebdata: URL
Summary: REGRESSION (URL parser): Relative URLs aren’t resolved correctly when the bas...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2016-12-08 12:58 PST by mitz
Modified: 2016-12-08 14:50 PST (History)
2 users (show)

See Also:


Attachments
Patch (4.14 KB, patch)
2016-12-08 14:39 PST, Alex Christensen
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2016-12-08 12:58:49 PST
Relative URLs aren’t resolved correctly when the base URL is an applewebdata: URL. Loading the HTML string "<img src='relative.jpg'>" results in the image’s src property evaluating to something like applewebdata://D5439AC2-A80D-41D9-9DCE-3A61F54E56E0relative.jpg instead of applewebdata://D5439AC2-A80D-41D9-9DCE-3A61F54E56E0/relative.jpg (notice the missing forward slash).
Comment 1 mitz 2016-12-08 13:46:11 PST
<rdar://problem/29582309>
Comment 2 Alex Christensen 2016-12-08 14:39:09 PST
Created attachment 296571 [details]
Patch
Comment 3 mitz 2016-12-08 14:40:39 PST
Comment on attachment 296571 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=296571&action=review

Thanks for the quick fix!

> Source/WebCore/ChangeLog:4
> +        https://bugs.webkit.org/show_bug.cgi?id=165621

Radar URL?
Comment 4 Alex Christensen 2016-12-08 14:42:59 PST
http://trac.webkit.org/changeset/209572
Comment 5 Alex Christensen 2016-12-08 14:50:44 PST
rdar://problem/29582309