Page 1 of 1

[Firefox bug] infinite count badge loop on blocked media

Posted: Tue Apr 10, 2018 6:30 am
by skriptimaahinen
FF 59.0.2
NS 10.1.8.1rc2

As stated in the title, this appears not to be NS but Firefox bug, so this post is just for the record as people seem to have encountered similar problems before.

Steps to reproduce:
  • - Page with media (e.g. https://commons.wikimedia.org/wiki/File ... mmunis.mp3)
    - Only media privilege needed. Rest can be set to blocked but appear to make no difference.
    1. Load media to cache by playing the media.
    2. Set media to blocked.
    3. Clear cache (interestingly, clearing just "Offline Website Data" has the same result).
    4. Try to play media -> count badge increases indefinitely (refreshing page stops it).
The problem usually goes away after few reloads/cache clearings so that attempting the media playback wont trigger the loop again.

As stated above, the bug appears not to be caused by NS, as it can be reproduced with minimal test-WebExtension. Simply blocking the request for the media in onBeforeRequest seems to cause Firefox to attempt loading the media indefinitely, though having the media in cache and clearing it just before seems to be important factor.

Re: [Firefox bug] infinite count badge loop on blocked media

Posted: Tue Apr 10, 2018 9:03 am
by therube
(Do you think what I described here is the same?
https://www.yahoo.com & noscript-10.1.6.3rc4.xpi & ublock_origin-1.14.22-an+fx.xpi, uBlocks icon "counter" continually increments so long as yahoo.com is allowed.
https://forums.informaction.com/viewtop ... 248#p95248)

Re: [Firefox bug] infinite count badge loop on blocked media

Posted: Tue Apr 10, 2018 4:40 pm
by skriptimaahinen
It is possible. I can replicate the count badge loop on latest uBO with the steps above. However I cannot replicate the issue on yahoo.com with either uBO or NS alone.