Having worked on browser engines, I don't think this is a straightforward example of poor code. There are many optimizations that the complexity of the web platform means you have to disable in more complex conditions. (1/?)
1
7
For example, if you're using some specialized video or graphics pipeline isn't designed to deal with other things on top of it (common), you'd need to test for the case of "things on top of it" and avoid using the optimization in that case. (2/?)

Dec 19, 2018 · 10:29 PM UTC

1
2