That such hacks are used as security measures makes me think that we've heard far from the last JavaScript exploit.
Now I find that workaround sweet: but it's still a total kludge and that such kludges are used just shows how poorly security has been conceived from the ground up in browsers / JavaScript.