[Firefox bug] infinite count badge loop on blocked media

Ask for help about NoScript, no registration needed to post
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

[Firefox bug] infinite count badge loop on blocked media

Post 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.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
User avatar
therube
Ambassador
Posts: 7924
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

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

Post 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)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 Lightning/5.4
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

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

Post 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.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Post Reply