Skip to content
This repository was archived by the owner on Jul 30, 2026. It is now read-only.
This repository was archived by the owner on Jul 30, 2026. It is now read-only.

No-op mode doesn't work on Safari #364

Description

@Helloyunho

In Safari, no-op mode doesn't work as the line below returns true.

if (typeof globalThis.browser === "undefined" || Object.getPrototypeOf(globalThis.browser) !== Object.prototype) {

Strangely, the browser object on Safari inherits CallbackObject. So Object.getPrototypeOf(globalThis.browser) doesn't return Object.

Object.getPrototypeOf(Object.getPrototypeOf(globalThis.browser)) !== Object.prototype finally gives the expected value.

CleanShot 2022-03-02 at 23 14 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions