Skip to content

Error message in console when using icon in nw.Window.open() #6587

Open
@ogo-adp

Description

@ogo-adp

NWJS Version : 0.30.1
Operating System : Windows 7/10 64 bits

Expected behavior

When providing an icon in nw.Window.open() you expect the window to have an icon and no error message is displayed in console.

Actual behavior

Window is open with the icon (ie icon property is working properly) but at least since version 0.30.1 (and probably 0.30.0) nwjs display this error message in console :
Failed to load resource: net::ERR_FAILED chrome-extension://invalid/:1

How to reproduce

  1. package.json:
    {
    "main": "main.js",
    "name": "nw-demo",
    "window": {
    "title": "node-webkit demo"
    }
    }

  2. main.js :
    nw.Window.open('http://www.google.com', { width: 1024, height: 768, icon: './icon.png' } ,w => w. showDevTools());

  3. put some png named icon.png in same path as nwjs

  4. Launch nwjs and see error message in console

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions