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

Issue 1491043002: Don't swap processes for frames embedded in DevTools pages. (Closed)

Created:
5 years ago by alexmos
Modified:
5 years ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_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

Don't swap processes for frames embedded in DevTools pages. With --site-per-process and --isolate-extensions, cross-process transfers were broken inside DevTools pages, since DevTools changes the WebContents being navigated as it executes OpenURLFromTab, and the RFHM that's eventually navigated can't find its cross-site transfer request, since it exists on a different RFHM in a different WebContents. This breaks DevTools extensions. See bug for more details. This CL disables process transfers in devtools pages to fix this. According to dgozman@, this should be safe, since only extensions are ever embedded in devtools pages. BUG=564216, 532666 Committed: https://crrev.com/28fae10b3759493f90a201b9841fe35f86b0e0f3 Cr-Commit-Position: refs/heads/master@{#362990}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Address Charlie's comment #

Patch Set 4 : Actually put the CHECK in the right place this time. #

Patch Set 5 : Fix conflicts in chromium.fyi.json #

Patch Set 6 : Another chromium.fyi.json conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
alexmos
Charlie, what do you think? dgozman@ confirmed that only extensions can be embedded in devtools ...
5 years ago (2015-12-02 18:06:07 UTC) #4
Charlie Reis
Thanks! LGTM with nit. https://codereview.chromium.org/1491043002/diff/20001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1491043002/diff/20001/content/browser/frame_host/render_frame_host_manager.cc#newcode1577 content/browser/frame_host/render_frame_host_manager.cc:1577: if (rfh->GetSiteInstance()->GetSiteURL().SchemeIs(kChromeDevToolsScheme)) Maybe we can ...
5 years ago (2015-12-02 19:56:07 UTC) #5
alexmos
https://codereview.chromium.org/1491043002/diff/20001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1491043002/diff/20001/content/browser/frame_host/render_frame_host_manager.cc#newcode1577 content/browser/frame_host/render_frame_host_manager.cc:1577: if (rfh->GetSiteInstance()->GetSiteURL().SchemeIs(kChromeDevToolsScheme)) On 2015/12/02 19:56:07, Charlie Reis wrote: > ...
5 years ago (2015-12-02 22:44:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491043002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491043002/90001
5 years ago (2015-12-03 00:22:08 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/102127)
5 years ago (2015-12-03 01:39:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491043002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491043002/90001
5 years ago (2015-12-03 01:46:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491043002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491043002/90001
5 years ago (2015-12-03 01:46:58 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/102270)
5 years ago (2015-12-03 05:21:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491043002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491043002/90001
5 years ago (2015-12-03 06:47:35 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/102333)
5 years ago (2015-12-03 08:46:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491043002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491043002/90001
5 years ago (2015-12-03 15:11:33 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:90001)
5 years ago (2015-12-03 16:11:38 UTC) #23
commit-bot: I haz the power
5 years ago (2015-12-03 16:12:16 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/28fae10b3759493f90a201b9841fe35f86b0e0f3
Cr-Commit-Position: refs/heads/master@{#362990}

Powered by Google App Engine
This is Rietveld 408576698