Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
jQuery 1.9.1.min.js from code.jquery.com CDN points to wrong sourcemap #2899
Originally filed at https://bugzilla.mozilla.org/show_bug.cgi?id=1245709#c3.
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.
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,
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.