Has anyone made a law about this sort of thing yet? If not I'll have it: Axons Law - Any sufficiently fast optimisation will be repurposed as an attack vector.
Time to write a comprehensive paper titled "Optimizations Considered Harmful". Seriously though, it's distressing how we have Spectre and Meltdown and whatnot. We've gone too far trying to squeeze every drop of performance out of hardware (Electron is for balance, of course /s) and now we pay the price.
Apparently the other browsers went with "don't inject untrusted third party code into a site".