2.1.3 [WEBSTG] Section 4.3, The localStorage attribute

V0004:

The specification states:

 User agents must have a set of local storage areas, one for each origin.

IE8 Mode (All Versions)

http and https are treated as the same scheme for origin checks. Port is not considered.

V0005:

The specification states:

 If the Document's origin is not a scheme/host/port tuple, then throw a SecurityError exception and abort these steps.

IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

If the origin is not supported, then localStorage and sessionStorage objects do not appear in the DOM. Origins without a host are not supported; for example, file://.

V0006:

The specification states:

 Whenever the properties of a localStorage attribute's Storage object are to be examined, returned, set, or deleted, whether as part of a direct property access, when checking for the presence of a property, during property enumeration, when determining the number of properties present, or as part of the execution of any of the methods or attributes defined on the Storage interface, the user agent must first obtain the storage mutex.

 IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

The storage mutex is not supported. This means access to localStorage is not synchronized.