data: URLs should not be preloaded
[WebKit-https.git] / Source / WebCore / html / parser / HTMLPreloadScanner.cpp
index a89f108..b47732d 100644 (file)
@@ -237,7 +237,7 @@ private:
         if (m_urlToLoad.isEmpty())
             return false;
 
-        if (m_urlToLoad.startsWith("data:", false))
+        if (protocolIs(m_urlToLoad, "data"))
             return false;
 
         if (m_tagId == TagId::Link && !m_linkIsStyleSheet)