diff --git a/source b/source index 54f7db65dfb..4a9945dcf53 100644 --- a/source +++ b/source @@ -33762,10 +33762,10 @@ interface HTMLMediaElement : HTMLElement {

-

A media resource has an associated - origin, which is either "none", - "multiple", "rewritten", or an - origin. It is initially set to "none".

+

A media resource has an associated origin, which is either "none", + "multiple", "rewritten", or an origin. + It is initially set to "none".

A media resource can have multiple audio and video tracks. For the purposes of a media element, the video data of the media resource is only that of the @@ -34581,9 +34581,9 @@ interface MediaError {

To verify a media response given a response - response, a media resource resource, and - "entire resource" or a - (number, number or "until end") tuple byteRange:

+ response, a media resource resource, and "entire resource" or a (number, number or "until end") + tuple byteRange:

  1. If response is a network error, then return false.

  2. @@ -34591,19 +34591,19 @@ interface MediaError {
  3. If byteRange is "entire resource", then return true.

  4. -
  5. Let internalResponse be response's - unsafe response.

  6. +
  7. Let internalResponse be response's unsafe + response.

  8. If internalResponse's status is not 206, then return false.

  9. Let origin be "rewritten" if internalResponse's URL is null; otherwise - internalResponse's URL's - origin.

  10. + internalResponse's URL's origin.

    -
  11. Let previousOrigin be resource's - origin.

  12. +
  13. Let previousOrigin be resource's origin.

  14. If any of the following conditions are true:

    @@ -34629,13 +34629,12 @@ interface MediaError { by being patched together with other responses from different origins.

  15. -
  16. Let (start, end) be the result of - extracting content-range values from +

  17. Let (start, end) be the result of extracting content-range values from internalResponse.

  18. -
  19. If start is not byteRange[0], or if - byteRange[1] is neither "until end" or end, - return false.

  20. +
  21. If start is not byteRange[0], or if byteRange[1] is + neither "until end" or end, return false.

  22. Return true.

@@ -34707,33 +34706,33 @@ interface MediaError { element is an audio element, or "video" otherwise.

-
  • Let request be the result of creating a potential-CORS request given - current media resource's URL record, destination, and the - current state of media element's - crossorigin content attribute.

  • +
  • Let request be the result of creating a potential-CORS request given current media resource's + URL record, destination, and the current state of the media + element's crossorigin content + attribute.

  • Set request's client to the media element's node document's relevant settings object.

  • Let byteRange, which is "entire resource" or a - (number, number or "until end") tuple, be the byte range required to satisfy - missing data in media data. This value is implementation-defined - and may rely on codec, network conditions or other heuristics. The user-agent may determine - to fetch the resource in full, in which case byteRange would be - "entire resource", to fetch from a byte offset until the end, - in which case byteRange would be - (number, "until end"), or to fetch a range between two byte offsets, - im which case byteRange would be a (number, number) tuple representing the two + (number, number or "until end") tuple, be the byte range required to + satisfy missing data in media data. This value is + implementation-defined and may rely on codec, network conditions or other + heuristics. The user-agent may determine to fetch the resource in full, in which case + byteRange would be "entire resource"; to fetch from a byte + offset until the end, in which case byteRange would be a (number, "until end") tuple; or to fetch a range between two byte offsets, in which + case byteRange would be a (number, number) tuple representing the two offsets.

  • If byteRange is not "entire resource", then:

    +
      -
    1. If byteRange[1] is "until end" then - add a range header to request given - byteRange[0].

    2. +
    3. If byteRange[1] is "until end", then add a + range header to request given byteRange[0].

    4. Otherwise, add a range header to request given byteRange[0] and byteRange[1].

    5. @@ -34741,20 +34740,19 @@ interface MediaError {
    6. -

      Fetch request, with - processResponse set to the following steps given - response response:

      +

      Fetch request, with processResponse set to the following steps given response response:

        -
      1. Let global be the media element's - node document's relevant global object.

      2. +
      3. Let global be the media element's node + document's relevant global object.

      4. -
      5. Let updateMedia be to queue a media element task given - the media element to run the first appropriate steps from the - media data processing steps list below. (A new task is used for - this so that the work described below occurs relative to the appropriate - media element event task source rather than using the - networking task source.)

        +
      6. Let updateMedia be to queue a media element task given the + media element to run the first appropriate steps from the media data + processing steps list below. (A new task is used for this so that the work + described below occurs relative to the appropriate media element event task + source rather than using the networking task source.)

      7. Let finalize be to finalize and report timing with response, global, and destination, and call @@ -34768,17 +34766,17 @@ interface MediaError {

      8. If the fetching process has completes without errors, including decoding the media data, and if all of the data is available to the user agent without network - access, then, the user agent must move on to the final step below. - This might never happen, e.g. when streaming an infinite resource such as web radio, or - if the resource is longer than the user agent's ability to cache data.

        + access, then, the user agent must move on to the final step below. This might + never happen, e.g. when streaming an infinite resource such as web radio, or if the + resource is longer than the user agent's ability to cache data.

    7. If the result of verifying - response given the current media resource and - byteRange is false, then call finalize. Otherwise, - incrementally read response's - body given updateMedia, + response given the current media resource and byteRange + is false, then call finalize. Otherwise, incrementally read response's body given updateMedia, processEndOfMedia, finalize, and global.

    8. Update the media data with the contents of response's