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

Issue 1868823002: Fix cross-site popups to inherit their opener's sandbox flags even when popup opener is not set (Closed)

Created:
4 years, 8 months ago by alexmos
Modified:
4 years, 8 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix cross-site popups to inherit their opener's sandbox flags even when popup opener is not set. When a cross-process popup is opened from a sandboxed frame, and the popup doesn't have window.opener set (e.g., due to rel=noopener), the popup didn't inherit the opener frame's sandbox flags properly. This CL fixes this case to work: we already pass the right sandbox flags to be inherited in frame replication state, and they are also correctly applied on the browser process side, so there's no need to check for a non-null opener on the renderer side. BUG=576204 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/f5fb5193353e4d19ff45ad2c8baac9196086333d Cr-Commit-Position: refs/heads/master@{#386492}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -3 lines) Patch
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 chunk +67 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/click-noreferrer-links.html View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
alexmos
Charlie, can you please take a look? I know you're busy for the next couple ...
4 years, 8 months ago (2016-04-06 23:45:59 UTC) #7
Charlie Reis
Nice find. LGTM!
4 years, 8 months ago (2016-04-11 20:03:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868823002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868823002/1
4 years, 8 months ago (2016-04-11 20:05:20 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-11 22:09:16 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 22:11:21 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f5fb5193353e4d19ff45ad2c8baac9196086333d
Cr-Commit-Position: refs/heads/master@{#386492}

Powered by Google App Engine
This is Rietveld 408576698