Skip to content

Browser extension popup (at inputs) not rendered correctly (empty iframe, console errors) #240

@NitroxydeX

Description

@NitroxydeX

Description:
The popup of the Passbolt browser extension often does not render correctly.
In the inspector, the iframe is visible, but its content remains empty.
This only happens when an actual password is available. On websites where there is no password saved in Passbolt the popup is always rendered.
This results in two console errors being thrown:

TypeError: can't access property "getFirstById", t is null
    getDefaultResourceTypeIcon moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/app.js:2
    getResourceIcon moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/app.js:2
    render moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/app.js:2
    Gi moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    zi moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    Kl moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    Cs moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    Es moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2

Uncaught (in promise) TypeError: can't access property "getFirstById", t is null
    getDefaultResourceTypeIcon moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/app.js:2
    getResourceIcon moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/app.js:2
    render moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/app.js:2
    Gi moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    zi moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    Kl moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    Cs moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2
    Es moz-extension://206253e1-9aed-4610-8f87-38e2ee69b5a7/webAccessibleResources/js/dist/in-form-menu/vendors.js:2

Steps to reproduce:

  1. Try to open the Passbolt browser extension popup.
  2. Sometimes the inner div of the iframe remains empty instead of rendering the UI.
  3. Console logs show the errors above.

Expected behavior:
The extension popup should render the UI correctly every time.

Actual behavior:
The iframe often renders empty, and the above JavaScript errors appear in the console.

Environment:

  • Browser: Firefox 142.0.1
  • OS: Windows 11 24H2
  • Passbolt extension version: 5.4.1

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