Skip to content
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

Broken in Firefox 126.0 #85

Open
matthewkogan opened this issue May 16, 2024 · 15 comments
Open

Broken in Firefox 126.0 #85

matthewkogan opened this issue May 16, 2024 · 15 comments

Comments

@matthewkogan
Copy link

Since updating to Firefox 126.0 only the first item in the feed is visible.

@aureliendavid
Copy link
Owner

Hello,

Do you have an example feed where the problem occurs?

I'm using both firefox 126.0 and 127.0b2 and I don't have this issue.

thanks

@matthewkogan
Copy link
Author

It's strange, it seems to load a new feed successfully, or partly successfully, but then fails when I press F5. I've tested with the links from https://www.bbc.co.uk/news/10628494.

@matthewkogan
Copy link
Author

When it fails it says:

TypeError: feed_desc is null
    formatsubtitle moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:69
    main moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:301
    onload moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:43
    xhrdoc moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:39
    main moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:290
    onOptions moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:327
    promise callback* moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:342
    <anonymous> moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:447
rsspreview.js:78:15

ReferenceError: feed_desc is not defined rsspreview.js:79:19
    formatsubtitle moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:79
    main moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:301
    onload moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:43
    (Async: EventHandlerNonNull)
    xhrdoc moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:39
    main moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:290
    onOptions moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:327
    (Async: promise callback)
    <anonymous> moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:342
    <anonymous> moz-extension://dd0b4b2e-37c5-4cbb-ab2c-172c4e634a5a/rsspreview.js:447
    inject resource://gre/modules/ExtensionContent.sys.mjs:573
    AsyncFunctionNext self-hosted:799

@aureliendavid
Copy link
Owner

thanks for the info

I can't reproduce the issue on any of the bbc feeds

can you maybe try to uninstall and reinstall the addon?

I also pushed a tiny update (v3.32.1) based on the error message you posted that may help

@matthewkogan
Copy link
Author

I'm afraid uninstalling and reinstalling the addon hasn't fixed it. I'm still seeing the first error (TypeError: feed_desc is null) and now also this one:

TypeError: document.getElementById(...) is null rsspreview.js:315:33
    main moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:315
    onload moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:43
    (Async: EventHandlerNonNull)
    xhrdoc moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:39
    main moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:290
    onOptions moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:327
    (Async: promise callback)
    <anonymous> moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:342
    <anonymous> moz-extension://17906802-0934-4982-906d-c4238b325504/rsspreview.js:447
    inject resource://gre/modules/ExtensionContent.sys.mjs:573
    AsyncFunctionNext self-hosted:799

@aureliendavid
Copy link
Owner

hm, i'm stumped to be honest, I can't reproduce it anywhere (maybe some other users will manifest themselves if it's really a problem with the new firefox version)

can you maybe post a screenshot of what the page actually looks like when the error occurs? (and the exact feed url?)

sorry for the vague answers, it's hard to debug without reproducing

(also maybe go to the web inspector, right click on the root element, and so copy > outer html and post it?)

thanks

@matthewkogan
Copy link
Author

image

@matthewkogan
Copy link
Author

<html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link rel="stylesheet" href="moz-extension://17906802-0934-4982-906d-c4238b325504/preview.css" /></head><body id="rsspreviewBody"><div id="feedBody"></div></body></html>

@matthewkogan
Copy link
Author

Got it, it's caused by NoScript. I started a new profile and installed just RSSpreview and it worked fine. Installed NoScript and the problem appeared, even when the domain is marked as trusted.

@aureliendavid
Copy link
Owner

ah well spotted! thank you for debugging

I don't use noscript so I don't know it very well, I'll try to install it and check if there are incompatibilities with rsspreview

the thing that seems blocked in your issue is the xslt transformation of the xml into an html document, maybe this can be whitelisted in noscript (or maybe the extension can be whitelisted i don't know, i'll try to check)

@matthewkogan
Copy link
Author

I've also reported https://bugzilla.mozilla.org/show_bug.cgi?id=1899786.

@matthewkogan
Copy link
Author

For now it is possible to work around the problem by setting the Firefox preference network.decompression_off_mainthread to false in about:config.

@MarkusGasser2
Copy link

Yes, I also noticed this error and reported it as well.
Thanks, yes, with disabling the option everything works ok again.

@jesup
Copy link

jesup commented Jun 27, 2024

Decompressing Off MainThread shouldn't change anything, except it will change timings and perhaps orders of when things occur, since decompression is no longer synchronous. From a Web Standards perspective, this shouldn't matter at all.
I suspect the timing changes combined with interactions between NoScript and RSSPreview are triggering some race conditions in the extensions. What, I'm not sure, and it would be hard for me to debug since I know little about them. (I wrote the Decompression OffMainThread patch).
If you can get more details on what happens (perhaps a full networking log via about:logging), perhaps I can help tell you where the timing change might be, but I'm not sure that would tell you more than your own debugging would

@matthewkogan
Copy link
Author

The preference to set to work around this has been renamed in Firefox 128 to network.decompression_off_mainthread2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants