Test for bug 25796.

External script: PASS
Sync XHR: PASS
Async XHR: PASS
DONE

