Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.28k stars 423 forks source link

overrideMimeType in GM_xmlhttpRequest doesn't work #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send GM xhr with overrideMimeType: "charset=x-user-defined".
2. Send GM xhr without overrideMimeType.
3. The returned responseText is the same.

This is also an issue in Blank Canvas, so I don't know if this is a bug in the 
Chrome extension API or what, but this makes it impossible to request unencoded 
binary files, since the default encoding corrupts them. It apparently works in 
normal xmlhttpRequests:

http://blank-canvas.net/forums/topic/id_506/n_overridemimetype_for_gmxmlhttprequ
est/

Original issue reported on code.google.com by couchym...@gmail.com on 18 Mar 2011 at 3:40

GoogleCodeExporter commented 9 years ago
 - fixed at the next release

Original comment by derj...@googlemail.com on 19 Mar 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Awesome, thanks.

Original comment by couchym...@gmail.com on 19 Mar 2011 at 3:10