window.open does not allow device emulation
Reported by
mitchell...@gmail.com,
Aug 30 2016
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.80 Safari/537.36 Steps to reproduce the problem: 1. https://jsfiddle.net/njz3fqqj/ 2. Click "Test" button to open a new window 3. Open dev tools on new window 4. Observe no device emulation icon What is the expected behavior? Expect device emulation allowed on new window. What went wrong? I have a script that has window.open('https://www.google.com', '_blank', 'height=600,width=1000') which opens a new browser window (not a tab). If I open the dev tools on that new window, the device emulation icon is not present in order to emulate a device on that new window for debugging purposes. I've created a JSFiddle that you just need to click the Test button: https://jsfiddle.net/njz3fqqj/ I have also attached a screenshot of the dev tools in the new window to show no device emulation icon. Did this work before? N/A Chrome version: 53.0.2785.80 Channel: beta OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 22.0 r0 I haven't tested this on prior versions so I'm not sure if it's a regression or a new bug but assuming it never worked.
,
Aug 30 2016
This is by design, since window.open works differently on mobile browsers. If you open not a popup (tab-less browser window), but a tab in a regular window, emulation is available. Sorry for inconvenience.
,
Aug 30 2016
I still don't understand why this opt-in developer tool is disallowed. Because window.open works differently on mobile has nothing to do with this. Is there a way to open a new window that would allow the emulation?
,
Apr 14 2017
I am using an in-house web-based IDE that opens the to-be-tested application in a new window using window.open. There needs to be a way to enable device mode there! |
||
►
Sign in to add a comment |
||
Comment 1 by pfeldman@chromium.org
, Aug 30 2016Status: Assigned (was: Unconfirmed)