about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorRoy Wellington Ⅳ <cactus_hugged@yahoo.com>2018-10-14 17:23:47 -0700
committerRoy Wellington Ⅳ <cactus_hugged@yahoo.com>2018-10-14 23:47:38 -0700
commitd4e2dcaff1bb957f41384e9e6a0dbb830dffe09c (patch)
tree621e388457d84f391ab1044c5699570a434d09a0 /src/test
parent14f42a732ff9562fb5f07eca5a7f92224dbe8881 (diff)
downloadrust-d4e2dcaff1bb957f41384e9e6a0dbb830dffe09c.tar.gz
rust-d4e2dcaff1bb957f41384e9e6a0dbb830dffe09c.zip
Detect if access to localStorage is forbidden by the user's browser
If the user's cookie/persistent storage setting forbid access to localStorage,
catch the exception and abort the access.

Currently, attempting to use the expand/contract links at the top of the page
for structs/consts/etc. fails due to an unhandled error while accessing
localStorage, if such access is forbidden, as the exception from the failed
access propagates all the way out, interrupting the expand/contract. Instead, I
would like to degrade gracefully; the access won't happen (the collapse/expand
state won't get persisted) but the actual expanding/contracting of the item
will go on to succeed.

Fixes #55079
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions