DescriptionHave XHR.getResponseHeader() return null in initial ready states.
Follow the XMLHttpRequest specification for getResponseHeader() and
return null if the object is in ready states {UNSENT, OPENED}.
Similarly for getAllResponseHeaders() and returning "" (the empty
string) when in these initial two ready states.
This replaces the older spec behavior of throwing InvalidStateError,
something that no other engines currently do, hence cross-browser
compatibility risk is low.
When reconciling the relevant tests, reworked these to use
js-test-{pre,post}.js instead.
R=tyoshino@chromium.org
BUG=311274
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160679
Patch Set 1 #
Total comments: 13
Patch Set 2 : Improve test code quality in places #
Total comments: 2
Patch Set 3 : Test code consistency #
Messages
Total messages: 10 (0 generated)
|