Redesign XHR.timeout tests to use Promises?

NEW
Unassigned

Status

()

Core
DOM
P3
normal
9 months ago
9 months ago

People

(Reporter: WeirdAl, Unassigned)

Tracking

45 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 months ago
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.

Updated

9 months ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.