Description
Steps to reproduce
git clone https://salsa.debian.org/iwj/rust-vecdeque-stableix # any crate will do
cd rust-vecdeque-stableix
RUSTDOCFLAGS='--default-theme ayu' cargo doc
dir=$PWD
rm -rf d
mkdir d
cd d
HOME=$PWD firefox file://$dir/target/doc/vecdeque_stableix/index.html
Expected results
The documentation appears in the "ayu" (dark) theme.
Observed results
The documentation appears in the default (light) theme.
Notes
This works on stable. I haven't bisected it or anything.
Empirically, changing the default theme once works for any one browser profile with the default firefox settings. AIUI the setting is intended to be recorded in web local storage. However, my firefox configuration does not permit use of web storage or cookies, so it does not work. This is one of the reasons for the --default-theme
option's existence.
FTR I see this message in my JS console which seems to support this hypothesis: Request to access cookie or storage on “file:///home/rustcargo/Rustup/Game/vecdeque-stableix/target/doc/vecdeque_stableix/struct.IntoIter.html” was blocked because we are blocking all storage access requests.
Meta
rustdoc 1.55.0-nightly (2f391da2e 2021-07-14)
binary: rustdoc
commit-hash: 2f391da2e6ac73faa3570b79de239fd8c0edf1a9
commit-date: 2021-07-14
host: x86_64-unknown-linux-gnu
release: 1.55.0-nightly
LLVM version: 12.0.1