Changeset 190755 in webkit


Ignore:
Timestamp:
Oct 8, 2015 3:59:15 PM (9 years ago)
Author:
Chris Dumez
Message:

data: URLs should not be preloaded
https://bugs.webkit.org/show_bug.cgi?id=149829

Reviewed by Darin Adler.

Fix review comments after r190605:
Use protocolIs() instead of String::startsWith().

  • html/parser/HTMLPreloadScanner.cpp:

(WebCore::TokenPreloadScanner::StartTagScanner::shouldPreload):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r190754 r190755  
     12015-10-08  Chris Dumez  <cdumez@apple.com>
     2
     3        data: URLs should not be preloaded
     4        https://bugs.webkit.org/show_bug.cgi?id=149829
     5
     6        Reviewed by Darin Adler.
     7
     8        Fix review comments after r190605:
     9        Use protocolIs() instead of String::startsWith().
     10
     11        * html/parser/HTMLPreloadScanner.cpp:
     12        (WebCore::TokenPreloadScanner::StartTagScanner::shouldPreload):
     13
    1142015-10-08  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/html/parser/HTMLPreloadScanner.cpp

    r190641 r190755  
    238238            return false;
    239239
    240         if (m_urlToLoad.startsWith("data:", false))
     240        if (protocolIs(m_urlToLoad, "data"))
    241241            return false;
    242242
Note: See TracChangeset for help on using the changeset viewer.