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

Unified Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2071433003: Reland: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrame.h
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index fef5c5163e50a6286d0e76b01e94156d7d024c8e..2eb2c08f7cca30542885079dda703b6b55c697a0 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -557,6 +557,15 @@ public:
// the given element is not a frame, iframe or if the frame is empty.
BLINK_EXPORT static WebFrame* fromFrameOwnerElement(const WebElement&);
+ // Use WebDocument::isSecureContext() instead of this function to
+ // check whether this frame's document is a secure context.
+ //
+ // Returns whether it's possible for a document whose frame is a descendant
+ // of this frame to be a secure context, not considering scheme exceptions
+ // (since any document can be a secure context if it has a scheme
+ // exception). See Document::isSecureContextImpl for more details.
+ BLINK_EXPORT bool canHaveSecureChild() const;
+
#if BLINK_IMPLEMENTATION
static WebFrame* fromFrame(Frame*);
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698