Changeset 192969 in webkit
- Timestamp:
- Dec 2, 2015 2:41:21 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r192966 r192969 1 2015-12-02 Yoav Weiss <yoav@yoav.ws> 2 3 Fix preloader issue with srcdoc documents. 4 https://bugs.webkit.org/show_bug.cgi?id=151744 5 6 Reviewed by Ryosuke Niwa. 7 8 Added a test that makes sure that srcdoc based subresources are properly preloaded. 9 10 * fast/preloader/iframe-srcdoc-expected.txt: Added. 11 * fast/preloader/iframe-srcdoc.html: Added. 12 1 13 2015-12-02 Jer Noble <jer.noble@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r192966 r192969 1 2015-12-02 Yoav Weiss <yoav@yoav.ws> 2 3 Fix preloader issue with srcdoc documents. 4 https://bugs.webkit.org/show_bug.cgi?id=151744 5 6 Reviewed by Ryosuke Niwa. 7 8 Make sure that PreloadRequest is resolving URLs based on the document's 9 baseURL() rather than using url() as the base URL, which is not how URLs 10 are resolved by the parser, and fails when document->url() diverges from 11 the document's base URL (e.g. in the case of srcdoc based documents). 12 13 Test: fast/preloader/iframe-srcdoc.html 14 15 * html/parser/HTMLResourcePreloader.cpp: 16 (WebCore::PreloadRequest::completeURL): 17 1 18 2015-12-02 Jer Noble <jer.noble@apple.com> 2 19 -
trunk/Source/WebCore/html/parser/HTMLResourcePreloader.cpp
r179242 r192969 38 38 URL PreloadRequest::completeURL(Document& document) 39 39 { 40 return document.completeURL(m_resourceURL, m_baseURL.isEmpty() ? document. url() : m_baseURL);40 return document.completeURL(m_resourceURL, m_baseURL.isEmpty() ? document.baseURL() : m_baseURL); 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.