anmol Vlad
I wonder if this is a different issue altogether, or if this is because of the different ways you load the site the first time vs. the second time. The first time you enter music.youtube.com, you have to click on the privacy agreement, which results in the page being refreshed. And that sounds oddly familiar to the steps to reproduce I posted a while ago (see szlend). I'm able to reproduce the inconsistent uBlock behaviour regardless of whether Orion's content blocking is enabled or not.
The fact that this can be resolved by a tab refresh leads me to speculate it has something to do with how uBlock gets initialized in a fresh tab vs. a reused one.
@Vlad I can only reproduce the issue with uBlock Origin cosmetic (DOM element) filters when the page loads in a new tab, which I think is a major clue.
Scenario 1:
- We have site A and B
- Using uBlock Origin, block a DOM element on website B
- Click on a link on website A that leads to website B in the same tab
- uBlock Origin successfully blocks the DOM element
Scenario 2:
- We have site A and B
- Using uBlock Origin, block a DOM element on website B
- Click on a link on website A that leads to website B in a new tab (target="_blank")
- uBlock Origin fails to blocks the DOM element
- Refresh the page
- uBlock Origin successfully blocks the DOM element
I can reproduce this every single time. In practice this results in most external links (as they're often configured to open in a new tab) not being adblocked properly, which is frustrating. All links to social media content (e.g. Twitter, YouTube) are typically opened with target=_blank.
I think it's possible that people correlate this with Orion's content blockers being disabled because those will often block the same content. So disabling Orion's content blocker make the issue more likely to appear as uBlock Origin's flakiness is more apparent. I suggest testing with custom uBlock filters for this reason.