Skip to content

fix: resolve cookie and localStorage failures in incognito mode - #35

Open
JesseKoldewijn wants to merge 6 commits into
mainfrom
develop
Open

fix: resolve cookie and localStorage failures in incognito mode#35
JesseKoldewijn wants to merge 6 commits into
mainfrom
develop

Conversation

@JesseKoldewijn

Copy link
Copy Markdown
Owner

Should fix: #34

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

CI Summary

Coverage Reports

Type Download
Unit Tests Download
E2E Tests (development) Download

Build Artifacts

Profile Download
development Download

Note: Artifacts expire after 7 days.

## [1.5.1-canary.1](v1.5.0...v1.5.1-canary.1) (2026-03-03)

### Bug Fixes

* resolve cookie and localStorage failures in incognito mode ([bdd9cae](bdd9cae))
@agnostic-devkit-release

Copy link
Copy Markdown

🎉 This PR is included in version 1.5.1-canary.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

JesseKoldewijn and others added 4 commits August 27, 2026 16:22
- Replace bare injected localStorage scripts with try/catch wrappers
  that return structured results; add in-memory fallback (per-tab Map)
  when QuotaExceededError/SecurityError signals storage is unavailable
- Expose handleApplyLS/handleRemoveLS/handleGetLS as named exports for
  direct unit-testing without message-routing overhead
- Clean up per-tab memory in the existing tabs.onRemoved listener
- Add storage_unavailable reason code and surface it via
  logIncognitoLocalStorageError in parameterApplicator
- Warn when getTabCookieStoreId cannot locate the incognito cookie store
  instead of silently falling back to the wrong store
- Replace typeof localStorage === "undefined" guards in featureFlags.ts
  with try/catch so private-window throws are caught rather than
  propagating uncaught
- Add test/unit/entrypoints/background.test.ts proving memory fallback
  behaviour; extend featureFlags and parameterApplicator tests with
  private-window scenarios

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sonarjs/no-undefined-argument — call isStorageUnavailableError() with
no argument instead of explicitly passing undefined.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ator test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
## [1.5.1-canary.2](v1.5.1-canary.1...v1.5.1-canary.2) (2026-08-27)

### Bug Fixes

* **lint:** remove redundant undefined argument in background test ([2961817](2961817))
* properly handle private-window localStorage and cookie failures ([f360b75](f360b75))
@agnostic-devkit-release

Copy link
Copy Markdown

🎉 This PR is included in version 1.5.1-canary.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Investigate why interactions w/ cookies on incognito mode doesn't work

2 participants