New issue
Advanced search Search tips

Issue 814907 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 1
Type: Bug



Sign in to add a comment

Layout Test http/tests/credentialmanager/credentialscontainer-create-from-nested-frame.html is flaky

Project Member Reported by reillyg@chromium.org, Feb 22 2018

Issue description

The following layout test is flaky:

http/tests/credentialmanager/credentialscontainer-create-from-nested-frame.html

Dashboard:

https://test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&testType=webkit_layout_tests&tests=http%2Ftests%2Fcredentialmanager%2Fcredentialscontainer-create-from-nested-frame.html

On the failed runs there is an extra line at the beginning of the output:

CONSOLE ERROR: Uncaught (in promise) SecurityError: Effective domain is not a valid domain.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Feb 22 2018

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

commit d6587808ec44e8459443ba5ded094ce711317962
Author: Reilly Grant <reillyg@chromium.org>
Date: Thu Feb 22 21:28:48 2018

Update expectations for http/tests/credentialmanager/credentialscontainer-create-from-nested-frame.html

This test is flaky.

TBR=kpaulhamus@chromium.org

Bug:  814907 
Change-Id: I2fca186dff29a45d903f0654136cfdc2f837292a
Reviewed-on: https://chromium-review.googlesource.com/932745
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538568}
[modify] https://crrev.com/d6587808ec44e8459443ba5ded094ce711317962/third_party/WebKit/LayoutTests/TestExpectations

Cc: kpaulhamus@chromium.org
 Issue 814873  has been merged into this issue.
Owner: kpaulhamus@chromium.org
Status: Assigned (was: Untriaged)
Transferring owner from earlier issue

Comment 4 by engedy@chromium.org, Feb 25 2018

Labels: -Pri-3 M-66 Pri-1
Owner: engedy@chromium.org
Security checks should not be flaky, so this is quite concerning.

Given that I already have a Mac workstation, I will try to reproduce this locally tomorrow.
Project Member

Comment 5 by bugdroid1@chromium.org, Feb 26 2018

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

commit 92631643373387137e05a8c4880e8b50426dae33
Author: Balazs Engedy <engedy@chromium.org>
Date: Mon Feb 26 16:38:49 2018

Prevent spurious WebAuthn tests running on http://127.0.0.1 origins.

Public-key credentials can only be accessed through the WebAuthn API by
origins that have a valid effective domain (not an IP address, among
other requirements). Corresponding layout tests therefore are served on
the origin `https://subdomain.example.test:8443`, which is implemented
by means of the test redirecting itself by setting `document.location`
to a URL under this origin.

However, setting `document.location` merely schedules a navigation, and
JS execution continues for a short time in the original document. This
occasionally resulted in some tests ending up being executed under the
original http://127.0.0.1 origin, at race with the navigation. This
resulted in uncaught SecurityErrors and console errors, which, in turn,
made the the tests flaky.

This CL prevents this by stalling test execution in the original
document by scheduling a promise_test that never completes.

Bug:  814907 
Change-Id: I531f20c286dc4ba04f1820c9cf49d0a0e00a11ce
Reviewed-on: https://chromium-review.googlesource.com/937501
Reviewed-by: Kim Paulhamus <kpaulhamus@chromium.org>
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539156}
[modify] https://crrev.com/92631643373387137e05a8c4880e8b50426dae33/third_party/WebKit/LayoutTests/TestExpectations
[modify] https://crrev.com/92631643373387137e05a8c4880e8b50426dae33/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-create-basics.html
[modify] https://crrev.com/92631643373387137e05a8c4880e8b50426dae33/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-create-from-nested-frame.html
[modify] https://crrev.com/92631643373387137e05a8c4880e8b50426dae33/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-basics.html
[modify] https://crrev.com/92631643373387137e05a8c4880e8b50426dae33/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-from-nested-frame.html

Comment 6 by engedy@chromium.org, Feb 26 2018

Status: Fixed (was: Assigned)

Sign in to add a comment