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

Issue 2646683002: Implement OOPIFs within Devtools Extensions (Closed)

Created:
3 years, 11 months ago by davidsac (gone - try alexmos)
Modified:
3 years, 8 months ago
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

Implement OOPIFs within Devtools Extensions Fix IFrames existing within Devtools to be implemented outside of the devtools processes when necessary. Currently, some IFrames are rendered within the same process as devtools when they shouldn't be. The discussion of which IFrames should be allowed in devtools and when ended up becoming fairly complicated. See the attached DESIGN DOC below. This involved creating numerous chrome extensions for manually testing, debugging, and helping to understand how devtools extensions work. They can be found at http://dudeguy409.github.io/Chrome_Devtools_Extension_Tests/index.html DESIGN_DOC=https://docs.google.com/a/chromium.org/document/d/1Yxs0DMjoWwiPB5oFh4TRifim7FsEmMdbnd7FGWpReCU/edit?usp=sharing BUG=570483 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2646683002 Cr-Commit-Position: refs/heads/master@{#460876} Committed: https://chromium.googlesource.com/chromium/src/+/88a1aa7a6141160af77f9829f64b17c3c6cda5ee

Patch Set 1 #

Patch Set 2 : adjust test to check if oopifs and all 3 cases #

Patch Set 3 : remove code from failed fix attempt #

Patch Set 4 : added more tests for frames within devtools extensions #

Patch Set 5 : finish rough draft of tests #

Total comments: 37

Patch Set 6 : refactor duplicate test code #

Patch Set 7 : added broken method #

Patch Set 8 : finish rough draft of tests without popup.html #

Patch Set 9 : finish rough draft of tests without popup.html #

Total comments: 26

Patch Set 10 : add popup check for non-http iframe tests #

Patch Set 11 : refactor http iframe tests to use helper extension loader #

Patch Set 12 : add tests that about blank and devtools still work in devtools #

Patch Set 13 : make suggested fixes #

Patch Set 14 : add devtools extension oopif fix implementation #

Total comments: 16

Patch Set 15 : fix all tests for refactoring #

Patch Set 16 : small cleanups #

Patch Set 17 : added renavigation fix #

Patch Set 18 : added test for renavigating to about:blank #

Total comments: 29

Patch Set 19 : Refactor |LoadExtensionForTest| and other fixes #

Total comments: 20

Patch Set 20 : added renavigation test and small fixes #

Patch Set 21 : refactor tests to use simple navigation checks #

Patch Set 22 : Rebase #

Patch Set 23 : added |WaitForLoadStop| and fixed a navigation #

Total comments: 6

Patch Set 24 : fixed bug links in comments #

Total comments: 70

Patch Set 25 : Separate out sidebarpane and panel, and other small fixes #

Total comments: 8

Patch Set 26 : more small fixes #

Patch Set 27 : fixed a comment #

Patch Set 28 : added TODOs for future bug fix #

Total comments: 8

Patch Set 29 : small URL fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -44 lines) Patch
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 8 chunks +566 lines, -39 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 3 chunks +27 lines, -5 lines 0 comments Download

Messages

Total messages: 84 (47 generated)
alexmos
Organizing a couple of thoughts about this so far, just to explain why I think ...
3 years, 11 months ago (2017-01-20 01:30:52 UTC) #7
alexmos
Hey Andrew -- some preliminary comments below. Overall, I think these tests will give us ...
3 years, 10 months ago (2017-02-08 21:48:01 UTC) #8
davidsac (gone - try alexmos)
Hi Alex, I just made another patchset as a reference for my first round of ...
3 years, 10 months ago (2017-02-14 04:24:12 UTC) #11
alexmos
I didn't get through everything, but wanted to send out what I have before leaving. ...
3 years, 10 months ago (2017-02-15 01:23:42 UTC) #12
davidsac (gone - try alexmos)
Hi Alex, I made most of the suggested fixes, but had a few questions, so ...
3 years, 10 months ago (2017-02-16 20:29:02 UTC) #13
davidsac (gone - try alexmos)
Hi Nick and Charlie, I have added a rought draft fix for OOPIFs in Devtools ...
3 years, 10 months ago (2017-02-18 01:45:25 UTC) #15
Charlie Reis
Seems like it's on the right track with what we discussed last week (combined with ...
3 years, 10 months ago (2017-02-21 19:18:40 UTC) #16
ncarter (slow)
https://codereview.chromium.org/2646683002/diff/260001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/260001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode525 chrome/browser/devtools/devtools_sanity_browsertest.cc:525: // Remove these comments. https://codereview.chromium.org/2646683002/diff/260001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode1304 chrome/browser/devtools/devtools_sanity_browsertest.cc:1304: std::string message1; You ...
3 years, 10 months ago (2017-02-21 22:19:53 UTC) #17
davidsac (gone - try alexmos)
Hi Alex and/or Nick, Would you please take a second look at this changelist? https://codereview.chromium.org/2646683002/diff/80001/chrome/browser/devtools/devtools_sanity_browsertest.cc ...
3 years, 9 months ago (2017-03-09 19:36:47 UTC) #18
davidsac (gone - try alexmos)
Replied to some previously unanswered comments, and updated the CL description (cleaned it up and ...
3 years, 9 months ago (2017-03-09 20:21:22 UTC) #21
ncarter (slow)
https://codereview.chromium.org/2646683002/diff/340001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/340001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode520 chrome/browser/devtools/devtools_sanity_browsertest.cc:520: // call them individually in each test instead of ...
3 years, 9 months ago (2017-03-09 23:28:49 UTC) #22
alexmos
https://codereview.chromium.org/2646683002/diff/340001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/2646683002/diff/340001/content/browser/frame_host/render_frame_host_manager.cc#newcode1341 content/browser/frame_host/render_frame_host_manager.cc:1341: if (parent_site_instance->GetSiteURL().SchemeIs(kChromeDevToolsScheme)) { On 2017/03/09 23:28:49, ncarter wrote: > ...
3 years, 9 months ago (2017-03-10 21:18:26 UTC) #23
davidsac (gone - try alexmos)
I have made another round of changes. Nick, thank you for all of the brilliant ...
3 years, 9 months ago (2017-03-11 01:51:47 UTC) #26
ncarter (slow)
this is very close https://codereview.chromium.org/2646683002/diff/360001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/360001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode7 chrome/browser/devtools/devtools_sanity_browsertest.cc:7: #include <memory> #include <vector> https://codereview.chromium.org/2646683002/diff/360001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode518 ...
3 years, 9 months ago (2017-03-15 20:01:02 UTC) #29
davidsac (gone - try alexmos)
Hi Nick, I have done my best to address your feedback. Please Take another look. ...
3 years, 9 months ago (2017-03-18 01:32:41 UTC) #42
ncarter (slow)
lgtm https://codereview.chromium.org/2646683002/diff/430001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/430001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode1031 chrome/browser/devtools/devtools_sanity_browsertest.cc:1031: // BUG=crbug.com/570483 BUG= -> https:// https://codereview.chromium.org/2646683002/diff/430001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode1152 chrome/browser/devtools/devtools_sanity_browsertest.cc:1152: // ...
3 years, 9 months ago (2017-03-20 17:22:13 UTC) #45
davidsac (gone - try alexmos)
https://codereview.chromium.org/2646683002/diff/430001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/430001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode1031 chrome/browser/devtools/devtools_sanity_browsertest.cc:1031: // BUG=crbug.com/570483 On 2017/03/20 17:22:12, ncarter wrote: > BUG= ...
3 years, 9 months ago (2017-03-20 18:25:57 UTC) #46
ncarter (slow)
ps23 vs ps24 lgtm You'll need a devtools reviewer.
3 years, 9 months ago (2017-03-20 18:29:29 UTC) #47
alexmos
Just a bunch of minor nits from my side, but otherwise this looks ready to ...
3 years, 9 months ago (2017-03-20 22:52:51 UTC) #48
davidsac (gone - try alexmos)
Hi Alex, I have made changes or given feedback for all of your comments. Please ...
3 years, 9 months ago (2017-03-23 01:22:37 UTC) #51
davidsac (gone - try alexmos)
Hi dgozman, Could you please review the changelist for OWNER approval for Devtools?
3 years, 9 months ago (2017-03-23 01:24:08 UTC) #53
alexmos
LGTM with nits. Thanks for all the work on this! https://codereview.chromium.org/2646683002/diff/450001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/450001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode1170 ...
3 years, 9 months ago (2017-03-23 17:15:07 UTC) #56
dgozman
Over to caseq@ who has more insights into devtools extensions.
3 years, 9 months ago (2017-03-23 20:24:30 UTC) #58
davidsac (gone - try alexmos)
Hey Alex, For whatever reason, I thought that I already mailed out these comments. Also, ...
3 years, 9 months ago (2017-03-24 23:16:15 UTC) #59
caseq
This is fine if you look at it out of context, but I think we're ...
3 years, 9 months ago (2017-03-24 23:18:29 UTC) #60
ncarter (slow)
On 2017/03/24 23:18:29, caseq wrote: > This is fine if you look at it out ...
3 years, 9 months ago (2017-03-27 17:43:49 UTC) #61
pfeldman
DevTools should not be special in the context of running extensions out of process. We ...
3 years, 9 months ago (2017-03-27 20:03:18 UTC) #62
ncarter (slow)
On 2017/03/27 20:03:18, pfeldman wrote: > DevTools should not be special in the context of ...
3 years, 9 months ago (2017-03-27 20:24:44 UTC) #63
alexmos
On 2017/03/27 20:24:44, ncarter wrote: > On 2017/03/27 20:03:18, pfeldman wrote: > > DevTools should ...
3 years, 9 months ago (2017-03-27 21:41:20 UTC) #64
davidsac (gone - try alexmos)
I added TODOs to remove the logic allowing devtools extension pages to remain inside the ...
3 years, 8 months ago (2017-03-29 00:24:16 UTC) #67
caseq
lgtm https://codereview.chromium.org/2646683002/diff/530001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/530001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode587 chrome/browser/devtools/devtools_sanity_browsertest.cc:587: GURL about_blank_url = GURL(url::kAboutBlankURL); just inline about:blank in ...
3 years, 8 months ago (2017-03-30 00:03:37 UTC) #70
davidsac (gone - try alexmos)
https://codereview.chromium.org/2646683002/diff/530001/chrome/browser/devtools/devtools_sanity_browsertest.cc File chrome/browser/devtools/devtools_sanity_browsertest.cc (right): https://codereview.chromium.org/2646683002/diff/530001/chrome/browser/devtools/devtools_sanity_browsertest.cc#newcode587 chrome/browser/devtools/devtools_sanity_browsertest.cc:587: GURL about_blank_url = GURL(url::kAboutBlankURL); On 2017/03/30 00:03:37, caseq wrote: ...
3 years, 8 months ago (2017-03-30 18:28:33 UTC) #71
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/2646683002/550001
3 years, 8 months ago (2017-03-30 18:29:49 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/398965)
3 years, 8 months ago (2017-03-30 18:52:50 UTC) #76
dgozman
lgtm
3 years, 8 months ago (2017-03-30 20:33:31 UTC) #77
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/2646683002/550001
3 years, 8 months ago (2017-03-30 20:36:11 UTC) #79
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 21:11:37 UTC) #82
Message was sent while issue was closed.
Committed patchset #29 (id:550001) as
https://chromium.googlesource.com/chromium/src/+/88a1aa7a6141160af77f9829f64b...

Powered by Google App Engine
This is Rietveld 408576698