dauphine-dev / drop-feeds

Drop Feeds is a Sage / Sage++ like addon (webextension) for Firefox Quantum
https://addons.mozilla.org/fr/firefox/addon/drop-feeds/
Mozilla Public License 2.0
19 stars 9 forks source link

Reddit feed is blocked by tracking protection #24

Open jeffthieleke-wf opened 6 years ago

jeffthieleke-wf commented 6 years ago

When tracking protection is enabled (privacy.trackingprotection.enabled), Reddit RSS feeds fail to load:

https://www.reddit.com/r/all/.rss

The resource at “https://www.reddit.com/r/all/.rss?dpNoCache=1527968752532” was blocked because tracking protection is enabled.

I looked into this and other people have reported it in general (https://www.reddit.com/r/redditdev/comments/82b51f/firefox_tracking_protection_preventing_http_get/). I was hoping https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozSystem would bypass this, but I think it isn't allowed with the all urls permission.

So I just wanted to document this in case anyone else has ideas about resolving it.

dauphine-dev commented 5 years ago

I have created an wiki entry from this issue: Reddit RSS feeds fail to load

linulin commented 5 years ago

Quick non-generic hack for those who just want to make it work with their favorite bridge - you need to add the dpNoCache parameter to the PARAMETERS definition of a bridge (e.g. /usr/share/rss-bridge/bridges/VkBridge.php), like this:

    const PARAMETERS = array(
        array(
            'u' => array(
                'name' => 'Group or user name',
                'required' => true
            ),
            'dpNoCache' => array(
                'name' => 'Browser tracking protection',
                'required' => false
            )
        )
    );
dauphine-dev commented 5 years ago

Hi @linulin Thank you for your help, but I don't understand where and how use the PARAMETERS array.

An other thing dropfeeds do a 1st request with 'dpNoCache' parameter, and if this one failed the it does an other one without 'dpNoCache' parameter and this one fails too for reddit feeds with trackingprotection enabled.

In few words https://www.reddit.com/r/all/.rss gets The resource at “https://www.reddit.com/r/all/.rss” was blocked because tracking protection is enabled. too

linulin commented 5 years ago

Oh, I'm sorry, I mixed different packages after finding this page through the dpNoCache search query. My previous comment applies to the rss-bridge package which I use as back-end for Drop Feeds to follow some non rss-friendly web sites, (and it does not even have a reddit bridge).

dauphine-dev commented 5 years ago

Thank to you any way, because now I know rss-bridge ;-)