| 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 cad32c32094f2f608d397fb48bc0640a889ca013..3ed36013bfab9cb086e363b8bccc26f0c515ad61 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| @@ -340,12 +340,9 @@ void HTMLFormElement::submit(Event* event, HTMLFormControlElement* submitButton)
|
| if (!view || !frame || !frame->page())
|
| return;
|
|
|
| - // https://html.spec.whatwg.org/multipage/forms.html#form-submission-algorithm
|
| - // 2. If form document is not connected, has no associated browsing context,
|
| - // or its active sandboxing flag set has its sandboxed forms browsing
|
| - // context flag set, then abort these steps without doing anything.
|
| + // See crbug.com/586749.
|
| if (!isConnected())
|
| - return;
|
| + UseCounter::count(document(), UseCounter::FormSubmissionNotInDocumentTree);
|
|
|
| if (m_isSubmitting)
|
| return;
|
|
|