New issue
Advanced search Search tips

Issue 755732 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 594215
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



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.
 

Comment 1 by bokan@chromium.org, Aug 15 2017

Cc: bokan@chromium.org
Components: -Blink Blink>WindowDialog
Hm, not working for me in 60.0.3112.101 either, disabling chrome://flags/#browser-side-navigation didn't help either so probably unrelated to  issue 747812  and PlzNavigate.

Navigating a tab from the omnibox to 'data:text/html,TEST' does work so there's something special about window.open
Labels: Needs-Triage-M61
Cc: mea...@chromium.org
Summary: Console window.open() with Data URI opens blank page. (was: Window.open() with Data URI opens blank page.)
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.
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?

Comment 5 by mea...@chromium.org, 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

OK, thanks.

Comment 7 by mea...@chromium.org, Aug 16 2017

Mergedinto: 594215
Status: Duplicate (was: Unconfirmed)
Thanks, merging this into  Issue 594215 .

Sign in to add a comment