搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

sessionStorage is not maintained when changing directories on a local file system

  • 無回覆
  • 0 有這個問題
  • 10 次檢視
more options

I work as a technical writer for a software company where we package and ship HTML help files along with our software.

Our help needs to be responsive when it's installed and opened in a local file system, and we've been unable to get sessionStorage (or localStorage) to pass variables to another page unless they're in the same Windows directory.

This makes the browser's storage unreliable, as the variables we need are different depending on what directory you're in.

I understand that to protect against attack pages traversing, say, your Downloads folder, there are various restrictions on file:// access. But is this meant to affect DOM storage as well?

I work as a technical writer for a software company where we package and ship HTML help files along with our software. Our help needs to be responsive when it's installed and opened in a local file system, and we've been unable to get sessionStorage (or localStorage) to pass variables to another page unless they're in the same Windows directory. This makes the browser's storage unreliable, as the variables we need are different depending on what directory you're in. I understand that to protect against attack pages traversing, say, your Downloads folder, there are various restrictions on file:// access. But is this meant to affect DOM storage as well?

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題