| partial-wav.py |
Serves a throttled silent WAV that forces a second window to make its own
mid-file media range request.
The resource is a long silent WAV whose body is streamed slowly (throttled).
The WAV header is sent immediately so a media element can read metadata right
away, but the audio samples trickle out over time. A window that only wants
metadata (preload="metadata") therefore caches just the beginning of the file.
When a second, same-principal window clones that media resource and seeks close
to the end, the bytes it needs have not been downloaded yet, so it must issue
its own range request starting well past byte 0 (a non-first-partial 206).
Opaque Response Blocking only allows such a request if the resource has already
been recorded as media. This is what lets the test tell apart per-window and
per-principal recording (bug 2057272).
|
3389 |
- |