Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75488

XMLHttpRequest.abort() does not set readyState to 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.3
    • None
    • Mac OS 10.14.4 (18E226), Apple LLVM version 10.0.1 (clang-1001.0.46.4)

    Description

      According to the MDN documentation, XMLHttpRequest.abort() method should set readyState property to 0 (UNSENT), but in QML implementation this property is set to 4 (DONE).

      Example project is attached. The line 52 of main.qml sets some unreachable host and the following lines start a timeout timer. When this timer is triggered, the request is aborted, and its readyState should be set to 0, but actually it is set to 4.

      Attachments

        1. xhr-readyState.zip
          3 kB
          Artem Sidyakin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            artemsyd Artem Sidyakin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes