mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Issue 4253 - Setting timeout on a sync XHR should throw InvalidAccessErr
This commit is contained in:
parent
c6aadc5bcc
commit
dacd21ac52
2 changed files with 1 additions and 6 deletions
|
@ -460,7 +460,7 @@ impl<'a> XMLHttpRequestMethods for JSRef<'a, XMLHttpRequest> {
|
|||
fn SetTimeout(self, timeout: u32) -> ErrorResult {
|
||||
if self.sync.get() {
|
||||
// FIXME: Not valid for a worker environment
|
||||
Err(InvalidState)
|
||||
Err(InvalidAccess)
|
||||
} else {
|
||||
self.timeout.set(timeout);
|
||||
if self.send_flag.get() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue