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

Issue 2288203002: Redo PasswordManagerBrowserTestBase.InternalsPage (Closed)

Created:
4 years, 3 months ago by vabr (Chromium)
Modified:
4 years, 3 months ago
Reviewers:
vasilii
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Redo PasswordManagerBrowserTestBase.InternalsPage The old version of the test was flaky after https://codereview.chromium.org/2270333002/ switched some messages to Mojo, because the signal that "internals page is ready for logging" propagated into the renderer after the renderer tried to log. The issue is likely Mojo-specific. It did not occur without the switch to Mojo. After the switch to Mojo, signals about navigation events no longer go through the same channel as the autofill messages (including the logging-related). Therefore the test code could have observed the internals page finish loading and consequently start loading the page with forms without all Mojo messages being properly transferred. The issue was test-specific, because the test was opening the page with forms much quicker after opening the internals page, than a human trying to capture the logs could do. The issue was Mac-specific, but not sure why. It does not seem important, though. Therefore, this CL fixes the test in adding an additional reload of the form page. That is, instead of: 1. Loading the internals page 2. Loading the page with forms the test now does 1'. Loading the internals page 2'. Loading the page with forms 3'. Reloading the page with forms The reloading increases the chance of the Mojo messages about logging activation to arrive to the renderer, simply because reloading takes longer. IIUC, there is no good event to wait for to be sure that the Mojo messages were received (without modifying the production code). The CL also splits the test into two, because it checked for two different\ things in the logs (browser vs. renderer messages). BUG=640737 R=vasilii@chromium.org Committed: https://crrev.com/e78084414756fa83c67cb9a50f5693fb3bcef68d Cr-Commit-Position: refs/heads/master@{#416540}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Typo #

Patch Set 3 : Reload page with forms #

Patch Set 4 : Fix compilation #

Total comments: 2

Patch Set 5 : Just rebased #

Patch Set 6 : Just rebased #

Patch Set 7 : Inline the helper method, update comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -13 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 1 chunk +37 lines, -13 lines 1 comment Download

Messages

Total messages: 41 (21 generated)
vabr (Chromium)
Hi Vasilii, PTAL. Thanks! Vaclav
4 years, 3 months ago (2016-08-29 13:12:18 UTC) #6
vasilii
Can you clarify which events from the renderer trigger the text (both browser and renderer) ...
4 years, 3 months ago (2016-08-29 13:56:07 UTC) #7
vabr (Chromium)
(I'll address the code comment once I'm at a computer with a checkout.) On 2016/08/29 ...
4 years, 3 months ago (2016-08-29 14:11:42 UTC) #8
vasilii
But page parsing happens before NavigateToURL returns. How can the test be flaky in its ...
4 years, 3 months ago (2016-08-29 15:19:43 UTC) #9
vabr (Chromium)
On 2016/08/29 15:19:43, vasilii wrote: > But page parsing happens before NavigateToURL returns. How can ...
4 years, 3 months ago (2016-08-29 15:37:48 UTC) #10
vabr (Chromium)
https://codereview.chromium.org/2288203002/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/2288203002/diff/1/chrome/browser/password_manager/password_manager_browsertest.cc#newcode2794 chrome/browser/password_manager/password_manager_browsertest.cc:2794: // Check that the internals page contains logs both ...
4 years, 3 months ago (2016-08-29 15:40:36 UTC) #12
vasilii
On 2016/08/29 15:37:48, vabr (Chromium) wrote: > On 2016/08/29 15:19:43, vasilii wrote: > > But ...
4 years, 3 months ago (2016-08-29 15:49:28 UTC) #14
vabr (Chromium)
On 2016/08/29 15:49:28, vasilii wrote: > On 2016/08/29 15:37:48, vabr (Chromium) wrote: > > On ...
4 years, 3 months ago (2016-08-29 16:12:42 UTC) #15
vasilii
On 2016/08/29 16:12:42, vabr (Chromium) wrote: > On 2016/08/29 15:49:28, vasilii wrote: > > On ...
4 years, 3 months ago (2016-08-29 17:32:15 UTC) #18
vabr (Chromium)
Hi Vasilii, PTAL. I updated the CL description with my findings. Cheers, Vaclav
4 years, 3 months ago (2016-08-30 12:52:42 UTC) #24
vasilii
I looked at the code. PasswordManagerInternalsUI receives the DidStopLoading event and registers itself in the ...
4 years, 3 months ago (2016-08-30 14:09:48 UTC) #25
vabr (Chromium)
Thanks, Vasilii. On 2016/08/30 14:09:48, vasilii wrote: > I looked at the code. PasswordManagerInternalsUI receives ...
4 years, 3 months ago (2016-08-30 15:04:06 UTC) #26
vabr (Chromium)
Hi Vasilii, I looked into the issue today. TL;DR -- I don't think the production ...
4 years, 3 months ago (2016-09-02 16:16:29 UTC) #29
vabr (Chromium)
I forgot to also publish the comment. The main thing is in the previous e-mail, ...
4 years, 3 months ago (2016-09-02 16:29:22 UTC) #30
vabr (Chromium)
Hi Vasilii, Answering your offline question below. The reloaded tab does benefit from the logging ...
4 years, 3 months ago (2016-09-05 12:36:44 UTC) #33
vasilii
On 2016/09/02 16:16:29, vabr (Chromium) wrote: > Hi Vasilii, > > I looked into the ...
4 years, 3 months ago (2016-09-05 12:56:02 UTC) #34
vabr (Chromium)
On 2016/09/05 12:56:02, vasilii wrote: > On 2016/09/02 16:16:29, vabr (Chromium) wrote: > > Hi ...
4 years, 3 months ago (2016-09-05 13:08:37 UTC) #35
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/2288203002/120001
4 years, 3 months ago (2016-09-05 13:08:57 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-05 13:59:14 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 14:01:23 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e78084414756fa83c67cb9a50f5693fb3bcef68d
Cr-Commit-Position: refs/heads/master@{#416540}

Powered by Google App Engine
This is Rietveld 408576698