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 (in promise) Error: Extension context invalidated. #12980

Open
1 task done
DePalmo opened this issue Jan 20, 2025 · 4 comments
Open
1 task done

Uncaught (in promise) Error: Extension context invalidated. #12980

DePalmo opened this issue Jan 20, 2025 · 4 comments
Labels
browser Browser Extension bug

Comments

@DePalmo
Copy link

DePalmo commented Jan 20, 2025

Steps To Reproduce

The issue happens mostly in Angular developed apps, I didn't notice it elsewhere. The Angular I'm using is at version 14.0.0 and this is becoming a problem if I leave the app running overnight. In the morning, the Console is full of these errors:

VM7717 bootstrap-autofill-overlay.js:963 Uncaught (in promise) Error: Extension context invalidated.
    at VM7717 bootstrap-aut…l-overlay.js:963:56
    at new Promise (<anonymous>)
    at AutofillOverlayContentService.<anonymous> (VM7717 bootstrap-aut…l-overlay.js:963:16)
    at Generator.next (<anonymous>)
    at VM7717 bootstrap-aut…l-overlay.js:870:71
    at new Promise (<anonymous>)
    at __awaiter (VM7717 bootstrap-aut…l-overlay.js:866:12)
    at AutofillOverlayContentService.sendExtensionMessage (VM7717 bootstrap-aut…l-overlay.js:957:12)
    at AutofillOverlayContentService.handleWindowFocusOutEvent (VM7717 bootstrap-aut…-overlay.js:4692:23)

If I disable the extension, there's no issues logged.

Expected Result

No errors or gracefully handled!

Actual Result

A Chrome's Developers Console is filled with these errors.

Screenshots or Videos

Image

Additional Context

No response

Operating System

Windows

Operating System Version

10 Pro

Web Browser

Chrome

Browser Version

132.0.6834.83 (Official Build) (64-bit)

Build Version

132.0.6834.83 (Official Build) (64-bit)

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.
@DePalmo DePalmo added browser Browser Extension bug labels Jan 20, 2025
@bitwarden-bot
Copy link

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

@daniellbw
Copy link

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

@DePalmo
Copy link
Author

DePalmo commented Jan 20, 2025

Another issue. When opening or reloading an Angular app, this one appears:

fido2-page-script.js:359 Unhandled Promise rejection: FallbackRequested ; Zone: <root> ; Task: EventTarget.addEventListener:destroy ; Value: FallbackRequestedError: FallbackRequested
    at EventTarget.onDestroyListener (fido2-page-script.js:331:50)
    at Messenger.<anonymous> (fido2-page-script.js:359:28)
    at Generator.next (<anonymous>)
    at fido2-page-script.js:237:71
 Error: FallbackRequested
    at EventTarget.onDestroyListener (chrome-extension://nngceckbapebfimnlniiiahkandclblb/content/fido2-page-script.js:331:50)
    at ZoneDelegate.invokeTask (https://localhost:4200/polyfills.js:8117:171)
    at Zone.runTask (https://localhost:4200/polyfills.js:7878:37)
    at ZoneTask.invokeTask [as invoke] (https://localhost:4200/polyfills.js:8209:26)
    at invokeTask (https://localhost:4200/polyfills.js:9566:10)
    at EventTarget.globalZoneAwareCallback (https://localhost:4200/polyfills.js:9597:9)
    at Messenger.<anonymous> (chrome-extension://nngceckbapebfimnlniiiahkandclblb/content/fido2-page-script.js:359:28)
    at Generator.next (<anonymous>)
    at chrome-extension://nngceckbapebfimnlniiiahkandclblb/content/fido2-page-script.js:237:71
    at new ZoneAwarePromise (https://localhost:4200/polyfills.js:9308:21)

@DePalmo
Copy link
Author

DePalmo commented Jan 20, 2025

Another one:

Uncaught (in promise) TypeError: Cannot set properties of null (setting 'username')
    at AutofillOverlayContentService.storeQualifiedUserFilledField (VM26828 bootstrap-autofill-overlay.js:5209:65)
    at AutofillOverlayContentService.storeModifiedFormElement (VM26828 bootstrap-autofill-overlay.js:5189:14)
    at AutofillOverlayContentService.<anonymous> (VM26828 bootstrap-autofill-overlay.js:5142:18)
    at Generator.next (<anonymous>)
    at VM26828 bootstrap-autofill-overlay.js:4368:71
    at new Promise (<anonymous>)
    at autofill_overlay_content_service_awaiter (VM26828 bootstrap-autofill-overlay.js:4364:12)
    at AutofillOverlayContentService.triggerFormFieldInput (VM26828 bootstrap-autofill-overlay.js:5138:16)
    at HTMLInputElement.<anonymous> (VM26828 bootstrap-autofill-overlay.js:4556:66)
    at HTMLInputElement.<anonymous> (VM26828 bootstrap-autofill-overlay.js:1202:22)

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

No branches or pull requests

3 participants