Skip to content

Window.window is undefined after page change #7833

Open
@aaronsegstro

Description

@aaronsegstro

NWJS Version : 0.58.0-sdk/0.60.0-sdk
Operating System : Ubuntu 20.04

Actual behavior

window.window is undefined after changing the page

Expected behavior

window.window should still be defined as the DOM window object after changing the page

How to reproduce

nw.Window.open(${config.webserver.host}/login, { show: false }, (win) => {

Open a window using the code above, everything works fine
win.window is defined and works as expected
Have something on the page that forwards to a new URL
win.window above is now undefined and I can no longer seem to access it in any way.

This issue seemed to crop up to about 0.50.0, downgrading to 0.48.3 does not exhibit this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions