Commit 1a25ed26 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Store moniker in HTMLInnerWindow.

parent 570ffbb4
......@@ -264,6 +264,8 @@ static void release_inner_window(HTMLInnerWindow *This)
IHTMLScreen_Release(This->screen);
if(This->history)
IOmHistory_Release(This->history);
if(This->mon)
IMoniker_Release(This->mon);
heap_free(This);
}
......@@ -2609,7 +2611,7 @@ static void *alloc_window(size_t size)
return window;
}
static HRESULT create_inner_window(HTMLOuterWindow *outer_window, HTMLInnerWindow **ret)
static HRESULT create_inner_window(HTMLOuterWindow *outer_window, IMoniker *mon, HTMLInnerWindow **ret)
{
HTMLInnerWindow *window;
......@@ -2628,6 +2630,11 @@ static HRESULT create_inner_window(HTMLOuterWindow *outer_window, HTMLInnerWindo
window->task_magic = get_task_target_magic();
window->current_script_guid = CLSID_JScript;
if(mon) {
IMoniker_AddRef(mon);
window->mon = mon;
}
*ret = window;
return S_OK;
}
......@@ -2701,7 +2708,7 @@ HRESULT create_pending_window(HTMLOuterWindow *outer_window, nsChannelBSC *chann
HTMLInnerWindow *pending_window;
HRESULT hres;
hres = create_inner_window(outer_window, &pending_window);
hres = create_inner_window(outer_window, outer_window->mon /* FIXME */, &pending_window);
if(FAILED(hres))
return hres;
......
......@@ -400,6 +400,7 @@ struct HTMLInnerWindow {
LONG task_magic;
IMoniker *mon;
nsChannelBSC *bscallback;
struct list bindings;
};
......
......@@ -1784,6 +1784,11 @@ void abort_window_bindings(HTMLInnerWindow *window)
IBindStatusCallback_Release(&window->bscallback->bsc.IBindStatusCallback_iface);
window->bscallback = NULL;
}
if(window->mon) {
IMoniker_Release(window->mon);
window->mon = NULL;
}
}
HRESULT channelbsc_load_stream(HTMLInnerWindow *pending_window, IStream *stream)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment