New issue
Advanced search Search tips

Issue 832861 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Need a browser test on re-focusing a link target

Project Member Reported by mustaq@chromium.org, Apr 13 2018

Issue description

When an HTML link has a target that is open already, clicking on the link should re-focus the tab.

Minimal repro: http://output.jsbin.com/tuducot/

There was a crack here that was exposed through User Activation v2 but never covered in any tests.  The crack got fixed in crrev.com/c/1006047 but we need a test.

FYI: WebViewTest.FocusExistingFrameOnNavigate incompletely covers this case.  While this test correctly asserts that DidFocus gets called, the TestWebViewClient in this test isolates (mocks) the browser-side focusing mechanism (in particular, dispatching of ViewHostMsg_Focus).

 

Comment 1 by mustaq@chromium.org, Apr 13 2018

Components: Blink>Input

Sign in to add a comment