Re:Apple introduces macOS Mojave
by madeofpalk on Monday June 04, 2018 @04:52PM
(#17232326)
But localStorage.setItem() throwing an error definitely is in the spec, so if someone isn't handling Safari's localStorage behaviour in Private Browsing Mode (that is, throwing exceptions) then they aren't handling the parts of the spec.
[ Parent
| on HN ]
Re:Apple introduces macOS Mojave
by strictnein on Monday June 04, 2018 @07:56PM
(#17233771)
The web isn't built on specs, it's built on conventions. Safari breaks the convention.
Re:Apple introduces macOS Mojave
by madeofpalk on Monday June 04, 2018 @08:31PM
(#17233972)
the convention is that localStorage throws exceptions. it does in every browser. if a site breaks because it doesn't do error handling, then that's the site's problem.