Issue metadata
Sign in to add a comment
|
Console window.open() with Data URI opens blank page.
Reported by
ofer.eck...@gmail.com,
Aug 15 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.39 Safari/537.36
Steps to reproduce the problem:
enter: window.open('data:text/html,TEST') in console
What is the expected behavior?
A new window with the word TEST should appear, along with the full data URI in the address bar.
What went wrong?
a blank window appears, with an address of about:blank
Did this work before? Yes I don't know, but it was working until early August.
Chrome version: 61.0.3163.39 Channel: beta
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 26.0 r0
I don't know if this applies to all Data URIs... it might.
,
Aug 15 2017
,
Aug 16 2017
This is probably fallout from Issue 594215 - Disable page-initiated main frame navigations to data URLs It's not clear to me whether this should apply to the console.
,
Aug 16 2017
To be clear, I only used the console as a simple example. This was actually being used, and is now broken, in a an application where an HTML report is being generated in a new page, to allow for easy printing. Is blocking this ability a new feature rather than a bug? Is there a workaround?
,
Aug 16 2017
Yes, this is intended. It applies to all data URIs. Please see https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/GbVcuwg_QjM for the rationale. We want data URI behavior to be consistent with other non-web URLs such as chrome://, which is why console is also blocked. E.g. typing this in the console also opens a blank window: window.open("chrome://settings"); > Is there a workaround? Yes, please see https://bugs.chromium.org/p/chromium/issues/detail?id=594215#c64
,
Aug 16 2017
OK, thanks.
,
Aug 16 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by bokan@chromium.org
, Aug 15 2017Components: -Blink Blink>WindowDialog