Simon Willison’s Weblog

Subscribe
Atom feed for windowname

2 items tagged “windowname”

2008

window.name Transport. The cleverest use of the window.name messaging hack I’ve seen yet: Dojo now has dojox.io.windowName.send for safe, performant cross-domain messaging.

# 23rd July 2008, 4:25 pm / crossdomain, windowname, dojo, javascript

quipt (via) Extremely clever idea: Cache JavaScript in window.name (which persists between page views and can hold several MB of data), but use document.referrer to check that an external domain hasn’t loaded the cache with malicious code for an XSS attack. UPDATE: Jesse Ruderman points out a fatal flaw in the comments.

# 4th July 2008, 3:49 pm / security, referrer, quipt, caching, optimisation, javascript, windowname, xss