gnu-social/js
Brion Vibber b73c162256 Partial fix for tickets #2194, #2393: Workaround for Meteor breaking AJAX error responses returned on posting new notices. Fixes things in Firefox 4, but Safari 5 and Chrome 8 still don't return data... either on success or failure! Sigh.
The Meteor realtime plugin sets document.domain to the common prefix between the main server and the Meteor server's hostnames, which overrides the same-origin controls on JavaScript DOM access so the two parts of the app can speak to each other.
This unfortunately causes "fun" side effects for XMLHTTPRequest access to the main domain... if the new domain doesn't match the actual host (eg 'status.net' instead of 'brion.status.net') then we can't access the XHR's responseXML attribute, which holds a DOM tree of the parsed XML return data.
As a workaround, if we can't get at the contents there, we'll parse a fresh DOM tree in the local context from the responseText property, which remains available.

In the longer term, recommend retooling the realtime stuff so it's not fiddling with document.domain. It could also be an issue as it could allow local JavaScript XSS attacks to migrate to subdomains in other open windows.
2010-11-17 16:08:41 -08:00
..
farbtastic Moved farbtastic's stylesheet to use relative paths for its own images 2010-01-24 00:21:01 +01:00
jcrop last scrub of Laconica -> StatusNet 2009-08-26 03:33:43 -04:00
identica-badge.js Fixed innerHTML problem in IE7 and 8 for badge script 2010-01-22 21:08:51 +01:00
install.js Added site path field to installer + fancy URL javascript auto-detection. 2009-05-17 00:05:07 -04:00
jquery.cookie.js Implement user interface for user to preview what location they are sharing with a notice 2009-12-29 16:18:52 -05:00
jquery.cookie.min.js use minified version of jquery.cookie.js 2010-11-17 12:32:11 -05:00
jquery.form.js upgrade jquery.form.js 2010-11-17 12:30:55 -05:00
jquery.form.min.js use minified version of jquery.form.js 2010-11-17 12:31:35 -05:00
jquery.joverlay.js Upgrade to joverlay 0.8 (needed the html option) 2009-11-19 19:13:55 -05:00
jquery.joverlay.min.js Upgrade to joverlay 0.8 (needed the html option) 2009-11-19 19:13:55 -05:00
jquery.js upgrade to JQuery 1.4.4 2010-11-17 12:14:50 -05:00
jquery.min.js upgrade to JQuery 1.4.4 2010-11-17 12:14:50 -05:00
json2.js include full updated source of JSON2 and use updated minified version 2010-11-17 12:34:04 -05:00
json2.min.js include full updated source of JSON2 and use updated minified version 2010-11-17 12:34:04 -05:00
userdesign.go.js Merge branch '0.9.x' of git@gitorious.org:laconica/mainline into 0.9.x 2009-08-27 14:52:32 -07:00
util.js Partial fix for tickets #2194, #2393: Workaround for Meteor breaking AJAX error responses returned on posting new notices. Fixes things in Firefox 4, but Safari 5 and Chrome 8 still don't return data... either on success or failure! Sigh. 2010-11-17 16:08:41 -08:00
util.min.js Partial fix for tickets #2194, #2393: Workaround for Meteor breaking AJAX error responses returned on posting new notices. Fixes things in Firefox 4, but Safari 5 and Chrome 8 still don't return data... either on success or failure! Sigh. 2010-11-17 16:08:41 -08:00