-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Extension causing double execution of code #7796
Comments
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! |
@Greenderella any update on this? It's still happening for me and it affects my daily workflow. I've been getting around it using a Guest profile but that's really not ideal. I don't have any more information other than I can consistently reproduce it for Chrome and Brave even after restarts of my browser and my computer. I'm happy to try and schedule a time to hop on a call with a dev if that's going to help |
As of this moment, we don't have a definitive reason for why this is happening or how to fix it. That said, I dug around a bit to see why this might be occurring, and I believe I might have found a smoking gun for our team to investigate. In the meantime, if you turn off the recently introduced Passkeys feature, your described issue should no longer be present. This can be done by going to |
@cagonzalezcs That's great news! I can confirm switching off that passkeys option seems to have stopped the issue from happening. 🙏 (will update if I spot it again) That solution's actually fine for me right now since I don't even use the passkeys feature yet. But hopefully confirming that fixes it in the short term helps point to the true cause. |
Steps To Reproduce
npm install
npm run build
npm run build-docs
- optional to avoid an extra console error, issue happens regardlessnpm start
test
getting logged twice instead of just onceRun (F8)
to rerun the code playground. It seems to happen periodically sometimesExpected Result
Code in Sandcastle should only be run once as in every other code playground.
Actual Result
Something with the Bitwarden extension is causing the code in Sandcastles to execute twice instead of once. This can break many examples that expect variables or entities to only be defined once.
This seems to be slightly sporadic but I have reproduced it with a fresh chrome profile that only has the Bitwarden extension installed. It seems to only happen after the extension is logged in. Even if it locks again waiting for the master password.
Even more bizarre, I can't reproduce this on the deployed version of Sandcastle. The same example above can be found here
I suspect it may have something to do with
iframes
and how bitwarden treats them loading. In the chrome profiler it looks like thewindow.startup
is getting triggered twice only when it double runs the code so that seems to be the surface level cause but I have no idea why Bitwarden would cause that to happen.Screenshots or Videos
simplescreenrecorder-2024-02-02_16.22.30.mp4
Additional Context
No response
Operating System
Linux
Operating System Version
No response
Web Browser
Chrome, Brave
Browser Version
Chrome Version 121.0.6167.139, Brave Version 1.62.156 Chromium: 121.0.6167.139
Build Version
Extension Version 2024.1.1, Server 2024.1.2
Issue Tracking Info
The text was updated successfully, but these errors were encountered: