| Index: Source/core/html/HTMLFormElement.cpp
|
| diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
|
| index 985b37cff00ef4c8949a3ade7c54d9a1fecdeca4..aa7a35ffc8f39460cdd05a71e8259180b2c0795d 100644
|
| --- a/Source/core/html/HTMLFormElement.cpp
|
| +++ b/Source/core/html/HTMLFormElement.cpp
|
| @@ -502,7 +502,7 @@ void HTMLFormElement::parseAttribute(const QualifiedName& name, const AtomicStri
|
| // If the new action attribute is pointing to insecure "action" location from a secure page
|
| // it is marked as "passive" mixed content.
|
| KURL actionURL = document().completeURL(m_attributes.action().isEmpty() ? document().url().string() : m_attributes.action());
|
| - if (MixedContentChecker::isMixedContent(document().securityOrigin(), actionURL))
|
| + if (document().frame() && MixedContentChecker::isMixedContent(document().securityOrigin(), actionURL))
|
| document().frame()->loader().mixedContentChecker()->canSubmitToInsecureForm(document().securityOrigin(), actionURL);
|
| } else if (name == targetAttr)
|
| m_attributes.setTarget(value);
|
|
|