-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix: use single PersistenceManager to avoid undesired cascade mechanisms #40499
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
Merged
gauthierpetetin
merged 40 commits into
main
from
fix/single-persistence-manager-instance
Mar 17, 2026
+341
−27
Merged
Changes from 38 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
e35c6ae
fix: use single PersistenceManager for hooks once background is ready
gauthierpetetin 38e8ec1
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin fe5f3c4
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin d25c3aa
refactor: single PersistenceManager per context
gauthierpetetin 2578d11
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 0313461
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin e044f2d
Revert unrelated navigator change in getSentryState
gauthierpetetin ef1544a
Use export instead of global for persistenceManager
gauthierpetetin f0c07da
Simplify isBackgroundContext for MV2 and MV3
gauthierpetetin c8673b5
Fix E2E: load setup-initial-state-hooks first so fixture starts early
gauthierpetetin 33191ac
fix: simplify isBackgroundContext for E2E Chrome MV3 and Firefox MV2
gauthierpetetin 378ffe3
refactor: use only globalThis.self for href in isBackgroundContext
gauthierpetetin 2aa42bb
refactor: drop forced first import of setup-initial-state-hooks in ba…
gauthierpetetin bc79461
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 0485959
fix: restore setup-initial-state-hooks as first import for Sentry
gauthierpetetin ea26cfb
fix: detect webpack MV3 service worker in isBackgroundContext
gauthierpetetin f389610
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 8f6e95d
test: add unit tests for setup-initial-state-hooks
gauthierpetetin 099bdbb
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin e4c69ad
fix: lint errors in setup-initial-state-hooks tests
gauthierpetetin 8a07355
test: add getSentryState branch coverage for setup-initial-state-hooks
gauthierpetetin 08c1d57
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 085ee4b
fix: lint errors in setup-initial-state-hooks tests
gauthierpetetin c56cd35
refactor: extract getEnvironmentType to dedicated module
gauthierpetetin 4b5295e
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 08a9a7b
fix: return EnvironmentType instead of string from getEnvironmentType
gauthierpetetin 76c3be4
Duplicate getEnvironmentType in setup-initial-state-hooks to avoid La…
gauthierpetetin 1c750a4
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 313ab84
Revert util.ts to match main (eliminate diff)
gauthierpetetin ab98739
Align util.ts with origin/main (remove BN/hexToBn/BnMultiplyByFraction)
gauthierpetetin aa80a0d
Fix Webpack UI treating empty href as background (E2E Sentry test)
gauthierpetetin ad592e3
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin e9b620e
refactor: move getEnvironmentTypeForHooks into setup-initial-state-hooks
gauthierpetetin 656a270
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin bed1714
DEBUG COMMIT TO BE REVERTED BEFORE PR GETS MERGED
gauthierpetetin a073850
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin 6e12cb5
Revert "DEBUG COMMIT TO BE REVERTED BEFORE PR GETS MERGED"
gauthierpetetin 81d4159
refactor(setup-initial-state-hooks): guard location check to fixture …
gauthierpetetin 4468792
refactor: introduce createLocalStore() for local store creation
gauthierpetetin 1ec00b8
Merge branch 'main' into fix/single-persistence-manager-instance
gauthierpetetin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.