Skip to content

Instantly share code, notes, and snippets.


John Allsopp JohnAllsopp

View GitHub Profile
View gist:985100467ee33d03de14
### Keybase proof
I hereby claim:
* I am johnallsopp on github.
* I am johnallsopp ( on keybase.
* I have a public key whose fingerprint is C4AE 2668 4667 479D 53BF B716 D7CA 0EBE 3D21 7588
To claim this, I am signing this object:
JohnAllsopp / Private Browsing and localStorage
Created Dec 13, 2011
Private Browsing and localStorage - different browsers handle it differently
View Private Browsing and localStorage
What happens to localStorage when different browsers are in private browsing mode?
Safari returns null for any item set using localStorage.setItem either before or during the private browsing session. In essence, neither sessionStorage or localStorage are available in private brosing mode
Chrome and Opera return items set previous to private ("incognito") browsing, but once private browsing commences, treats localStorage like sessionStorage (only items set on the localStorage by that session will be returned) but like localStorage for other private windows and tabs
Firefox, like Chrome will not retrieve items set on locaStorage prior to a private session starting, but in private browsing treats localStorage like sessionStoroage for non private windows and tabs, but like localStorage for other private windows and tabs
JohnAllsopp / HTML5 Audio formats
Created Jul 20, 2011
HTML5 Audio format/codec browser support
View HTML5 Audio formats
<caption>Codec support in modern browsers</caption>
<th>Ogg Vorbis</th>