| 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 026dcf70376d21047671b710d42602102d488f97..6b739a0b0328dac4b76c547d2a2612811c0a4c97 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| @@ -339,6 +339,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;
|
|
|