Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebFrame.cpp |
| diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp |
| index a65d50dcad1a89989d68feae3c674e1513e315df..acd9007714eefb0ef85ebf93b0fe7930187b328a 100644 |
| --- a/third_party/WebKit/Source/web/WebFrame.cpp |
| +++ b/third_party/WebKit/Source/web/WebFrame.cpp |
| @@ -273,6 +273,17 @@ WebFrame* WebFrame::fromFrameOwnerElement(const WebElement& webElement) |
| return fromFrame(toHTMLFrameOwnerElement(element)->contentFrame()); |
| } |
| +bool WebFrame::canHaveSecureChild(WebString& errorMessage) const |
|
jww
2016/05/28 01:35:25
Can you add some unit tests to this, similar to wh
falken
2016/05/30 10:20:53
Didn't get to this in the latest patchset, but wil
|
| +{ |
| + Frame* frame = toImplBase()->frame(); |
| + if (!frame) |
| + return false; |
| + String message; |
| + bool result = frame->canHaveSecureChild(&message); |
| + errorMessage = message; |
| + return result; |
| +} |
| + |
| bool WebFrame::isLoading() const |
| { |
| if (Frame* frame = toImplBase()->frame()) |