Skip to content

URL.createObjectURL still fails #8187

Open
@CosmoMyzrailGorynych

Description

@CosmoMyzrailGorynych

Issue Type

Before opening an issue, please search and see if it has already been raised.
One of the cases was fixed in:

This is a:

  • Bug Report
  • Successfully reproduced against the latest version of NW.js

Current/Missing Behavior

Calling URL.createObjectURL fails in most occurences:

  1. When nw.js is run with a flag --mixed-context
  2. When URL.createObjectURL is called in an nw-enabled webview (allownw attribute).
  3. When URL.createObjectURL is called in a first window after creating a second one.

The error is

Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.

Minimal code that reproduces that:

URL.createObjectURL(new Blob([]))

Expected/Proposed Behavior

Calling URL.createObjectURL should work

Additional Info

  • Operating System: Confirmed to affect Windows 10 and 11, Linux (SteamOS and others).
  • NW.js Version: 0.87.0

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