nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

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

Open ogo-adp opened this issue 7 years ago • 2 comments

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

ogo-adp avatar Apr 26 '18 11:04 ogo-adp

I can reproduce this issue on Linux/Windows with nwjs-sdk-v0.30.1. This issue doesn't exist on nwjs-sdk-v0.29.4.

Christywl avatar Apr 27 '18 01:04 Christywl

I can't reproduce this in v0.83.0, can this be closed?

UtterDonkey avatar Jan 29 '24 21:01 UtterDonkey