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

fix: third-party cookies error #85

Merged
merged 1 commit into from
Jun 6, 2023
Merged

fix: third-party cookies error #85

merged 1 commit into from
Jun 6, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Jun 5, 2023

Description

Agoric/dapp-psm#69 seems to be due to the Bridge connection logic.

Test Plan

  1. open https://fix-cookies-error.wallet-app.pages.dev/wallet/ in one tab
  2. open https://main.dapp-psm.pages.dev/?wallet=fix-cookies-error
  3. disable Shields or Tracking Protection for PSM site
  4. click to Connect Keplr
  5. in wallet click to Approve Dapp
  6. in PSM verify "Successfully connected"
  • Firefox without TP
  • Brave without Shields
  • Firefox without TP fails silently
  • Brave without Shields fails silently
  • Chrome with Third-Party cookies allowed and First-Party Sets disabled
  • Chrome with Third-Party cookies allowed and First-Party Sets enabled (chrome://flags/#enable-first-party-sets)
  • Chrome with Third-Party cookies blocked fails loudly with error in console "failed to read localStorage property from window)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 5, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 20de183
Status: ✅  Deploy successful!
Preview URL: https://92a6857d.wallet-app.pages.dev
Branch Preview URL: https://fix-cookies-error.wallet-app.pages.dev

View logs

@samsiegart
Copy link
Contributor

Cloudflare deployment isn't working for some reason 🤕

The bridge doesn't actually rely on cookies.
@turadg turadg merged commit 3aedaf7 into main Jun 6, 2023
@turadg turadg deleted the fix-cookies-error branch June 6, 2023 00:32
@dckc
Copy link
Member

dckc commented Sep 16, 2023

Does this fix Agoric/dapp-inter#199 as well?

@turadg
Copy link
Member Author

turadg commented Sep 16, 2023

Does this fix Agoric/dapp-inter#199 as well?

No, this has been in production since https:/Agoric/wallet-app/runs/14025919120

You can see the new error message "No access to localStorage" in https://wallet.agoric.app/wallet/static/js/bridge-dapp.5403a070.10d8eac7.js served at https://wallet.agoric.app/wallet/bridge

I suppose something changed in their partitioning design since then.

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

Successfully merging this pull request may close these issues.

3 participants