mirror of
https://github.com/servo/servo.git
synced 2025-08-17 19:35:33 +01:00
Auto merge of #25695 - pshaughn:eventsource, r=nox
Let EventSource fail fast on bad schemes <!-- Please describe your changes on the following line: --> EventSource went into an infinite reconnect loop in some cases where tests wanted it to go into a hard error state; this addresses the cases where that happens because the url isn't even http(s) and will thus definitely never result in an event stream. https://github.com/web-platform-tests/wpt/issues/4311 suggests the tests might just be too picky here; the spec does use the word "may" on relevant behavior. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25692 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
7b540945cd
3 changed files with 14 additions and 30 deletions
|
@ -5,13 +5,3 @@
|
|||
|
||||
[dedicated worker - EventSource: constructor (act as if there is a network error) (https://example.not/test)]
|
||||
expected: FAIL
|
||||
|
||||
[dedicated worker - EventSource: constructor (act as if there is a network error) (ftp://example.not/)]
|
||||
expected: FAIL
|
||||
|
||||
[dedicated worker - EventSource: constructor (act as if there is a network error) (mailto:whatwg@awesome.example)]
|
||||
expected: FAIL
|
||||
|
||||
[dedicated worker - EventSource: constructor (act as if there is a network error) (javascript:alert('FAIL'))]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
[eventsource-constructor-non-same-origin.htm]
|
||||
type: testharness
|
||||
[EventSource: constructor (act as if there is a network error) (http://example.not/)]
|
||||
expected: FAIL
|
||||
|
||||
[EventSource: constructor (act as if there is a network error) (https://example.not/test)]
|
||||
expected: FAIL
|
||||
|
||||
[EventSource: constructor (act as if there is a network error) (ftp://example.not/)]
|
||||
expected: FAIL
|
||||
|
||||
[EventSource: constructor (act as if there is a network error) (mailto:whatwg@awesome.example)]
|
||||
expected: FAIL
|
||||
|
||||
[EventSource: constructor (act as if there is a network error) (javascript:alert('FAIL'))]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue