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
jQuery 1.9.1.min.js from code.jquery.com CDN points to wrong sourcemap #2899
Comments
|
I figured it was worth having miketaylr open a ticket so we can discuss. Wow. jQuery 1.9.1 was released 3 years ago today! It's pretty easy to edit the source to point to the correct map file, |
|
Isn't this a known bug? I'm 99% sure if you look through the bug tracker you'll find a ticket for this. |
|
Oh, I see now that this is a different bug than the one I was thinking of. |
|
Another thing we could do is delete http://code.jquery.com/jquery.min.map because we have been discouraging the use of the plain-named jquery.js and jquery.min.js anyway. |
|
Since we're on the verge of recommending that people use Subresource Integrity, It seems like editing the file is a less and less appealing idea. It always bothered me that two files of the same version from different CDNs could have different hashes, but for the time that we put map comments into the file that was true because of the way different CDNs do their paths. With that in mind, deleting the map file seems like the best solution, if we need to apply one. |
|
I agree with deleting the map file. |
|
Opened cdn issue jquery/codeorigin.jquery.com#23 |
|
Thanks for the help, everyone. |
Originally filed at https://bugzilla.mozilla.org/show_bug.cgi?id=1245709#c3.
//@ sourceMappingURL=jquery.min.mapExpected:
//@ sourceMappingURL=jquery-1.9.1.min.mapActual: See 2) above.
If you're debugging a site with 1.9.1 from the CDN, suddenly 1.11.1 is in your debugger... which is wrong.
Here's some context from jquery-dev chatting with @dmethvin:
Not sure if you can change this, but it would be nice if you could.
The text was updated successfully, but these errors were encountered: