Skip to content

window.open does not honor innerHeight and innerWidth in feature list #45816

@sachetsharma1

Description

@sachetsharma1

Preflight Checklist

Electron Version

33.2.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 10 22h2

What arch are you using?

x64

Last Known Working Electron version

Not known

Expected Behavior

Opened window should have the height and width specified as innerHeight and innerWidth in features list.

Actual Behavior

Window opens with a 800x600 size.

Testcase Gist URL

No response

Additional Information

We just upgrade from version 20 to 33 and our feature to open secondary windows is broken since all windows now open in 800x600 size. We pass 'innerWidth=xxx,innerHeight=xxx' as features to window.open function.

This bug can be easily reproduced by running below script in debugger console from an electron window.

window.open(location.href, '_blank', 'top=200,left=200,innerWidth=1000,innerHeight=1000')

We have verified that this feature works correctly in native browsers.

This issues happens in both Mac and Windows.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions