Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError in Chrome's browser #13308

Open
1 task done
romuald opened this issue Feb 7, 2025 · 10 comments · Fixed by #13228
Open
1 task done

Uncaught TypeError in Chrome's browser #13308

romuald opened this issue Feb 7, 2025 · 10 comments · Fixed by #13228
Labels
browser Browser Extension bug

Comments

@romuald
Copy link

romuald commented Feb 7, 2025

Steps To Reproduce

Version: 2025.1.3
Brower: Google Chrome
Platform: Linux

Happens on a lot of URLs, used Microsoft as example

  1. Go to https://www.microsoft.com/fr-fr/
  2. Mouse over the "account" picto on the top right

Error is shown in console and repeats a lot

Outside of that the extension works fine

bootstrap-autofill.js:1857 Uncaught TypeError: Cannot read properties of undefined (reading 'domQueryService')
    at checkPageContainsShadowDom (bootstrap-autofill.js:1857:14)
    at bootstrap-autofill.js:334:53
    /**
     * Handles checking if the current page contains a ShadowDOM element and
     * flags that a re-collection of page details is required if it does.
     */
    checkPageContainsShadowDom() {
        this.domQueryService.checkPageContainsShadowDom();
        //   ^^^^^^^^
        if (this.domQueryService.pageContainsShadowDomElements()) {
            this.flagPageDetailsUpdateIsRequired();
        }
    }

(will try to paste the whole traceback in comment)

Expected Result

No error on the console

Actual Result

A lot of errors in the console

Screenshots or Videos

No response

Additional Context

Using Vaultwarden as a server (not sure if relevant)

Operating System

Linux

Operating System Version

Debian

Web Browser

Chrome

Browser Version

2015.1.3

Build Version

28c7e29

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@romuald romuald added browser Browser Extension bug labels Feb 7, 2025
@bitwarden-bot
Copy link

Thank you for reporting this issue! We've added this to our internal tracking system.
ID: PM-18117

@romuald
Copy link
Author

romuald commented Feb 7, 2025

Call stack from the debugger:

checkPageContainsShadowDom (bootstrap-autofill.js:1857)
(anonymous) (bootstrap-autofill.js:334)
requestIdleCallback
requestIdleCallbackPolyfill (bootstrap-autofill.js:334)
CollectAutofillContentService.processMutations (bootstrap-autofill.js:1179)
(anonymous) (bootstrap-autofill.js:633)
setTimeout
(anonymous) (bootstrap-autofill.js:630)
(anonymous) (bootstrap-autofill.js:334)
requestIdleCallback
requestIdleCallbackPolyfill (bootstrap-autofill.js:334)
CollectAutofillContentService.handleMutationObserverMutation (bootstrap-autofill.js:1167)
attributes
(anonymous) (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:3819)
_setActiveIndicatorElement (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:3818)
_slide (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:3775)
goToNextSlide (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:4337)
(anonymous) (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:12465)
setInterval
_setAutoplayInterval2 (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:12453)
_startSlideshow2 (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:12382)
_onMouseLeave2 (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:12434)
exec (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:2296)
wrapper (main-light.min.ACSHASH13abf4cf4f8384d04a599349524dbbad.js:2312)

@Neonwarden
Copy link

Hi there,

This has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

@WolfspiritM
Copy link

Same problem here. Really annoying when working on a website myself.

The reason seems to be that "this" is undefined here:

Image

requestIdleCallbackPolyfill(this.checkPageContainsShadowDom, { timeout: 500 });

should probably be

requestIdleCallbackPolyfill(this.checkPageContainsShadowDom.bind(this), { timeout: 500 });

@djsmith85 djsmith85 linked a pull request Feb 7, 2025 that will close this issue
@Nirzak
Copy link

Nirzak commented Feb 7, 2025

Yeah I am also facing the same on my chrome browser today. hopefully will be fixed.

@dalamudx
Copy link

dalamudx commented Feb 9, 2025

facing the same issue

"Show autofill suggestions on form fields dropdown" enabled.
Image

"Show autofill suggestions on form fields dropdown" disabled.
Image

@ymauray
Copy link

ymauray commented Feb 10, 2025

For the record, I have that exact same issue on Edge on Windows.

@viceartur
Copy link

I encountered the same issue on Google Chrome while developing on NextJS. The error appeared after I updated Chrome about a week ago.

@salifukayta
Copy link

I have that exact same issue on Chrome on Mac too with node 21. I didn't have the problem this morning or yesterday

@npriebe
Copy link

npriebe commented Feb 10, 2025

Have the same issue with Edge on Linux with VueJS 2.7 and NodeJS 18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Browser Extension bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants