Skip to content

openURL() always executes the rejectFn even when window was opened successfully #18221

@escodoy

Description

@escodoy

What happened?

Even when openURL() successfully opens a new tab/window, the rejectFn is still executed.

What did you expect to happen?

The rejectFn should not be called.

Reproduction URL

https://codepen.io/escodoy/pen/bNeamxG

How to reproduce?

  1. Go to provided link.
  2. Click on the button to open new window via openURL().
  3. Notice that rejectFn() was still called even when window was successfully opened.

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Plugins (quasar)

Additional context

From my investigation, window.open() returns null if noopener is true even though window was successfully opened. Since openURL() automatically adds noopener in the windowFeatures for security reasons, it falsely executes rejectFn every time.

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