window.open is blocked on a dropdown when called from a Promise
Reported by
r...@rkara.us,
Mar 9 2016
|
|
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36 Steps to reproduce the problem: 1. Create a dropdown on an HTML page 2. Add an iFrame to the page 3. Add an event listener to the onchange or onclick event of the dropdown 4. Call window.open to navigate the iFrame via the event - Notice the page does not navigate I've created some jsFiddles that run properly in Firefox and Safari, but do not run in IE because it doesn't have a built in promise yet. In the failure case the user is not notified that a window was attempted to be opened. Failure Case: https://jsfiddle.net/t39qegvg/1/ Success Case Without Promise: https://jsfiddle.net/82rbj7oh/4/ Success Case using sized Dropdown (listview): https://jsfiddle.net/3or3w4qL/1/ What is the expected behavior? I would expect all three of the cases to handle the same and allow the iFrame to open the URL. What went wrong? It appears that the window.open is being blocked (potentially as a security concern), but because the event is caused by a user interaction it should be allowed. Did this work before? N/A Chrome version: 48.0.2564.116 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 20.0 r0 This issue is similar to Issue 91274 , but this involves promises and the window.open is fully blocked here. https://bugs.chromium.org/p/chromium/issues/detail?id=91274&q=window.open%20onchange&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified |
|
►
Sign in to add a comment |
|
Comment 1 by sheriffbot@chromium.org
, Mar 10 2017