Index: Source/core/html/parser/HTMLTreeBuilder.cpp |
diff --git a/Source/core/html/parser/HTMLTreeBuilder.cpp b/Source/core/html/parser/HTMLTreeBuilder.cpp |
index 69603bbb61ff75eb38cf3113a6588d1924c869bb..a79d14de285309ccdc727ae894e169da10b32c47 100644 |
--- a/Source/core/html/parser/HTMLTreeBuilder.cpp |
+++ b/Source/core/html/parser/HTMLTreeBuilder.cpp |
@@ -800,7 +800,8 @@ void HTMLTreeBuilder::processStartTagForInBody(AtomicHTMLToken* token) |
m_framesetOk = false; |
return; |
} |
- if (token->name() == paramTag |
+ if ((RuntimeEnabledFeatures::contextMenuEnabled() && token->name() == menuitemTag) |
+ || token->name() == paramTag |
|| token->name() == sourceTag |
|| token->name() == trackTag) { |
m_tree.insertSelfClosingHTMLElement(token); |