Bug 200128
Summary: | HTTP requests made by HTMLMediaElement are not canceled even after the element is removed | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alicia Boya García <aboya> |
Component: | Media | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Alicia Boya García
When debugging video_timeupdate_on_seek.html in Safari (added as part of this patch https://bugs.webkit.org/show_bug.cgi?id=199719) I noticed the test always timed out.
This test is quite particular in that the video is loaded from a special server endpoint (`timeout_on_seek.py`) which refuses to serve certain regions of the file but not sending any data and letting the request time out. (For context on why: That allows to test expected behaviors that should happen strictly before data is received from the server.)
Eventually the test finishes, test.done() is called and the HTMLMediaElement is removed from <body>. But on Safari the request is still often alive for a long time, until it times out many seconds later. This seems to make the test runner timeout, even when all the tests signaled as "done". Changing the `src` attribute does not help.
This problem is not apparent on other platforms, including iOS.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |