-
Notifications
You must be signed in to change notification settings - Fork 438
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
GM_xmlhttpRequest broken in latest firefox #953
Comments
Can't reproduce neither in Windows nor in Linux Mint with FF 74, 74.0.1, 75, Nightly. Might be something in your metadata block which you didn't show or the maintainers of Arch Linux broke something in their build of FF. Another possibility the browser profile has problems like an excessively big cookie. |
I'll try playing with a few settings and see if I can't figure out what's going on. |
You hit the nail on the head. Too many cookies. It's a shame we cannot see the request/response in the developers console. |
You can. See this documentation article: https://extensionworkshop.com/documentation/develop/debugging |
Thanks, That'll come in very useful, especially regarding cookies with which I've been having so many problems working around. |
@tophf This issue keeps resurfacing. Using the developers view on the tab, I can see that there are about 40 expired cookies and about 15 normal cookies. This raises a 413 response, probably because of the number of cookies being sent. In the developer console for VM, which you kindly pointed out above, I see the headers (request is 13.7kb):
However, I cannot see which cookies are being sent. I suspect ALL, including expired, have been sent. |
I don't understand how this is specific to Violentmonkey. Also |
#606 added the sending of cookies for firefox. The problem is, firefox is not deleting expired cookies (at least in version 74 and 75 on arch linux), so ALL of them are being added to the request. This is very much a VM issue. The While firefox should be deleting the expired cookies, VM should not be sending them. |
Quoting https://support.mozilla.org/en-US/questions/983361
So to me it looks like a problem in your profile exacerbated by an old bug in FF. I've added a check of the expiration date so please test it. If this won't work I see no other solutions except for disabling processing of the cookies in FF entirely, even though it's also a workaround for some weirdness in FF so I'm reluctant to do it as this bug looks very hard to hit. |
Neither |
Getting closer. This time the only cookie sent is |
That one worked. 3 cookies sent with the expected response. I notice those 3 cookies are all marked |
Aha, it looks like I should divide the number by 1000... |
I also just noticed that |
That last test case works perfectly |
Good, gonna use that. |
Thanks for fixing it. Now, I've gotta figure out why firefox isn't deleting them in the first place. |
What is the problem?
Firefox on arch linux has recently been updated to 74.0.1. Since installing this version previously working scripts have started responding with Error 413 "Request Entity Too Large".
Running the above, the
GM_xmlhttpRequest
returns a HTML document with response code 413. The nativeXMLHttpRequest
returns an encoded string with a 200 response code.Environment
I've also noticed the beta release which I will download and test shortly.Same issue exists in RC2The text was updated successfully, but these errors were encountered: