-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
SyncMessage (early sync XHR) breaks XML gzip-encoded documents #372
Comments
It seems a Firefox regression (it does not happen in Firefox ESR 115, it does in 128 and above). The page rendering is stopped as soon as a Investigating, thanks. |
Synchronous XHR, I presume? I recall a relatively recent report in Firefox originally attributed to NoScript and another extension, at https://bugzilla.mozilla.org/show_bug.cgi?id=1899786 where XML document rendering broke when OMT decompression was enabled by default. The test case here (standardebooks.org) is a XHTML document served with Content-Type |
Correct, fixed my comment. Thank you, I can confirm it's the same issue: it goes away indeed as soon as you flip the Since it's marked as 129 wontfix, I presume I will need some kind of work around for NoScript and certainly patching Tor Browser 14.x (based on ESR128). |
Added a work-around (another hack, of course!) in NoScript 11.4.34rc2. |
What do you expect to happen in Firefox by using hackademix/nscl@397a6f9 ? Do you get the same effect if you call filter.disconnect() from filter.onstart (instead of filter.close() from filter.onstop)? Forwarding the full response body without needing the response body itself seems rather wasteful. |
To force the (gzip) decoding to finish before the actual parsing / rendering / event dispatching starts.
If I do as you suggest it seems nothing gets to the page and I consistently get the dreaded yellow/red XML parsing error page. What does seem to work is calling |
@Rob--W wrote:
I'm not sure what I was looking at this morning, but in the meanwhile I managed to test with big XML files (~10MB), double checking they were bigger than the ondata buffer and passing through only the first ~16Kb chunk. Since it worked, as a second thought I retried So I'm likely going with your suggestion in rc3, thank you (hackademix/nscl@56a81d1). |
I wrote:
Unfortunately I had to revert to the original "wasteful" version, because calling Therefore I'm releasing 11.4.34 with the full passthrough work-around, which seems much more reliable, and working at a minimal test case to check what's actually wrong with |
I have "disable restrictions globally" enabled, but whenever I have NoScript active, standardebooks.org breaks; sometimes a page will load the first time I go to it, but a refresh or clicking any link to navigate further yields either a blank page, or nothing aside from the site header.
I'm using the latest version of Firefox.
The text was updated successfully, but these errors were encountered: