| 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 74f3f106150e0d12189e8154076f81e77a99dc13..5726e586baa9fb4da9f3d02d036c79edd8a020a0 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| @@ -296,6 +296,11 @@ void HTMLFormElement::prepareForSubmission(Event* event)
|
| if (!frame || m_isSubmittingOrInUserJSSubmitEvent)
|
| return;
|
|
|
| + if (document().isSandboxed(SandboxForms)) {
|
| + document().addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, "Blocked form submission to '" + m_attributes.action() + "' because the form's frame is sandboxed and the 'allow-forms' permission is not set."));
|
| + return;
|
| + }
|
| +
|
| bool skipValidation = !document().page() || noValidate();
|
| ASSERT(event);
|
| HTMLFormControlElement* submitElement = submitElementFromEvent(event);
|
|
|