Skip to content

Remove window.open overwrite #599

@NiklasMerz

Description

@NiklasMerz

Feature Request

Motivation Behind Feature

Like described in the README file a long time ago there was a plan to remove the backwards compatibility of overwriting window.open in a future release. [See](WKWebViewOnly https://github.com/apache/cordova-plugin-inappbrowser#windowopen)

For backwards compatibility, this plugin also hooks window.open. However, the plugin-installed hook of window.open can have unintended side effects (especially if this plugin is included only as a dependency of another plugin). The hook of window.open will be removed in a future major release. Until the hook is removed from the plugin, apps can manually restore the default behaviour:

Feature Description

We should remove this overwrite of the native browser window function to avoid errors like this:

#315
#403

Alternatives or Workarounds

A proposal to change the docs exists #528

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions