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

Issue 1852903002: Create an interactive site-per-process browsertest class and move DocumentHasFocus there. (Closed)

Created:
4 years, 8 months ago by alexmos
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang, nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

Create an interactive site-per-process browsertest class and move DocumentHasFocus there. This test was disabled due to being flaky, most likely due to interference to its focus manipulations. Moving this test to interactive_ui_tests should help with that flakiness. A few other focus tests will also be moved to the new SitePerProcessInteractiveBrowserTest, and it can also eventually host OOPIF fullscreen tests. BUG=559273, 550497 Committed: https://crrev.com/af3efeb530b370f38f81627712c15a5483761f10 Cr-Commit-Position: refs/heads/master@{#386605}

Patch Set 1 #

Patch Set 2 : Tweaks #

Patch Set 3 : Fix the 404 error for cross_site_iframe_factory.html #

Patch Set 4 : Fix GN #

Total comments: 7

Patch Set 5 : Add another use of ChildFrameAt #

Patch Set 6 : Fix typo #

Total comments: 5

Patch Set 7 : thestig's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -76 lines) Patch
M chrome/browser/chrome_site_per_process_browsertest.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/browser/site_per_process_interactive_browsertest.cc View 1 2 3 4 5 6 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/interactive_ui_tests.isolate View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 chunk +0 lines, -73 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
alexmos
Hey Nasko, can you please take a look? This is the first CL to move ...
4 years, 8 months ago (2016-04-05 16:16:56 UTC) #3
nasko
LGTM with a couple of non-blocking comments. https://codereview.chromium.org/1852903002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/1852903002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode64 chrome/browser/site_per_process_interactive_browsertest.cc:64: EXPECT_NE(child1->GetSiteInstance(), grandchild->GetSiteInstance()); ...
4 years, 8 months ago (2016-04-08 18:29:20 UTC) #4
alexmos
https://codereview.chromium.org/1852903002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/1852903002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode64 chrome/browser/site_per_process_interactive_browsertest.cc:64: EXPECT_NE(child1->GetSiteInstance(), grandchild->GetSiteInstance()); On 2016/04/08 18:29:20, nasko (very slow Apr ...
4 years, 8 months ago (2016-04-11 18:37:29 UTC) #5
alexmos
thestig@: can you please review chrome/ for OWNERS?
4 years, 8 months ago (2016-04-11 19:49:00 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/1852903002/diff/100001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/1852903002/diff/100001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode67 chrome/browser/site_per_process_interactive_browsertest.cc:67: auto document_has_focus = [](content::RenderFrameHost* rfh) { Why not ...
4 years, 8 months ago (2016-04-11 21:26:50 UTC) #8
nasko
https://codereview.chromium.org/1852903002/diff/60001/content/public/test/browser_test_utils.h File content/public/test/browser_test_utils.h (right): https://codereview.chromium.org/1852903002/diff/60001/content/public/test/browser_test_utils.h#newcode240 content/public/test/browser_test_utils.h:240: RenderFrameHost* ChildFrameAt(RenderFrameHost* frame, size_t index); On 2016/04/11 18:37:29, alexmos ...
4 years, 8 months ago (2016-04-11 21:56:45 UTC) #9
alexmos
Thanks for the quick review! https://codereview.chromium.org/1852903002/diff/100001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/1852903002/diff/100001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode67 chrome/browser/site_per_process_interactive_browsertest.cc:67: auto document_has_focus = [](content::RenderFrameHost* ...
4 years, 8 months ago (2016-04-12 00:47:36 UTC) #10
Lei Zhang
https://codereview.chromium.org/1852903002/diff/100001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/1852903002/diff/100001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode67 chrome/browser/site_per_process_interactive_browsertest.cc:67: auto document_has_focus = [](content::RenderFrameHost* rfh) { On 2016/04/12 00:47:36, ...
4 years, 8 months ago (2016-04-12 01:15:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852903002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852903002/120001
4 years, 8 months ago (2016-04-12 01:20:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/209361)
4 years, 8 months ago (2016-04-12 03:15:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852903002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852903002/120001
4 years, 8 months ago (2016-04-12 06:56:01 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-12 07:17:53 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 07:19:20 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/af3efeb530b370f38f81627712c15a5483761f10
Cr-Commit-Position: refs/heads/master@{#386605}

Powered by Google App Engine
This is Rietveld 408576698