Link prefetch not useful for top-level navigation
[WebKit-https.git] / Source / WebCore / loader / ResourceLoadInfo.cpp
index f2c3f21..7f7f682 100644 (file)
@@ -37,6 +37,7 @@ namespace ContentExtensions {
 ResourceType toResourceType(CachedResource::Type type)
 {
     switch (type) {
+    case CachedResource::Type::LinkPrefetch:
     case CachedResource::Type::MainResource:
         return ResourceType::Document;
     case CachedResource::Type::SVGDocumentResource:
@@ -71,9 +72,6 @@ ResourceType toResourceType(CachedResource::Type type)
     case CachedResource::Type::TextTrackResource:
         return ResourceType::Media;
 #endif
-    case CachedResource::Type::LinkPrefetch:
-        ASSERT_NOT_REACHED();
-        break;
 #if ENABLE(APPLICATION_MANIFEST)
     case CachedResource::Type::ApplicationManifest:
         return ResourceType::Raw;