Skip to content

TypeError: "'requestAnimationFrame' called on an object that does not implement interface Window." #6508

Closed
@xenolithviktor

Description

@xenolithviktor

Describe the bug

TypeError: "'requestAnimationFrame' called on an object that does not implement interface Window."

The error occurs when running bootstrap-vue in the context of a WebExtension content script.

Steps to reproduce the bug

Use any bootstrap-vue component (for example <b-form-input>) that uses requestAF internally.

Expected behavior

The problem is that globalThis !== window in a WebExtension content script (see facebook/react#16606)
requestAF needs to be bound to Window so that this points to window.

Versions

Libraries:

  • BootstrapVue: 2.21.2
  • Bootstrap: 4.6.0
  • Vue: 2.6.11

Environment:

  • Device: PC
  • OS: Windows 10
  • Browser: Mozilla Firefox
  • Version: 86.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy