Open Bug 1332251 Opened 3 years ago Updated 5 months ago

Redesign XHR.timeout tests to use Promises?

Categories

(Core :: DOM: Core & HTML, defect, P3)

45 Branch
defect

Tracking

()

People

(Reporter: WeirdAl, Unassigned)

References

Details

I wrote the original tests and implementation for XMLHttpRequest's timeout feature.  Since then, there's been a number of intermittent failures because timeouts are inherently not guaranteed to run in the order of the delay you set them by.

I've been thinking for a while that while the timeout feature itself relies on a certain number of milliseconds passing, the Promises API may provide a more reliable manner of scheduling the exercising of other features (resetting the timeout, or calling abort early, for instance).

Promises were much less mature when I wrote the original feature and tests, and I certainly didn't know very much about them, if anything.
Priority: -- → P3
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.