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

Issue 2096453002: Don't commit the blocked URL when a frame is blocked by XFrameOptions. (Closed)

Created:
4 years, 6 months ago by alexmos
Modified:
4 years, 6 months ago
Reviewers:
Charlie Reis, Mike West
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't commit the blocked URL when a frame is blocked by XFrameOptions. Previously, when a load was blocked by XFO or frame-ancestors, we committed a blank page and left the original URL as the committed URL. In some cases, this led to the browser process thinking that the renderer actually committed a real load for the blocked URL and killing the renderer if that load was disallowed (e.g., for loading Chrome Web Store in a frame). mkwst@ is working on a CL (https://codereview.chromium.org/1617043002/) that will ultimately fix this by moving XFO enforcement to the browser process and committing an error page when a load is blocked. Until then, this is a short-term fix to change the committed URL for the blocked (blank) page to urlWithUniqueSecurityOrigin (data:,). BUG=622385 Committed: https://crrev.com/30535f7116c9073705a155c7cf4b0146a28f7293 Cr-Commit-Position: refs/heads/master@{#401664}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Replace updateForSameDocumentNavigation with explicit code to update the URL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
alexmos
Charlie, Mike - let me know what you think about this potential fix for the ...
4 years, 6 months ago (2016-06-23 00:46:56 UTC) #3
Charlie Reis
I like the idea of committing a unique origin CL instead. One question below. https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp ...
4 years, 6 months ago (2016-06-23 05:56:45 UTC) #4
Mike West
https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode367 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:367: updateForSameDocumentNavigation(SecurityOrigin::urlWithUniqueSecurityOrigin(), SameDocumentNavigationDefault); On 2016/06/23 at 05:56:45, Charlie Reis wrote: ...
4 years, 6 months ago (2016-06-23 06:26:40 UTC) #5
Mike West
On 2016/06/23 at 06:26:40, Mike West wrote: > https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp > File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): > > ...
4 years, 6 months ago (2016-06-23 06:27:04 UTC) #6
alexmos
https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode367 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:367: updateForSameDocumentNavigation(SecurityOrigin::urlWithUniqueSecurityOrigin(), SameDocumentNavigationDefault); On 2016/06/23 06:26:40, Mike West wrote: > ...
4 years, 6 months ago (2016-06-23 14:09:45 UTC) #7
Mike West
Preemptive, cross-oceanic LGTM for the approach outlined in the comment below. That seems like the ...
4 years, 6 months ago (2016-06-23 15:35:10 UTC) #8
alexmos
Thanks! https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2096453002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode367 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:367: updateForSameDocumentNavigation(SecurityOrigin::urlWithUniqueSecurityOrigin(), SameDocumentNavigationDefault); On 2016/06/23 15:35:10, Mike West wrote: ...
4 years, 6 months ago (2016-06-23 17:37:33 UTC) #9
Charlie Reis
Thanks! LGTM.
4 years, 6 months ago (2016-06-23 18:12:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2096453002/20001
4 years, 6 months ago (2016-06-23 18:17:48 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-23 18:48:43 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 18:51:44 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/30535f7116c9073705a155c7cf4b0146a28f7293
Cr-Commit-Position: refs/heads/master@{#401664}

Powered by Google App Engine
This is Rietveld 408576698