| Summary: | The overrideMimeType in XMLHttpRequest should throw the exception. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Shivakumar J M <shiva.jm> | ||||||
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ap, commit-queue, darin, gyuyoung.kim, kling, ryuan.choi | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Shivakumar J M
2014-09-10 02:39:45 PDT
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. |