Storage event not executed in WinForms web browser control

259 views Asked by At

I have custom WinForm web browser control that works fine in most cases. The problem I'm having is connected with localstorage events.

When adding a listener to the storage event (javascript):

window.addEventListener('storage', eventHandler, false)

the eventHandler function is never called. I have tried this with more than one window (hosting the web browser control) opend, but it does not work. If I open a regular browser and my custom browser, it will only trigger the storage event in the regular web browser if I write to local storage in the custom web browser, not the other way around.

Listening to the storagecommit event works ok:

window.addEventListener('storagecommit', eventHandler, false)

but that is only triggerd in the browser that wrote to local storage.

If anyone can provide some help it would be very appreciated.

0

There are 0 answers