-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Don't throw an exception when accessing local,sessionStorage in 3p frame #9758
Comments
This is related to #8514 |
Should be resolved in brave/brave-core#5533 |
Hi @LaurenWags , i just added tests for this at https://dev-pages.brave.software/storage/exceptions.html. I think the text there explains the cases, but as long as the "received" column matches the "expected" column when shields are up, then it should be golden |
Thanks @pes10k! Verified passed with
Verification passed on
Verification passed on
|
Verification passed on Samsung Tab A with Android 10 running 1.12.111 x64 build
Verification passed on OnePlus 6T with Android 10 running 1.12.111 x64 build
|
Currently, Chromium throws an exception when JS just touches
window.{local,session}Storage
, which prevents sites from doing typical feature detection style checks. We should just act as if these values aren't present (e.g.window.localStorage === undefined|null
) so that defensive / well programmed sites still work correctlyThe text was updated successfully, but these errors were encountered: