Skip to content

InvalidCharacterError: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. #251

@Roaders

Description

@Roaders

Description

Occasionally when a window has been closed the following error is observed:

url-helper.js:33 Uncaught (in promise) InvalidCharacterError: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
    at decodeUUUrl (url-helper.js:33:1)
    at DesktopAgentImpl.cleanupIntentListenerCallbacks (desktop-agent.js:624:29)
    at DesktopAgentImpl.handleProxyDisconnect (desktop-agent.js:564:1)
    at DesktopAgentImpl.sendHeartbeat (desktop-agent.js:526:1)
    at desktop-agent.js:512:1

The issue appears to be within cleanupIntentListenerCallbacks in DesktopAgentImpl where it assumes that a key in the intentListenerCallbacks can be decoded.

Area of Issue

  • App Directory
  • Broadcasts
  • Intents
  • App / Channel Resolver
  • Cross Frame / Window Messaging
  • Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions