Closed Bug 1461612 Opened 7 years ago Closed 7 years ago

In Responsive Design Mode window.open() doesn't return reference to the newly created window

Categories

(DevTools :: Responsive Design Mode, defect)

60 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1379834

People

(Reporter: github.com, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 Steps to reproduce: Load a page that opens a new window using window.open() and writes some content to it: var _test = window.open('', 'test', 'width=800,height=600,resizable,scrollbars=yes'); _test.document.write('Test'); _test.document.close(); Actual results: In Responsive Design Mode it opens a new tab (the width and height are ignored) which stays empty. The Developer Tools Console tab shows the following error: TypeError: _test is null Expected results: It should open a new window with the given properties showing 'Test'. And when not in Responsive Design Mode it does so. When the window 'test' was already opened previously, then reloading the parent window in Responsive Design Mode does not have this error. Whether the parent window is loaded in Responsive Design Mode or not should not make a difference.
Duplicate of bug 1379834?
Component: Untriaged → Developer Tools: Responsive Design Mode
Whiteboard: [DUPEME?]
(In reply to Gingerbread Man from comment #1) > Duplicate of bug 1379834? Ah yes, it seems to be a duplicate of point 3 of bug 1379834. Sorry for the duplicate.
Thank you for the update. Marking as a duplicate of bug 1379834 as per comment 2.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Whiteboard: [DUPEME?]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.