mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
This fixes issue #3630 A short summary of the changes: * Use atomic generation id to cancel inflight requests * Handles nested calls to abort, open, send inside handlers * Adds XHRReleaseMsg to delay freeing XHR object till all inflight events are processed * Handles both timeout, errors and abort/open in a symmetric fashion i.e All inflight events will be cancelled for timeouts, aborts, errors and on calling open. * Change the ErroredMsg enum to be more symmetric with the returned Error enum I noticed a few possible changes that could make the code for fetch task simpler: * We can remove the additional timer task and let the fetch task manage its own timer (or maybe the resource loader can do this.) * The CORS related steps could also be moved into the resource loader. * Right now upload events are not support. This requires some support from resource loader. |
||
---|---|---|
.. | ||
dom | ||
parse | ||
Cargo.toml | ||
cors.rs | ||
layout_interface.rs | ||
lib.rs | ||
makefile.cargo | ||
page.rs | ||
script_task.rs | ||
timers.rs |