Skip to content

window.close() during unload or beforeunload #4466

Open
@domenic

Description

@domenic

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28622 claims that window.close() during the unload and beforeunload events is non-interoperable. The specific scenario under consideration is

<body>
<script>
window.addEventListener("beforeunload", function() { window.close() }, false);
</script>
</body>

loaded as the first document in a browsing context.

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions