return E_FAIL;
}
- return set_event_handler(&window->inner_window->doc->body_event_target, NULL, window->inner_window->doc, eid, var);
+ return set_event_handler(&window->inner_window->doc->body_event_target, window->inner_window->doc, eid, var);
}
static inline HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
if(outer_window && outer_window->doc_obj && outer_window == outer_window->doc_obj->basedoc.window)
window->doc->basedoc.cp_container.forward_container = NULL;
- if(window->doc)
+ if(window->doc) {
detach_events(window->doc);
+ while(!list_empty(&window->doc->plugin_hosts))
+ detach_plugin_host(LIST_ENTRY(list_head(&window->doc->plugin_hosts), PluginHost, entry));
+ }
+
abort_window_bindings(window);
remove_target_tasks(window->task_magic);
release_script_hosts(window);
return E_FAIL;
}
- return attach_event(&window->doc->body_event_target, NULL, &window->doc->basedoc, event, pDisp, pfResult);
+ return attach_event(&window->doc->body_event_target, &window->doc->basedoc, event, pDisp, pfResult);
}
static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, IDispatch *pDisp)
headers = V_BSTR(headers_var);
}
- hres = super_navigate(window, uri, BINDING_NAVIGATED, headers, post_data, post_data_size);
+ hres = super_navigate(window, uri, BINDING_NAVIGATED|BINDING_NOFRAG, headers, post_data, post_data_size);
IUri_Release(uri);
if(post_data)
SafeArrayUnaccessData(V_ARRAY(post_data_var));