| Index: third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| index b514d469fe941be440f78783a670567f6b5e445a..cde4794c276d649f13df88e5be26bec7db22b11b 100644
|
| --- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| @@ -8,6 +8,7 @@
|
| #include "bindings/core/v8/ScriptCallStackFactory.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/dom/SecurityContext.h"
|
| #include "core/events/MessageEvent.h"
|
| #include "core/frame/Frame.h"
|
| @@ -155,6 +156,15 @@ void DOMWindow::resetLocation()
|
| }
|
| }
|
|
|
| +bool DOMWindow::isSecureContext() const
|
| +{
|
| + if (!frame())
|
| + return false;
|
| +
|
| + String unusedErrorMessage;
|
| + return document()->isSecureContext(unusedErrorMessage, ExecutionContext::StandardSecureContextCheck);
|
| +}
|
| +
|
| void DOMWindow::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, const String& targetOrigin, LocalDOMWindow* source, ExceptionState& exceptionState)
|
| {
|
| if (!isCurrentlyDisplayedInFrame())
|
|
|