Index: third_party/WebKit/Source/core/loader/LinkLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.cpp b/third_party/WebKit/Source/core/loader/LinkLoader.cpp |
index 5ec551969b5076932235602689e420de4380cfca..cea7c353d4cccce0c6caff5645dd494c3a9e604d 100644 |
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp |
@@ -194,8 +194,12 @@ WTF::Optional<Resource::Type> LinkLoader::getResourceTypeFromAsAttribute( |
return Resource::Script; |
} else if (as == "style") { |
return Resource::CSSStyleSheet; |
- } else if (as == "media") { |
+ } else if (as == "video") { |
return Resource::Media; |
+ } else if (as == "audio") { |
+ return Resource::Media; |
+ } else if (as == "track") { |
droger
2017/03/23 12:47:26
drive-by: this code is duplicated on line 205 belo
Yoav Weiss
2017/03/23 13:57:54
oops!
|
+ return Resource::TextTrack; |
} else if (as == "font") { |
return Resource::Font; |
} else if (as == "track") { |