[whatwg] window.onerror and cross-origin scripts

On 9/20/11 5:40 PM, Simon Pieters wrote:
> However, it is still possible to tell if the user is logged in or not if
> a site serves a script for a particular URL when the user is logged in
> and redirects to the home page or so when the user is not logged in.

Can't you tell this from the load event for the <script> tag, without 
involving the error event in any way?

I'd love it if we could close this hole up, but the ship has long 
sailed.  :(

> There are other ways to
> tell if the user is logged in, however it seems we should try to keep
> them to a minimum.

I'm not sure that onerror and onload are really different ways to tell here.

Unless the proposal is that in this case onload fire instead of onerror 
for the script that ends up as an HTML document?

-Boris

Received on Tuesday, 20 September 2011 20:02:47 UTC