Skip to content

Setting xhr.responseType causes an exception in Firefox #576

@ghost

Description

Note: for support questions, please use one of these channels: stackoverflow or slack

You want to:

  • report a bug
  • request a feature

Current behaviour

#562 changed the way xhr.responseType is set. This line will throw an exception in Firefox, but it only seems to happen when run from a web worker.

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

Steps to reproduce (if the current behaviour is a bug)

See socketio/socket.io-client#1149 for a test case

Expected behaviour

Setting xhr.responseType shouldn't cause an error

Setup

  • OS: Windows
  • browser: Firefox 54.0.1
  • engine.io version: 3.1.1

Other information (e.g. stacktraces, related issues, suggestions how to fix)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions