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

Issue 2054163003: Fix SitePerProcessTextInputManagerTest.StopTrackingCrashedChildFrame on CFI Bots. (Closed)

Created:
4 years, 6 months ago by EhsanK
Modified:
4 years, 5 months ago
Reviewers:
kenrb, krasin1, Charlie Reis, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, 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 SitePerProcessTextInputManagerTest.StopTrackingCrashedChildFrame on CFI Bots. Currently, the test SitePerProcessTextInputManagerTest.StopTrackingCrashedChildFrame uses stale pointers of the views agains a map to verify that TextInputManager does not track the view anymore. This is causing issues in Linux CFI bots. This CL changes the test so that we now check for the number of views being tracked and verify that after crashing a frame, the number drops by one. BUG=619147 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/936536dbbfd6cb9cf468c80aba316cabafb0f002 Cr-Commit-Position: refs/heads/master@{#402736}

Patch Set 1 #

Patch Set 2 : Fixed Compile Error on Comparing int and unsigned int #

Patch Set 3 : Do not assume we only have 2 views registered in the begining. #

Total comments: 8

Patch Set 4 : Addressing creis@ comments #

Patch Set 5 : Rebased + Remove internal observers from TextInputManager's observer list #

Total comments: 11

Patch Set 6 : Addressing creis@'s comments #

Patch Set 7 : Removed the added code to RenderWidgetHostViewChildFrame::Destroy(). #

Total comments: 6

Patch Set 8 : Addressing creis@'s comments #

Total comments: 2

Patch Set 9 : Addressing sky@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -20 lines) Patch
M chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -13 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 42 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054163003/1
4 years, 6 months ago (2016-06-11 07:40:08 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/176337)
4 years, 6 months ago (2016-06-11 07:54:42 UTC) #4
EhsanK
PTAL. FYI: I am trying to run this patch with 'is_cfi=true' on linux.
4 years, 6 months ago (2016-06-11 08:12:14 UTC) #6
EhsanK
https://codereview.chromium.org/2054163003/diff/40001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc File chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc (right): https://codereview.chromium.org/2054163003/diff/40001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode326 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:326: size_t registered_views_count = I was expecting this number to ...
4 years, 6 months ago (2016-06-11 10:26:56 UTC) #7
krasin
I've added a CFI trybot, let's wait and see. Btw, did you have any troubles ...
4 years, 6 months ago (2016-06-11 20:54:48 UTC) #8
EhsanK
On 2016/06/11 20:54:48, krasin wrote: > I've added a CFI trybot, let's wait and see. ...
4 years, 6 months ago (2016-06-11 22:58:34 UTC) #9
krasin
On 2016/06/11 22:58:34, ehsaaan wrote: > On 2016/06/11 20:54:48, krasin wrote: > > I've added ...
4 years, 6 months ago (2016-06-11 23:03:57 UTC) #10
krasin
That said, we have a try bot. :) Also, I had successfully built Chrome with ...
4 years, 6 months ago (2016-06-11 23:06:50 UTC) #11
EhsanK
On 2016/06/11 23:06:50, krasin wrote: > That said, we have a try bot. :) > ...
4 years, 6 months ago (2016-06-11 23:10:07 UTC) #12
krasin
The current trybot run will be red, as there's another failure introduced by https://codereview.chromium.org/2015463004/ That ...
4 years, 6 months ago (2016-06-11 23:12:32 UTC) #13
krasin
Unfortunately, it's not. :( https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_cfi_rel_ng/builds/113/steps/interactive_ui_tests%20%28with%20patch%29 Let's postpone this until Monday. Please, have a good weekend, ...
4 years, 6 months ago (2016-06-11 23:13:56 UTC) #14
EhsanK
On 2016/06/11 23:13:56, krasin wrote: > Unfortunately, it's not. :( > https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_cfi_rel_ng/builds/113/steps/interactive_ui_tests%20%28with%20patch%29 > > Let's ...
4 years, 6 months ago (2016-06-12 00:06:08 UTC) #15
krasin
On 2016/06/12 00:06:08, ehsaaan wrote: > On 2016/06/11 23:13:56, krasin wrote: > > Unfortunately, it's ...
4 years, 6 months ago (2016-06-12 00:11:55 UTC) #16
Charlie Reis
[+site-isolation-reviews] Thanks. Just a few comments while we figure out how to get the CFI ...
4 years, 6 months ago (2016-06-13 18:46:13 UTC) #17
EhsanK
PTAL. https://codereview.chromium.org/2054163003/diff/40001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc File chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc (right): https://codereview.chromium.org/2054163003/diff/40001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode327 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:327: content::GetAllViewsRegisteredWithTextInputManager(active_contents()) On 2016/06/13 18:46:13, Charlie Reis (OOO til ...
4 years, 6 months ago (2016-06-25 00:10:35 UTC) #20
Charlie Reis
Looks good apart from the change to RenderWidgetHostViewChildFrame::Destroy(). That seems problematic to me, and I'm ...
4 years, 5 months ago (2016-06-28 18:12:42 UTC) #21
EhsanK
Thanks Charlie! Could you please take another look? Re your last question: I think it ...
4 years, 5 months ago (2016-06-28 18:56:53 UTC) #24
EhsanK
Thanks Charlie! Could you please take another look? Re your last question: I think it ...
4 years, 5 months ago (2016-06-28 18:56:54 UTC) #25
EhsanK
On 2016/06/28 18:56:54, EhsanK wrote: > Thanks Charlie! Could you please take another look? > ...
4 years, 5 months ago (2016-06-28 18:57:49 UTC) #26
kenrb
https://codereview.chromium.org/2054163003/diff/100001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/2054163003/diff/100001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode293 content/browser/frame_host/render_widget_host_view_child_frame.cc:293: text_input_manager_->Unregister(this); On 2016/06/28 18:56:54, EhsanK wrote: > On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 19:34:40 UTC) #27
EhsanK
Thanks Ken, Charlie! PTAL.
4 years, 5 months ago (2016-06-28 20:55:56 UTC) #28
Charlie Reis
Thanks, LGTM with nits. https://codereview.chromium.org/2054163003/diff/140001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/2054163003/diff/140001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode31 content/browser/frame_host/render_widget_host_view_child_frame.cc:31: #include "content/browser/renderer_host/text_input_manager.h" nit: No longer ...
4 years, 5 months ago (2016-06-28 21:39:34 UTC) #29
EhsanK
Thanks for the reviews! Missing sky@'s LGTM for chrome/*. sky@: Could you please take a ...
4 years, 5 months ago (2016-06-28 22:47:10 UTC) #30
sky
LGTM with EXPECT https://codereview.chromium.org/2054163003/diff/160001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc File chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc (right): https://codereview.chromium.org/2054163003/diff/160001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode333 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:333: DCHECK_GT(registered_views_count, 2U); EXPECT?
4 years, 5 months ago (2016-06-29 03:16:07 UTC) #31
EhsanK
Thanks for the reviews! I will CQ after dry-run. https://codereview.chromium.org/2054163003/diff/160001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc File chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc (right): https://codereview.chromium.org/2054163003/diff/160001/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc#newcode333 chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc:333: ...
4 years, 5 months ago (2016-06-29 03:57:08 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2054163003/180001
4 years, 5 months ago (2016-06-29 03:57:42 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 05:38:48 UTC) #36
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/2054163003/180001
4 years, 5 months ago (2016-06-29 05:40:52 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 5 months ago (2016-06-29 05:45:00 UTC) #40
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 05:46:15 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/936536dbbfd6cb9cf468c80aba316cabafb0f002
Cr-Commit-Position: refs/heads/master@{#402736}

Powered by Google App Engine
This is Rietveld 408576698