New issue
Advanced search Search tips

Issue 697832 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 404161
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

opening new browser popup through js

Reported by eg...@handsome.is, Mar 2 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0

Steps to reproduce the problem:
1. Create html/php file with any link 
2. Prevent default behavior of the link
3. Imitate a request
3. In the promise of the request try to opening a new popup and setting url there like this:

var popup = window.open("", '_blank'); popup.location.replace(data.redirectUrl);

What is the expected behavior?
I would like to redirect users through js with opening of a new popup, because after click on the button I have to wait for the result of a response with the correct url.

What went wrong?
Popup is blocked. Other solutions like creating of a new popup before a request and setting the url in promise are providing very bad User experience cause a user doesn't understand what is going on and can simple close this popup before the url would be set

Did this work before? N/A 

Chrome version: <Copy from: 'about:version'>  Channel: stable
OS Version: OS X 10.12
Flash Version: 

The request can take 10s or more

 
Cc: rbyers@chromium.org
Mergedinto: 404161
Status: Duplicate (was: Unconfirmed)
I believe this is a duplicate of issue 404161 - let me know if you disagree.

Comment 2 by eg...@handsome.is, Mar 4 2017

rbyers@chromium.org Yep, if the main reason is in the user should wait smth a little bit (like in promises or setTimeout) 

Sign in to add a comment