Skip to content

What should the ProgressEvent attributes be in the case of an error/abort? #14

Open

Description

@jdm

Is the length computable, is there a total and a current length, or are the values all supposed to be false and zero?

Activity

  1. jdm commented on Jul 20, 2015

    @jdm
    Author

    The same questions are true for the progress events fired from the abort steps.

  2. changed the title [-]What should the ProgressEvent attributes be in the case of an error?[/-] [+]What should the ProgressEvent attributes be in the case of an error/abort?[/+] on Jul 20, 2015
  3. mkruisselbrink commented on Feb 3, 2017

    @mkruisselbrink
    Collaborator

    The same questions apply to any progress event it seems. Not even for progress progress events is it mentioned what any of the attributes of the event should be initialized to.

    I'll try to write some tests to figure out what browser currently are doing (from looking at the code it seems chrome at least always includes whatever information is has available with any event, so abort and error events include how much data has been read before the abort/error occurred).

  4. annevk commented on Feb 7, 2017

    @annevk
    Member

    You might also want to check https://xhr.spec.whatwg.org/ and align to some extent if possible, although maybe trying to go for that is just a waste of time.

  5. mkruisselbrink commented on Feb 7, 2017

    @mkruisselbrink
    Collaborator

    Ah yeah, at least in theory it would make sense to behave the same as XHR. In which case it seems that most non-progress progress events (such as abort, error, etc) set their attributes to zero (which isn't what the chrome implementation does, even for XHR btw).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions