Jacek Caban (@jacek) commented about dlls/mshtml/htmlstorage.c:
DOMEvent *event; HRESULT hres;
- hres = create_storage_event(window->doc, ctx->key, ctx->old_value, ctx->new_value, commit, &event);
- hres = create_storage_event(window->doc, ctx->key, ctx->old_value, ctx->new_value, ctx->url, commit, &event);
Could you just retrieve it from window here instead of extending ctx?