| Index: third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| index db015fc469f5a3074b5ec72296455beb1effd92f..8c7155f0084461c49da277afeb7362a52f13eb45 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| @@ -340,6 +340,9 @@ void HTMLFormElement::submit(Event* event, bool activateSubmitButton)
|
| LocalFrame* frame = document().frame();
|
| if (!view || !frame || !frame->page())
|
| return;
|
| + // See crbug.com/586749.
|
| + if (!inShadowIncludingDocument())
|
| + UseCounter::count(document(), UseCounter::FormSubmissionNotInDocumentTree);
|
|
|
| if (m_isSubmittingOrInUserJSSubmitEvent) {
|
| m_shouldSubmit = true;
|
|
|