New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 772614 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 1
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 705916



Sign in to add a comment

link <a rel=noopener target=_blank> links don't open in chrome headless mode

Reported by mich...@quora.com, Oct 7 2017

Issue description

Chrome Version       : 61.0.3163.100

What steps will reproduce the problem?
(1) Create a html page with <a id='link' rel='noopener' href='http://google.com' target='_blank'>google</a>
(2) Use chrome driver + chrome headless to navigate to the page and click on the link
(3) Observer that the number of driver.window_handles remain the same before and after clicking
(4) Remove the rel=opener attribute
(5) Repeat and observer that driver.window_handles increase after clicking (1 -> 2)

What is the expected result?

driver.window_handles increase after clicking (1 -> 2)

What happens instead?

driver.window_handles remains unchanged
 
Components: -Blink Tests>WebDriver Internals>Headless
Labels: Needs-Feedback
I'm going to reassign this to the WebDriver people. 
In headless the target is created correctly, so maybe there's something missing in ChromeDriver or Headless Chrome to reflect this in driver.window

It would help though to confirm that this works as you expect in non-Headless Chrome

Thanks!
Cc: rbasuvula@chromium.org
Labels: Needs-Milestone
@ michael : Thanks for filing the issue! could you please update on comment #1 which would help us to triage the issue further.

Thank You!

Comment 3 by mich...@quora.com, Dec 4 2017

Hey, yea sorry for the delay here. it works as expected on non-headless chrome (we encountered this issue when upgrading to using headless chrome to run our webdriver backed tests).
Project Member

Comment 4 by sheriffbot@chromium.org, Dec 4 2017

Cc: dvallet@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "dvallet@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: johnchen@chromium.org
Status: WontFix (was: Unconfirmed)
I was unable to repro this issue. I ran the attached Python script using ChromeDriver 2.40 and Chrome 67.0.3396.87, and the number of window handles increased from 1 to 2 after clicking on the link. It is possible that this issue has been fixed over the few months from the time this issue was opened.

If you are still experiencing this issue using the latest Chrome and ChromeDriver, please let us know.


Issue772614.py
526 bytes View Download

Sign in to add a comment