Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 2061203002: WIP Reland: service worker: Don't control a subframe of an insecure context Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maybe fix drmemory Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 fe56e611da944226c22080c7cc3dba7c46439f28..afd16400368a7c9cfa82958b5399ab06dea1a7e1 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -285,6 +285,14 @@ WebFrame* WebFrame::fromFrameOwnerElement(const WebElement& webElement)
return fromFrame(toHTMLFrameOwnerElement(element)->contentFrame());
}
+bool WebFrame::canHaveSecureChild() const
+{
+ Frame* frame = toImplBase()->frame();
+ if (!frame)
+ return false;
+ return frame->canHaveSecureChild();
+}
+
bool WebFrame::isLoading() const
{
if (Frame* frame = toImplBase()->frame())
« no previous file with comments | « third_party/WebKit/Source/core/frame/Frame.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698