X
Tryk her for at gå til webstedets mobilversion.

Supportforum

How can I clear DOM Storage when Firefox closes?

Skrevet

DOM Storage is becoming used more often for tracking purposes, so I would like it to be cleared when Firefox closes. This link says it can only be cleared under certain conditions: http://developer.mozilla.org/en/docs/DOM:Storage#Storage_location_and_clearing_the_data

The "Clear history when Firefox closes" Settings in Options -> Privacy does not have a checkbox for DOM Storage.

Setting dom.storage.enabled in about:config to "false" affects all sites. Some sites I've visited *require* DOM Storage to be enabled for those sites to function.

Does enabling one of the checkboxes in "Clear history when Firefox closes" clear DOM Storage already? Can DOM Storage be allowed only for specific sites like regular cookies can? Is there any built-in (non-addon) way to clear or control DOM Storage automatically?

DOM Storage is becoming used more often for tracking purposes, so I would like it to be cleared when Firefox closes. This link says it can only be cleared under certain conditions: http://developer.mozilla.org/en/docs/DOM:Storage#Storage_location_and_clearing_the_data The "Clear history when Firefox closes" Settings in Options -> Privacy does not have a checkbox for DOM Storage. Setting dom.storage.enabled in about:config to "false" affects all sites. Some sites I've visited *require* DOM Storage to be enabled for those sites to function. Does enabling one of the checkboxes in "Clear history when Firefox closes" clear DOM Storage already? Can DOM Storage be allowed only for specific sites like regular cookies can? Is there any built-in (non-addon) way to clear or control DOM Storage automatically?

Yderligere systemdetaljer

Installerede plugins

  • Shockwave Flash 11.7 r700
  • Next Generation Java Plug-in 10.25.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • VLC media player Web Plugin 2.0.6
  • Google Update

Program

  • User Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

Yderligere information

Luk
kobe 441 løsninger 5048 svar
Install a addon such as Cookie Controller. * https://addons.mozilla.org/en-US/firefox/addon/cookie-controller/?src=search
finitarry 251 løsninger 3421 svar

Why enable that at all? This page states where the data is stored: https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data.

"DOM storage: DOM Storage is designed to provide a larger, more secure, and easier-to-use alternative to storing information in cookies. Information is stored in the webappsstore.sqlite file for websites and in the chromeappsstore.sqlite for about:* pages. "

To disable DOM storage, go to about:config and change this setting: dom.storage.enabled

Why enable that at all? This page states where the data is stored: https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data. "DOM storage: DOM Storage is designed to provide a larger, more secure, and easier-to-use alternative to storing information in cookies. Information is stored in the webappsstore.sqlite file for websites and in the chromeappsstore.sqlite for about:* pages. " To disable DOM storage, go to about:config and change this setting: dom.storage.enabled

Spørgsmålsstiller

Please fully read the question: "non-addon".

Please fully read the question: "non-addon".

Spørgsmålsstiller

"Why enable that at all?" It is enabled by default when Firefox is installed. The question asks how to clear it automatically or control individual sites' access to it.

As the question states, setting dom.storage.enabled to false (disabling it) interferes with some sites that require it.

"Why enable that at all?" It is enabled by default when Firefox is installed. The question asks how to clear it automatically or control individual sites' access to it. As the question states, setting dom.storage.enabled to false (disabling it) interferes with some sites that require it.

Ændret af Vxc0jgymrpXsxeqtnwAg-Z2mN8gH-R den

cor-el
  • Top 10 Contributor
  • Moderator
17538 løsninger 158577 svar

Nyttigt svar

Note that chromeappsstore.sqlite has been replaced with IndexedDB.
DOM Storage uses the same permissions as cookies, so if you allow cookies then DOM storage is included and vise verse if you block cookies then you block DOM storage as well.
You only can't clear DOM storage easily AFAIK.


  • Bug 527667 - DOM Storage (localStorage, sessionStorage) data is not cleared when "Clear Recent History" is used with Time range not "Everything"

Please DO NOT comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

Note that chromeappsstore.sqlite has been replaced with IndexedDB.<br /> DOM Storage uses the same permissions as cookies, so if you allow cookies then DOM storage is included and vise verse if you block cookies then you block DOM storage as well. <br /> You only can't clear DOM storage easily AFAIK. ----- *Bug 527667 - DOM Storage (localStorage, sessionStorage) data is not cleared when "Clear Recent History" is used with Time range not "Everything" <i>Please DO NOT comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html</i>
finitarry 251 løsninger 3421 svar

What kind of sites demand the use of DOM storage? I have not encountered any.

What kind of sites demand the use of DOM storage? I have not encountered any.

Spørgsmålsstiller

@finitarry

Sites that store larger cookies or wish for more persistence require DOM storage. Example: Khan Academy.

@finitarry Sites that store larger cookies or wish for more persistence require DOM storage. Example: [https://sites.google.com/a/khanacademy.org/forge/for-developers/how-to-enable-dom-storage Khan Academy].
TNAR 0 løsninger 1 svar

I have also been encountering this issue. At first I thought it was a JavaScript error, but have discovered (mostly through this thread) that DOM storage is the culprit. Many education sites (colleges, etc) seem to rely on it.

Has there been any advance in determining a method to clear or selectively enable/disable this feature?

I have also been encountering this issue. At first I thought it was a JavaScript error, but have discovered (mostly through this thread) that DOM storage is the culprit. Many education sites (colleges, etc) seem to rely on it. Has there been any advance in determining a method to clear or selectively enable/disable this feature?
cor-el
  • Top 10 Contributor
  • Moderator
17538 løsninger 158577 svar

Google stores a cookie in DOM storage if you click the close button on the promo to install Google Chrome. YouTube store the volume setting in DOM storage.

You can type or paste localStorage in the command line of the Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K) and press the Enter key.
If you click [object Storage] to open the object viewer then you can see stored data.

Google stores a cookie in DOM storage if you click the close button on the promo to install Google Chrome. YouTube store the volume setting in DOM storage. You can type or paste localStorage in the command line of the Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K) and press the Enter key.<br /> If you click [object Storage] to open the object viewer then you can see stored data.