Allow enabling "Block Scripts" without reloading the page #46291
Labels
enhancement
feature/shields/!scripts
Blocking JavaScript with Shields
feature/shields
The overall Shields feature in Brave.
OS/Desktop
priority/P4
Planned work. We expect to get to it "soon".
privacy
Description
Perhaps it's just me, but for various reasons it seems like a bad idea to reload the page when "Block Scripts" is toggled from "off" (scripts running) to "on" (scripts stopped). The by far most common reason to toggle this is:
a script is malfunctioning, or
a script is intentionally doing something harmful or anti-user.
In both cases, I don't see how what the user wants is for everything to be ripped away, reloaded, now possibly even more broken. At best, it wastes time, at worst, now what the user actually wanted to look at with just scripts disabled isn't even loading properly anymore. So that seems like a nonsensical action to me, and I suggest it is removed.
The reverse, reloading the page when toggling scripts from off to on, seems meaningful since I guess otherwise the scripts won't start from a meaningful clean slate. But that seems like a separate, unrelated action.
Steps to reproduce
Actual result
When I disable javascript to stop it from modifying the page, the page is reloaded which seems like the most modified it could be
Expected result
When I stop JavaScript, the page just stays as-is
Reproduces how often
Easily reproduced
Brave version (brave://version info)
Brave 1.78.102 Chromium: 136.0.7103.113 (Official Build) unknown (64-bit)
Channel information
Reproducibility
Miscellaneous information
No response
The text was updated successfully, but these errors were encountered: