Skip to content

Instantly share code, notes, and snippets.

View JohnAllsopp's full-sized avatar

John Allsopp JohnAllsopp

View GitHub Profile
### Keybase proof
I hereby claim:
* I am johnallsopp on github.
* I am johnallsopp (https://keybase.io/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
JohnAllsopp / Private Browsing and localStorage
Created December 13, 2011 06:59
Private Browsing and localStorage - different browsers handle it differently
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
JohnAllsopp / HTML5 Audio formats
Created July 20, 2011 00:46
HTML5 Audio format/codec browser support
<table>
<caption>Codec support in modern browsers</caption>
<thead>
<tr>
<th>Browser</th>
<th>Ogg Vorbis</th>
<th>MP3</th>
<th>WAV</th>
<th>AAC</th>
</tr>