uBlockOrigin / uMatrix-issues

This is the community-maintained issue tracker for uMatrix
https://github.com/gorhill/uMatrix
123 stars 17 forks source link

uMatrix has missing domains and shows wrong domains #21

Open baptx opened 6 years ago

baptx commented 6 years ago

Prerequisites

Description

Sometimes uMatrix has missing third-party domains and sometimes it shows wrong third-party domains that I had open in another tab. I noticed that the problem happened when I had a new tab open and it disappeared when I drag-and-dropped a tab in Firefox to make it a new window instead.

A specific URL where the issue occurs

It happened on a page like https://www.prizle.com/fr/inscription but can happen on other websites.

Steps to Reproduce

To be defined. Random at the moment.

Supporting evidence

Screenshots: https://www.reddit.com/r/uMatrix/comments/8q9jlk/umatrix_has_missing_domains_and_shows_wrong/

Your environment

gorhill commented 6 years ago

For the missing entries, the browser can bypass uMatrix listeners when it pulls requests from its short-term memory-based cache, nothing uMatrix can do around this. Workaround is to force a cache-bypass when reloading.

For the extra entries, this can happens when pages are designed in a way which causes network requests to be fired after navigating away from the page -- for example when a page fires a navigator.sendBeacon() request in an beforeunload listener.

uBlock-user commented 6 years ago

@gorhill Duplicate of https://github.com/gorhill/uMatrix/issues/221 ??

gorhill commented 6 years ago

Yes, for the extra entries it's duplicate of #221.

uBlock-user commented 6 years ago

Duplicate of https://github.com/gorhill/uMatrix/issues/221

gorhill commented 6 years ago

Hmm wait, I though this was a more recent, opened issue. https://github.com/gorhill/uMatrix/issues/221 is quite old.

I did comment somewhere recently that maybe uMatrix could make use of Firefox's documentUrl/Chromium's initiator property to figure out more accurately from where a network request originates. I can't remember where however.

Will keep this issue opened and close if I ever can find the issue where I talked about using the extra properties.

uBlock-user commented 6 years ago

You did mention documentUrl in https://github.com/gorhill/uBlock/issues/3693 and https://github.com/gorhill/uBlock/issues/3546 although can't find anything about it in uMatrix's repo.

baptx commented 6 years ago

Any idea how these problems are prevented by other similar addons like RequestPolicy? I don't remember having seen these problems when I was using RequestPolicy until the addon was not compatible with Firefox Quantum.

By the way, the README file from https://github.com/gorhill/uMatrix could be updated to say that users can create issues in https://github.com/uBlockOrigin/uMatrix-issues. I did not know there was a specific file https://github.com/gorhill/uMatrix/blob/master/CONTRIBUTING.md for this. Updating the README could prevent users from posting bugs on Reddit like I did and it will help users finding known issues on this repository.

joveian commented 6 years ago

Maybe I'm the only one foolish enough to try this, but I've seen missing domains with Firefox Tracking Protection enabled (Firefox 61.0.2). It doesn't always show the shield icon and disabling via the shield icon does not always fix it but globally disabling tracking protection does fix it. I added a note to the "the page is still broken after I created all necessary rules" page.

baptx commented 4 years ago

I had the missing domain again with the Google Maps integration of a page like https://www.huffingtonpost.fr/entry/covid-19-ces-villes-et-marches-ou-le-masque-est-obligatoire-en-exterieur_fr_5f1fd651c5b638cfec494f52. The workaround was to navigate to another page and then open the page again (without using the browser back button but for example by using Ctrl+Z in the URL bar to open the previous URL directly).