XMLHttpRequest::overrideMimeType should throw an "InvalidStateError" exception, if the state is LOADING or DONE. This is as per latest spec: https://dvcs.w3.org/hg/xhr/raw-file/default/xhr-1/Overview.html#the-overridemimetype%28%29-method.
Working on Patch and Test case, will submit patch soon.
Created attachment 237939 [details] Patch Set XMLHttpRequest::overrideMimeType to throw an "InvalidStateError" exception, if the state is LOADING or DONE.
Created attachment 237948 [details] Patch-Updated Re-based the Patch with minor change to prior patch.
Comment on attachment 237948 [details] Patch-Updated View in context: https://bugs.webkit.org/attachment.cgi?id=237948&action=review > LayoutTests/http/tests/xmlhttprequest/exceptions.html:72 > + shouldThrow('req.overrideMimeType("text/plain")'); Clearly this tests only DONE, not LOADING. How can we test both?
Comment on attachment 237948 [details] Patch-Updated Clearing flags on attachment: 237948 Committed r173552: <http://trac.webkit.org/changeset/173552>
All reviewed patches have been landed. Closing bug.