mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +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 {
|
fn SetTimeout(self, timeout: u32) -> ErrorResult {
|
||||||
if self.sync.get() {
|
if self.sync.get() {
|
||||||
// FIXME: Not valid for a worker environment
|
// FIXME: Not valid for a worker environment
|
||||||
Err(InvalidState)
|
Err(InvalidAccess)
|
||||||
} else {
|
} else {
|
||||||
self.timeout.set(timeout);
|
self.timeout.set(timeout);
|
||||||
if self.send_flag.get() {
|
if self.send_flag.get() {
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[timeout-sync.htm]
|
|
||||||
type: testharness
|
|
||||||
[setting timeout attribute on sync request]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue