Index: third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp b/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp |
index dfb698dacd38e11963dcac100fb43ce12cac9db6..4ef9aaa987b79e0101f2e5dbb2438977b232aa56 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp |
@@ -33,6 +33,7 @@ |
#include "core/html/PluginDocument.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
#include "core/layout/LayoutPart.h" |
+#include "core/loader/FrameLoaderClient.h" |
namespace blink { |
@@ -146,6 +147,16 @@ void HTMLEmbedElement::updateWidgetInternal() |
if (!layoutObject()) |
return; |
+ // Overwrites the URL and MIME type of a YouTube Flash embed to use an |
+ // HTML5 video player when possible. |
+ String overridenUrl; |
+ overridenUrl = document().frame()->loader().client()-> |
mlamouri (slow - plz ping)
2016/07/21 15:55:08
No need to have two statements. Also, Blink has no
kdsilva
2016/07/22 13:55:58
Done.
|
+ OverrideFlashEmbedWithHTML(document().completeURL(m_url)); |
+ if (overridenUrl != "") { |
+ m_url = overridenUrl; |
+ m_serviceType = "text/html"; |
+ } |
+ |
requestObject(m_url, m_serviceType, paramNames, paramValues); |
} |