Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nwjs 0.18 - icon load denied #5293

Closed
AndryBray opened this issue Sep 12, 2016 · 7 comments
Closed

nwjs 0.18 - icon load denied #5293

AndryBray opened this issue Sep 12, 2016 · 7 comments
Assignees
Labels

Comments

@AndryBray
Copy link

AndryBray commented Sep 12, 2016

On new 0.18 beta1version I get this error on page load:

Denying load of chrome-extension://dlpegdndgbmnifhmcdmohnoegdfalhda/icon.png
Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

Failed to load resource: net::ERR_FAILED chrome-extension://invalid/

I think the icon.png is this one declared in package.json
(tested on MacOS / Windows)

@rogerwang
Copy link
Member

Could you please provide a sample?

On Mon, Sep 12, 2016, 6:15 PM AndryBray notifications@github.com wrote:

On new 0.18 beta1 version I get this error on page load:

Denying load of
chrome-extension://dlpegdndgbmnifhmcdmohnoegdfalhda/icon.png
Resources must be listed in the web_accessible_resources manifest key in
order to be loaded by pages outside the extension.

Failed to load resource: net::ERR_FAILED chrome-extension://invalid/

I think the icon.png is this one declared in package.json


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#5293, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKGGea2-joBDXCG-pFSe60sA5PEz9WLks5qpSZOgaJpZM4J6bqF
.

@AndryBray
Copy link
Author

I'm sorry, it was my bad. I was just pointing to and old icon path.

@AndryBray AndryBray reopened this Sep 12, 2016
@AndryBray
Copy link
Author

AndryBray commented Sep 12, 2016

On windows I still get the same error.

package is:

{
  "name": "app",
  "productName": "app",
  "description": "description",
  "version": "0.18.0",
  "author": "author,
  "main": "app.html",
  "window": {
    "show": false,
    "icon": "vendor/resources/images/icon.png",
    "width": 1024,
    "height": 768,
    "min_width": 800,
    "min_height": 400,
    "position": "center"
  }
}

PS: if I reload (CMD+R) I have no errors

It seems to be an error untill the cache is loaded

@AndryBray
Copy link
Author

I'm thinking this error could be displayed only the first time you open the dev console. Could it be?

@rogerwang rogerwang self-assigned this Sep 13, 2016
@rogerwang
Copy link
Member

icon works for me. Could you please upload a sample?

@RohitSharma27
Copy link

I am trying to access local image resources from a page that is being served from a remote server. I know that the page can't access local resources due to security reasons. But, When i am trying to access resources using chrome-extension://domain/ it is saying
Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
How can I do that in nw? I should write web_accessible_resources in the manifest.json in case of chrome plugins. And this isn't mentioned in the allowed manifest formats in nw's documentation.
Since, I can't access files using file:// protocol anymore from nw13 onwards. How can I use this feature? Please suggest.

@rogerwang
Copy link
Member

You could write the same fields in NW's manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants