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

Denying load of chrome-extension://.../jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension. #107

Open
tupton opened this issue Nov 19, 2013 · 10 comments

Comments

@tupton
Copy link

tupton commented Nov 19, 2013

I get a console error when loading any page with the dotjs extension enabled. Disabling the extension makes the error go away.

Denying load of chrome-extension://dlnccnmhpmdidoiecanghgienhoglnim/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

Googling for this error results in this SO question and answer, which mentions including the jquery map.

Is there a known workaround for this?

@tupton
Copy link
Author

tupton commented Dec 5, 2013

Did I report this in the correct area? I love almost everything about dotjs, but having these errors in the console is infuriating while debugging or while using jsfiddle. I would love to get an explanation or a pointer to where to start looking to fix it.

@matthewhadley
Copy link

The jquery file in dotjs is trying to pull in a source map. This only happens with chrome console open.

Two ways to fix this. You can disable all source maps, details here:
http://stackoverflow.com/a/18365316

Or you can go into dotjs jquery.js and remove the sourcemap comment that enables this:

//@ sourceMappingURL=jquery.min.map

To find the file, open chrome://extensions/ and take note of the id for dotjs

image

Note the highlighted ID value. Assuming you are using the default user profile, the file is likely at:

~/Library/Application Support/Google/Chrome/Default/Extensions/<ID>/2.0.1_0/jquery.js

After removing the comment, disable then re-enable dotjs.

@tupton
Copy link
Author

tupton commented Dec 5, 2013

Thank you so much for the explanation and the pointer to how to fix it! That did it.

@tupton tupton closed this as completed Dec 5, 2013
@jfexyz
Copy link

jfexyz commented Feb 24, 2014

This is a bug with the dotjs extension. Yes, users can fix it by editing the source, but problem is that either the dotjs extension should include the jquery sourcemap with the extension, or it should remove the sourcemap comment from the jquery file.

Alternatively, dotjs could upgrade jquery; as of 1.11.0 the sourcemap comment is excluded.

@lepht
Copy link

lepht commented Mar 13, 2014

@joshuajabbour 👍 This should be resolved in dotjs, imo

@f3ndot
Copy link

f3ndot commented Apr 24, 2014

@joshuajabbour 👍

@tupton
Copy link
Author

tupton commented Apr 24, 2014

Let's re-open this so it possibly gets more visibility. There is a workaround, but this does still need to be fixed.

@tupton
Copy link
Author

tupton commented Aug 19, 2014

Updating jquery is straightforward: just copy the latest jquery into ext/jquery.js.

You can then load an extension in Chrome by checking the "Developer mode" checkbox at the top of the extensions page and clicking "Load unpacked extension..." Open the ext folder, disable or uninstall the old extension, and now you've got the latest jquery loaded in dotjs.

@Peeja
Copy link

Peeja commented Sep 15, 2014

It's pretty clear @defunkt isn't maintaining dotjs any longer. Has anyone taken it over yet? (I suppose, if the answer is no, that that's an offer.)

@matthewhadley
Copy link

The chrome tabs api has functions to inject js and css, so I made a quick attempt to reproduce dotjs functionality using that: https://github.com/diffsky/chromedotfiles

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

No branches or pull requests

6 participants