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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 1742923002: Commit empty document instead of canceling the load for blocked CSP/XFO responses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address japhet@'s comment Created 4 years, 10 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/core/loader/DocumentLoader.h
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.h b/third_party/WebKit/Source/core/loader/DocumentLoader.h
index f13f8d9266992d74a72e3342ebac2c18f565b334..4deb73f8d54677f64471eb53d66d971d1ddd7408 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -141,6 +141,9 @@ public:
};
InitialScrollState& initialScrollState() { return m_initialScrollState; }
+ void setWasBlockedAfterXFrameOptionsOrCSP() { m_wasBlockedAfterXFrameOptionsOrCSP = true; }
+ bool wasBlockedAfterXFrameOptionsOrCSP() { return m_wasBlockedAfterXFrameOptionsOrCSP; }
+
bool loadingMultipartContent() const;
Resource* startPreload(Resource::Type, FetchRequest&);
@@ -221,6 +224,8 @@ private:
ClientHintsPreferences m_clientHintsPreferences;
InitialScrollState m_initialScrollState;
+ bool m_wasBlockedAfterXFrameOptionsOrCSP;
+
enum State {
NotStarted,
Provisional,
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentInit.cpp ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698