Index: third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
index a7eaec25442f22b924b0ac68a650a238583c2303..ad32aa12377933c4e0d6b27d707170a3f7208232 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
@@ -35,6 +35,7 @@ |
#include "core/html/HTMLOptionElement.h" |
#include "core/html/HTMLSelectElement.h" |
#include "core/layout/LayoutBlockFlow.h" |
+#include "core/loader/FrameLoaderClient.h" |
#include "platform/text/PlatformLocale.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebLocalizedString.h" |
@@ -61,6 +62,9 @@ PassRefPtrWillBeRawPtr<HTMLKeygenElement> HTMLKeygenElement::create(Document& do |
LayoutObject* HTMLKeygenElement::createLayoutObject(const ComputedStyle& style) |
{ |
+ if (!document().frame()->loader().client()->allowKeygen(true)) |
+ document().frame()->loader().client()->didNotAllowKeygen(); |
+ |
// TODO(mstensho): While it's harmful and meaningless to allow most display types on replaced |
// content (e.g. table, table-row or flex), it would be useful to honor at least some of |
// them. Table-cell (and maybe table-caption too), for instance. See crbug.com/335040 |