Simulate programmatically storage event
<p>If I set <code>localStorage</code> item then <code>StorageEvent</code> is firing for all same-domain windows except current.</p>

<p>If I raise <code>StorageEvent</code> programmatically then <code>StorageEvent</code> is firing only for target window.<br>
Code example:</p>

<pre><code>var evt = document.createEvent('StorageEvent');
evt.initStorageEvent('storage',false,false,'key','oldValue','newValue',
                  'http://example.com',window.localStorage);
window.dispatchEvent(evt);
</code></pre>

<p>Can I modify the code example to simulate behaviour from <code>window.setItem</code></p>