New issue
Advanced search Search tips

Issue 837124 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

"WebAuthFocusTest.Focus" is flaky

Project Member Reported by chromium...@appspot.gserviceaccount.com, Apr 26 2018

Issue description

"WebAuthFocusTest.Focus" is flaky.

This issue was created automatically by the chromium-try-flakes app. Please find the right owner to fix the respective test/step and assign this issue to them. If the step/test is infrastructure-related, please add Infra-Troopers label and change issue status to Untriaged. When done, please remove the issue from Sheriff Bug Queue by removing the Sheriff-Chromium label.

We have detected 3 recent flakes. List of all flakes can be found at https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyIQsSBUZsYWtlIhZXZWJBdXRoRm9jdXNUZXN0LkZvY3VzDA.

Flaky tests should be disabled within 30 minutes unless culprit CL is found and reverted. Please see more details here: https://sites.google.com/a/chromium.org/dev/developers/tree-sheriffs/sheriffing-bug-queues#triaging-auto-filed-flakiness-bugs
 
Labels: -Sheriff-Chromium
Owner: agl@chromium.org
Status: Assigned (was: Untriaged)
Revert: https://chromium-review.googlesource.com/c/chromium/src/+/1029970

Stack trace:
[ RUN      ] WebAuthFocusTest.Focus
[5572:8012:0425/180412.453:ERROR:install_util.cc(589)] Unable to create registry key HKLM\SOFTWARE\Policies\Chromium for reading result=2
[5572:5616:0425/180412.500:WARNING:discovery_network_list_win.cc(195)] Failed to open Wlan client handle: 1062
[5572:8012:0425/180412.515:WARNING:chrome_browser_main_win.cc(630)] Command line too long for RegisterApplicationRestart:  --brave-new-test-launcher --cfi-diag=0 --gtest_also_run_disabled_tests --gtest_filter=WebAuthFocusTest.Focus --single_process --snapshot-output-dir="C:\b\s\w\iofedarr" --test-launcher-bot-mode --test-launcher-output="C:\Users\CHROME~1\AppData\Local\Temp\scoped_dir8716_25851\results8716_18396\test_results.xml" --test-launcher-summary-output="C:\b\s\w\iofedarr\output.json" --user-data-dir="C:\Users\CHROME~1\AppData\Local\Temp\scoped_dir8716_25851\d8716_23744" --disable-offline-auto-reload --ignore-certificate-errors --no-first-run --no-default-browser-check --enable-logging=stderr --disable-default-apps --wm-window-animations-disabled --disable-component-update --test-type=browser --force-color-profile=srgb --disable-zero-browsers-open-for-tests --ipc-connection-timeout=30 --allow-file-access-from-files --dom-automation --log-gpu-control-list-decisions --disable-backgrounding-occluded-windows --disable-gl-drawing-for-tests --override-use-software-gl-for-tests --force-color-profile=srgb --disable-compositor-ukm-for-tests --enable-features=TestFeatureForBrowserTest1 --disable-features=NetworkPrediction,TestFeatureForBrowserTest2 --flag-switches-begin --flag-switches-end --restore-last-session about:blank
[5572:8012:0425/180412.626:WARNING:gaia_auth_fetcher.cc(873)] Could not reach Google Accounts servers: errno -11
[5572:8012:0425/180413.480:WARNING:gaia_auth_fetcher.cc(873)] Could not reach Google Accounts servers: errno -11
[5572:6584:0425/180413.820:WARNING:embedded_test_server.cc(229)] Request not handled. Returning 404: /favicon.ico
[5572:7424:0425/180414.578:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:7424:0425/180416.103:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:7424:0425/180416.103:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:7424:0425/180416.103:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:7424:0425/180416.103:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
../../chrome/browser/webauth_interactive_uitest.cc(201): error: Expected equality of these values:
  result
    Which is: "NotAllowedError: The operation is not allowed at this time because the page does not have focus."
  "OK"
Stack trace:
Backtrace:
	testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop [0x00007FF648788B0D+87]
	testing::internal::AssertHelper::operator= [0x00007FF6487886B2+78]
	testing::internal::CmpHelperOpFailure<char [3],std::basic_string<char,std::char_traits<char>,std::allocator<char> > > [0x00007FF6486BFE03+7007]
	content::BrowserTestBase::ProxyRunTestOnMainThreadLoop [0x00007FF64A81D575+517]
	ChromeBrowserMainParts::PreMainMessageLoopRunImpl [0x00007FF64C864A46+4806]
	ChromeBrowserMainParts::PreMainMessageLoopRun [0x00007FF64C863679+185]
	content::BrowserMainLoop::PreMainMessageLoopRun [0x00007FF64934736B+85]
	content::StartupTaskRunner::RunAllTasksNow [0x00007FF6496F55E1+37]
	content::BrowserMainLoop::CreateStartupTasks [0x00007FF649345F45+841]
	content::BrowserMainRunnerImpl::Initialize [0x00007FF6493498B4+126]
	content::BrowserMain [0x00007FF649343A78+176]
	content::ContentMainRunnerImpl::Run [0x00007FF64A7F0AA9+409]
	service_manager::Main [0x00007FF64AE3625E+1174]
	content::ContentMain [0x00007FF64A7F0321+65]
	content::BrowserTestBase::SetUp [0x00007FF64A81D1D4+2136]
	InProcessBrowserTest::SetUp [0x00007FF64A811C8D+533]
[5572:884:0425/180416.828:WARNING:discardable_shared_memory_manager.cc(431)] Some MojoDiscardableSharedMemoryManagerImpls are still alive. They will be leaked.
[5572:7424:0425/180417.187:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:7424:0425/180417.203:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:7424:0425/180417.203:ERROR:process_win.cc(151)] Unable to terminate process: Access is denied. (0x5)
[5572:8012:0425/180417.203:WARNING:url_request_context_getter.cc(43)] URLRequestContextGetter leaking due to no owning thread.
[5572:8012:0425/180417.203:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[5572:8012:0425/180417.203:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[  FAILED  ] WebAuthFocusTest.Focus, where TypeParam =  and GetParam() =  (4754 ms)

Project Member

Comment 2 by bugdroid1@chromium.org, Apr 26 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c3b8f3551053d5271f7eb5c8967a189aadc144bb

commit c3b8f3551053d5271f7eb5c8967a189aadc144bb
Author: Max Morin <maxmorin@chromium.org>
Date: Thu Apr 26 09:53:30 2018

Revert "webauthn: require focused tab, rather than focused frame."

This reverts commit 3a01c2259dfad218493b628483fe8e1d9cb2acbc.

Reason for revert: New test is flaky: crbug.com/837124.


Original change's description:
> webauthn: require focused tab, rather than focused frame.
>
> Kim points out in the bug that the current logic (see
> https://chromium-review.googlesource.com/c/chromium/src/+/991073)
> doesn't allow dev tools to be focused, so it's not possible to trigger
> webauthn requests from the dev tools console.
>
> Nasko thought that the addition of a ContentBrowserClient API was too
> large a hammer too. I've not been able to come up with any cleaner
> solution however, but this change perhaps makes the hammer more
> reasonable:
>
> In order to address the devtools issue, this change switches the focus
> check to requiring that the tab be active in the focused window. (This
> also matches what the cryptotoken extension does.) This means that it
> has to chrome/ logic, rather than content/ logic, but we already had to
> add an API to ContentBrowserClient for this and we can reuse that to
> solve this problem too.
>
> Additionally, this change adds an interactive_ui_test to ensure that we
> don't regress.
>
> Bug:  827266 ,836203
> Change-Id: I62226fc0366a83dc69d9cb32016108bdbe590d29
> Reviewed-on: https://chromium-review.googlesource.com/1007637
> Commit-Queue: Adam Langley <agl@chromium.org>
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Nasko Oskov <nasko@chromium.org>
> Reviewed-by: Balazs Engedy <engedy@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#553838}

TBR=nasko@chromium.org,thestig@chromium.org,agl@chromium.org,engedy@chromium.org

No-Try: true
Bug:  827266 , 836203, 837124
Change-Id: I9a243c93eac8d27eb33fae22c703f1faaeb7b83e
Reviewed-on: https://chromium-review.googlesource.com/1029970
Commit-Queue: Max Morin <maxmorin@chromium.org>
Reviewed-by: Max Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553968}
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/chrome/browser/DEPS
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/chrome/browser/chrome_content_browser_client.cc
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/chrome/browser/chrome_content_browser_client.h
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/chrome/browser/devtools/BUILD.gn
[delete] https://crrev.com/a62ef37c0f828a8f85db123feefbc49f373b8c41/chrome/browser/webauth_interactive_uitest.cc
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/chrome/test/BUILD.gn
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/content/browser/webauth/authenticator_impl.cc
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/content/browser/webauth/authenticator_impl_unittest.cc
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/content/public/browser/content_browser_client.cc
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/content/public/browser/content_browser_client.h
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/device/fido/virtual_fido_device.h
[modify] https://crrev.com/c3b8f3551053d5271f7eb5c8967a189aadc144bb/device/fido/virtual_u2f_device.cc

Sign in to add a comment