Changeset 183920 in webkit
- Timestamp:
- May 7, 2015 1:09:03 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r183914 r183920 1 2015-05-07 Yoav Weiss <yoav@yoav.ws> 2 3 Fix <script srcset> being loaded by the preloader. 4 https://bugs.webkit.org/show_bug.cgi?id=144675 5 6 Reviewed by Darin Adler. 7 8 Add preloader tests to make sure that <script src> is preloaded, 9 and <script srcset> is not. 10 11 * http/tests/loading/preload-script-src-expected.txt: Added. 12 * http/tests/loading/preload-script-src.html: Added. 13 * http/tests/loading/preload-script-srcset-ignored-expected.txt: Added. 14 * http/tests/loading/preload-script-srcset-ignored.html: Added. 15 1 16 2015-05-06 Yoav Weiss <yoav@yoav.ws> 2 17 -
trunk/Source/WebCore/ChangeLog
r183918 r183920 1 2015-05-07 Yoav Weiss <yoav@yoav.ws> 2 3 Fix <script srcset> being loaded by the preloader. 4 https://bugs.webkit.org/show_bug.cgi?id=144675 5 6 Reviewed by Darin Adler. 7 8 Fix HTMLPreloadScanner to make sure that srcset is only loaded 9 when it is present on an <img>. 10 11 Tests: http/tests/loading/preload-script-src.html 12 http/tests/loading/preload-script-srcset-ignored.html 13 14 * html/parser/HTMLPreloadScanner.cpp: 15 (WebCore::TokenPreloadScanner::StartTagScanner::processAttributes): 16 1 17 2015-05-07 Žan Doberšek <zdobersek@igalia.com> 2 18 -
trunk/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
r183901 r183920 106 106 } 107 107 108 // Resolve between src and srcSet if we have them .109 if ( !m_srcSetAttribute.isEmpty()) {108 // Resolve between src and srcSet if we have them and the tag is img. 109 if (m_tagId == TagId::Img && !m_srcSetAttribute.isEmpty()) { 110 110 unsigned sourceSize = 0; 111 111 #if ENABLE(PICTURE_SIZES)
Note: See TracChangeset
for help on using the changeset viewer.