Skip to content

Don't throw an exception when accessing local,sessionStorage in 3p frame #9758

Closed
brave/brave-core
#5533

Description

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 correctly

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

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions