This is the main frame of a 2-frame document. Each frame is in the same security origin and therefore shares the same localStorage object. As a result, each frame should receive a StorageEvent when either frame changes the localStorage object.

Main frame about to change localStorage...
Main Frame received StorageEvent:
Key - Main Frame
New Value - SET
Old Value - null

Subframe received storage event:
Key - Main Frame
New Value - SET
Old Value - null

Subframe about to change localStorage...
Main Frame received StorageEvent:
Key - Subframe
New Value - SET
Old Value - null

Subframe received storage event:
Key - Subframe
New Value - SET
Old Value - null


