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

Issue 2814413003: Skip self-referential frame checks for POST requests. (Closed)

Created:
3 years, 8 months ago by alexmos
Modified:
3 years, 8 months ago
Reviewers:
dcheng
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Skip self-referential frame checks for POST requests. The improved self-referential frame blocking in r450728 broke sites that rely on constructing frame hierarchies where frames are loaded via POSTs with the same URLs. To fix this, skip POST requests in self-referential URL checks. Note that this only checks whether the current request is a POST, not whether the ancestor frames were also loaded via POSTs. The only case where the latter would matter is if we've got two ancestors frames at a same URL, with one or both of them loaded via POST, and the current frame is loading that same URL via GET, which seems very unlikely to happen in practice. BUG=710008 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2814413003 Cr-Commit-Position: refs/heads/master@{#464556} Committed: https://chromium.googlesource.com/chromium/src/+/e49d7dfd68361fcdd6b83bb696fc475276afae8f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M content/browser/frame_host/navigation_handle_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
alexmos
Daniel, can you please take a look?
3 years, 8 months ago (2017-04-13 18:33:17 UTC) #6
dcheng
LGTM
3 years, 8 months ago (2017-04-13 21:29:07 UTC) #11
alexmos
Thanks! For reference, Daniel and I discussed another approach of only enforcing the self-referential checks ...
3 years, 8 months ago (2017-04-13 21:32:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814413003/1
3 years, 8 months ago (2017-04-13 21:33:59 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 21:47:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e49d7dfd68361fcdd6b83bb696fc...

Powered by Google App Engine
This is Rietveld 408576698