uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

[Firefox] Won't block requests when moving a tab to a new window

Open g3939434 opened this issue 10 years ago • 6 comments

uBlock Origin v1.5.0, Firefox v43.0.2

  1. Open 2 new tabs and the logger
  2. Visit https://www.yahoo.com/ in the first new tab and trackers, e.g. analytics.yahoo.com, are blocked and showed in the logger
  3. Move the first tab to a new window
  4. Trigger the trackers by any means, i.e. hover links
  5. Trackers are not blocked unless reloading the tab

g3939434 avatar Dec 27 '15 11:12 g3939434

For the new tab, locationChangedListener is called with an about:blank URL, and then no further events, so uBO is not aware that the tab's location has changed, that it is not really about:blank.

If the destination window already exists, moving the tab to the new window won't even trigger a location-changed event, resulting in all network requests from the moved tab being seen as behind-the-scene network requests.

gorhill avatar Dec 27 '15 13:12 gorhill

@gorhill Would it be possible to apply the base settings to behind the scenes requests?

ghost avatar Jan 03 '16 19:01 ghost

Please, read the wiki -- the issue tracker is not a bulletin board.

gorhill avatar Jan 03 '16 21:01 gorhill

Can't reproduce the issue with the webext version of uBO. Concerning the legacy version, this is a browser bug, the browser fails to fire the expected "Location Changed" event.

gorhill avatar Sep 10 '17 18:09 gorhill

Hey @gorhill, are there any updates on this issue?

I am on latest Firefox 52 and uBlock legacy, took me a while to figure out why I get youtube ads sometimes. Apparently moving tab between windows disables uBlock for it.

reallyuniquename avatar Apr 04 '18 16:04 reallyuniquename

are there any updates on this issue?

As seen in the above comment by Raymond. This is a browser issue, when concerning the legacy version. I see no point in trying to hunt down and fix for legacy browsers..

harshanvn avatar Apr 04 '18 17:04 harshanvn