Ticket #107 (new defect)

Opened 5 months ago

Last modified 4 months ago

GM_XMLHttpRequest follows 30x in FF2, not in FF3

Reported by: esquif..@googlemail.com Assigned to:
Priority: major Milestone: 0.8.1
Version: Keywords: FF3
Cc:

Description

GM_xmlhttpRequest exhibits a different behaviour in Firefox 2 and Firefox 3: In Firefox 2 it automatically resolves redirections (3xx); in Firefox 3 it doesn't.

Scripts relying on automatic redirection are therefore broken in FF3. One example of this is: http://userscripts.org/scripts/show/6073

Tested on

Firefox 2.0.0.14 and Firefox 3 beta 5 Greasemonkey 0.7.20080121.0 and Greasemonkey 0.8.20080505.0 Windows XP Pro

See attached userscript.

Attachments

xhrandredirections.user.js.zip (464 bytes) - added by esquif..@googlemail.com on 05/06/08 13:55:43.
XHRequest of a redirected page

Change History

05/06/08 13:55:43 changed by esquif..@googlemail.com

  • attachment xhrandredirections.user.js.zip added.

XHRequest of a redirected page

05/06/08 18:08:43 changed by aranti..@gmail.com

  • summary changed from GM_XMLHttpRequest to GM_XMLHttpRequest follows 30x in FF2, not in FF3.

05/09/08 15:19:34 changed by esquif..@googlemail.com

The installation of userscripts is also affected by this problem in case the installation url redirects to another one. Again, the problem exists only in Firefox 3.

Example: http://persistent.info/greasemonkey/gmail.user.js

Scriptdowloader in scriptdownloader.js uses a plain XMLHttpRequest to retrieve the script and gets stuck at the 301 response: handleDownloadComplete throws an error in a popup because it expected a 200 response, and that's it. It should follow the redirection instead.

05/12/08 11:43:28 changed by aranti..@gmail.com

This is probably related to:

http://groups.google.com/group/mozilla.dev.extensions/t/b72978ac08240210/#anchor_b69f71d3ccd36ba9

I'd like to check if this is fixed between FF3.0b5 and RC1.

06/11/08 14:03:29 changed by aranti..@gmail.com

  • milestone set to 0.8.

06/12/08 08:16:57 changed by aranti..@gmail.com

  • milestone changed from 0.8 to 0.8.1.

The core developers have voted; 0.8 will be released as is, any issues will be fixed in an 0.8 relesae. Thus: moving the milestone.

06/18/08 19:19:14 changed by aranti..@gmail.com

  • keywords changed from GM_XMLHttpRequest to FF3.

Add/Change #107 (GM_XMLHttpRequest follows 30x in FF2, not in FF3)