Skip to content

[Firefox] Live URL Viewer: ReferenceError: SharedArrayBuffer is not defined #168

@valenting

Description

@valenting
Uncaught ReferenceError: SharedArrayBuffer is not defined
    [23]< https://jsdom.github.io/whatwg-url/whatwg-url.js:7631
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    [3]< https://jsdom.github.io/whatwg-url/whatwg-url.js:271
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    [24]< https://jsdom.github.io/whatwg-url/whatwg-url.js:7777
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    [12]< https://jsdom.github.io/whatwg-url/whatwg-url.js:2936
    o https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    r https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    <anonymous> https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    <anonymous> https://jsdom.github.io/whatwg-url/whatwg-url.js:1
    <anonymous> https://jsdom.github.io/whatwg-url/whatwg-url.js:1

The code at that location is:

const sabByteLengthGetter =
    Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength").get;

According to MDN
SharedArrayBuffer objects are in principle always available, but unfortunately the constructor on the global object is hidden, unless the two headers mentioned above are set, for compatibility with web content.

Not sure exactly where the code comes from, but the result is that the live URL viewer doesn't work in Firefox.

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