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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years 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/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/SecurityContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 29ba52b55ea0d02da77725f16084e735de41dcb3..4302dd8290eab5b77d960c884efcb81cb561945b 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -6410,6 +6410,17 @@ void Document::enforceInsecureRequestPolicy(WebInsecureRequestPolicy policy) {
getInsecureRequestPolicy());
}
+void Document::enforceInsecureNavigationsSet(
+ const InsecureNavigationsSet& set) {
+ for (unsigned hash : set)
+ addInsecureNavigationUpgrade(hash);
+ if (frame()) {
+ frame()->loader().client()->didEnforceInsecureNavigationsSet(
+ SecurityContext::serializeInsecureNavigationSet(
+ *insecureNavigationsToUpgrade()));
+ }
+}
+
void Document::setShadowCascadeOrder(ShadowCascadeOrder order) {
DCHECK_NE(order, ShadowCascadeOrder::ShadowCascadeNone);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/SecurityContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698