Re: [whatwg/xhr] Wrong state after abort() (#88)

@annevk, I'm game, but changing Firefox to match the spec as it is now *will* cause it to fail the following tests:

-  abort-during-open.htm/worker
-  abort-event-abort.htm
-  send-data-unexpected-tostring.htm (the first test)

The abort-during-open failure is of course already explained in this ticket (the state is never set to "unsent", but stays "open").

The other 2 tests expect send() to throw when following an abort(). However, at the time of abort(), the state is open, but the send flag is *false*, so the request error steps are not called, and the state remains "open, send flag not set" when send() is called, so it never throws the expected InvalidStateError.

(Note that Firefox currently passes the tests because it always changes the state to "unsent" in abort() step 3, not just if it's "done").

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/88#issuecomment-254638884

Received on Tuesday, 18 October 2016 21:05:25 UTC