Skip to content

For sync XHR consider setting the service-workers mode to "none" to align browsers #397

Open
@asutherland

Description

@asutherland

What is the issue with the XMLHttpRequest Standard?

It's come up that the WPTs for service-worker sync XHR interception fail on blink and webkit and pass on gecko. Given that this has been a longstanding implementation divergence, perhaps we should standardize this by changing the initialization of the Request instance in XHR's send() method to set the service-workers mode to "none" for sync XHRs? Note that the req as initialized there is used for both sync and async XHR, and we would not want to impact async XHR where browsers are already aligned in intercepting the request.

xref #20

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