Collapse frames with blocked content #14825
Labels
feature/shields/adblock
Blocking ads & trackers with Shields
features/shields/cosmetic-filtering
OS/Android
Fixes related to Android browser functionality
OS/Desktop
priority/P4
Planned work. We expect to get to it "soon".
privacy
QA Pass - Android ARM
QA Pass - Android Tab
QA Pass-Linux
QA Pass-macOS
QA Pass-Win64
QA/Test-All-Platforms
QA/Yes
release-notes/exclude
uBO-parity
Milestone
uBlock Origin has some code that causes frames whose sources are blocked to be collapsed.
It appears that this works by generating a randomized alphanumeric string on each page load and adding it as an attribute to each blocked
iframe
element, and also injecting a CSS rule designed to block any element with that attribute.e.g. when loading the following HTML:
With default Brave Shields configuration, the frames show a broken page (or suspicious document warning on 1.23.x with this PR).
When loading in uBlock Origin, the frames are invisible. When inspecting the page in the devtools console, the same random attribute is assigned to both (ex.
<iframe src="https://101com.com/test.html" tr5x7y7vs>
), and a[tr5x7y7vs] { display: none !important; }
stylesheet is added to the page.The text was updated successfully, but these errors were encountered: