servo/servo — pull request #4474 by thiagopnts (2014-12-23 17:25:54+00:00)
Title: Replace XHR events for generic ones in ScriptTask

This refs #3735. As discussed in the issue, I did it cloning when I couldn't dereference an attribute. The trait method should be on `&self` for object-safety reasons.