Displace XMLHttpRequest to record events

@barnabyc @flahertyb