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

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

Issue 2096453002: Don't commit the blocked URL when a frame is blocked by XFrameOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/browser/site_per_process_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index b238477105003a682e4f1cb4b27883b6aa3125cc..78bdbc12823653a8e1d3ba2d4cb2bbe2c5af6499 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -364,7 +364,8 @@ void DocumentLoader::cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceRespo
// Pretend that this was an empty HTTP 200 response.
clearMainResourceHandle();
- m_response = ResourceResponse(blankURL(), "text/html", 0, nullAtom, String());
+ updateForSameDocumentNavigation(SecurityOrigin::urlWithUniqueSecurityOrigin(), SameDocumentNavigationDefault);
Charlie Reis 2016/06/23 05:56:45 Why same document? Aren't we leaving the current
Mike West 2016/06/23 06:26:40 We haven't created the document yet for this respo
alexmos 2016/06/23 14:09:45 I think I do need the redirect bits. I tried this
Mike West 2016/06/23 15:35:10 Hrm. Ok. I think I'd prefer for you to just extrac
alexmos 2016/06/23 17:37:33 Done. Removed the function call in favor of expli
+ m_response = ResourceResponse(SecurityOrigin::urlWithUniqueSecurityOrigin(), "text/html", 0, nullAtom, String());
finishedLoading(monotonicallyIncreasingTime());
return;
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698