Commit 3a16c8bb authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Wine Gecko 2.47 release.

parent 7fbf0dee
......@@ -51,14 +51,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl);
#define GECKO_VERSION "2.44"
#define GECKO_VERSION "2.47"
#ifdef __i386__
#define ARCH_STRING "x86"
#define GECKO_SHA "7930300c531d975ad63ee20d5e9b3974e339e43e"
#define GECKO_SHA "f9a937e9a46d47fda701d257e60601f22e7a4510"
#elif defined(__x86_64__)
#define ARCH_STRING "x86_64"
#define GECKO_SHA "ed473f584938ebe8da1f6e660610e616104567b3"
#define GECKO_SHA "8efa810b1ac83d59e0171d4347d21730560926da"
#else
#define ARCH_STRING ""
#define GECKO_SHA "???"
......
......@@ -136,7 +136,7 @@ static nsresult get_ns_command_state(NSContainer *This, const char *cmd, nsIComm
return nsres;
}
nsres = nsICommandManager_GetCommandState(cmdmgr, cmd, This->doc->basedoc.window->nswindow, nsparam);
nsres = nsICommandManager_GetCommandState(cmdmgr, cmd, This->doc->basedoc.window->window_proxy, nsparam);
if(NS_FAILED(nsres))
ERR("GetCommandState(%s) failed: %08x\n", debugstr_a(cmd), nsres);
......@@ -379,23 +379,23 @@ static void set_font_size(HTMLDocument *This, LPCWSTR size)
set_dirty(This, VARIANT_TRUE);
}
static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char * const cmds[4])
static void handle_arrow_key(HTMLDocument *This, nsIDOMEvent *event, nsIDOMKeyEvent *key_event, const char * const cmds[4])
{
int i=0;
cpp_bool b;
nsIDOMKeyEvent_GetCtrlKey(event, &b);
nsIDOMKeyEvent_GetCtrlKey(key_event, &b);
if(b)
i |= 1;
nsIDOMKeyEvent_GetShiftKey(event, &b);
nsIDOMKeyEvent_GetShiftKey(key_event, &b);
if(b)
i |= 2;
if(cmds[i])
do_ns_editor_command(This->doc_obj->nscontainer, cmds[i]);
nsIDOMKeyEvent_PreventDefault(event);
nsIDOMEvent_PreventDefault(event);
}
void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
......@@ -417,7 +417,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("left\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
case DOM_VK_RIGHT: {
......@@ -429,7 +429,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("right\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
case DOM_VK_UP: {
......@@ -441,7 +441,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("up\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
case DOM_VK_DOWN: {
......@@ -453,7 +453,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("down\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
case DOM_VK_DELETE: {
......@@ -464,7 +464,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("delete\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
case DOM_VK_HOME: {
......@@ -476,7 +476,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("home\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
case DOM_VK_END: {
......@@ -488,7 +488,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
};
TRACE("end\n");
handle_arrow_key(This, key_event, cmds);
handle_arrow_key(This, event, key_event, cmds);
break;
}
}
......
......@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
......@@ -1323,7 +1324,8 @@ static dispex_static_data_t HTMLCurrentStyle_dispex = {
HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
{
nsIDOMCSSStyleDeclaration *nsstyle;
nsIDOMWindow *nsview;
mozIDOMWindowProxy *nsview;
nsIDOMWindow *nswindow;
nsAString nsempty_str;
HTMLCurrentStyle *ret;
nsresult nsres;
......@@ -1339,10 +1341,14 @@ HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
return E_FAIL;
}
nsres = mozIDOMWindowProxy_QueryInterface(nsview, &IID_nsIDOMWindow, (void**)&nswindow);
mozIDOMWindowProxy_Release(nsview);
assert(nsres == NS_OK);
nsAString_Init(&nsempty_str, NULL);
nsres = nsIDOMWindow_GetComputedStyle(nsview, (nsIDOMElement*)elem->nselem, &nsempty_str, &nsstyle);
nsres = nsIDOMWindow_GetComputedStyle(nswindow, (nsIDOMElement*)elem->nselem, &nsempty_str, &nsstyle);
nsAString_Finish(&nsempty_str);
nsIDOMWindow_Release(nsview);
nsIDOMWindow_Release(nswindow);
if(NS_FAILED(nsres)) {
ERR("GetComputedStyle failed: %08x\n", nsres);
return E_FAIL;
......
......@@ -4884,6 +4884,7 @@ static dispex_static_data_t HTMLDocumentObj_dispex = {
HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
{
mozIDOMWindowProxy *mozwindow;
HTMLDocumentObj *doc;
nsIDOMWindow *nswindow = NULL;
nsresult nsres;
......@@ -4919,10 +4920,14 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
if(FAILED(hres))
return hres;
nsres = nsIWebBrowser_GetContentDOMWindow(doc->nscontainer->webbrowser, &nswindow);
nsres = nsIWebBrowser_GetContentDOMWindow(doc->nscontainer->webbrowser, &mozwindow);
if(NS_FAILED(nsres))
ERR("GetContentDOMWindow failed: %08x\n", nsres);
nsres = mozIDOMWindowProxy_QueryInterface(mozwindow, &IID_nsIDOMWindow, (void**)&nswindow);
mozIDOMWindowProxy_Release(mozwindow);
assert(nsres == NS_OK);
hres = HTMLOuterWindow_Create(doc, nswindow, NULL /* FIXME */, &doc->basedoc.window);
if(nswindow)
nsIDOMWindow_Release(nswindow);
......
......@@ -41,7 +41,7 @@ static const WCHAR pxW[] = {'p','x',0};
HRESULT set_frame_doc(HTMLFrameBase *frame, nsIDOMDocument *nsdoc)
{
nsIDOMWindow *nswindow;
mozIDOMWindowProxy *mozwindow;
HTMLOuterWindow *window;
nsresult nsres;
HRESULT hres = S_OK;
......@@ -49,15 +49,21 @@ HRESULT set_frame_doc(HTMLFrameBase *frame, nsIDOMDocument *nsdoc)
if(frame->content_window)
return S_OK;
nsres = nsIDOMDocument_GetDefaultView(nsdoc, &nswindow);
if(NS_FAILED(nsres) || !nswindow)
nsres = nsIDOMDocument_GetDefaultView(nsdoc, &mozwindow);
if(NS_FAILED(nsres) || !mozwindow)
return E_FAIL;
window = nswindow_to_window(nswindow);
if(!window)
window = mozwindow_to_window(mozwindow);
if(!window) {
nsIDOMWindow *nswindow;
nsres = mozIDOMWindowProxy_QueryInterface(mozwindow, &IID_nsIDOMWindow, (void**)&nswindow);
assert(nsres == NS_OK);
hres = HTMLOuterWindow_Create(frame->element.node.doc->basedoc.doc_obj, nswindow,
frame->element.node.doc->basedoc.window, &window);
nsIDOMWindow_Release(nswindow);
nsIDOMWindow_Release(nswindow);
}
mozIDOMWindowProxy_Release(mozwindow);
if(FAILED(hres))
return hres;
......
......@@ -217,6 +217,8 @@ static void release_outer_window(HTMLOuterWindow *This)
if(This->nswindow)
nsIDOMWindow_Release(This->nswindow);
if(This->window_proxy)
mozIDOMWindowProxy_Release(This->window_proxy);
list_remove(&This->entry);
heap_free(This);
......@@ -333,7 +335,7 @@ static HRESULT WINAPI HTMLWindow2_Invoke(IHTMLWindow2 *iface, DISPID dispIdMembe
static HRESULT get_frame_by_index(HTMLOuterWindow *This, UINT32 index, HTMLOuterWindow **ret)
{
nsIDOMWindowCollection *nsframes;
nsIDOMWindow *nswindow;
mozIDOMWindowProxy *mozwindow;
UINT32 length;
nsresult nsres;
......@@ -351,16 +353,16 @@ static HRESULT get_frame_by_index(HTMLOuterWindow *This, UINT32 index, HTMLOuter
return DISP_E_MEMBERNOTFOUND;
}
nsres = nsIDOMWindowCollection_Item(nsframes, index, &nswindow);
nsres = nsIDOMWindowCollection_Item(nsframes, index, &mozwindow);
nsIDOMWindowCollection_Release(nsframes);
if(NS_FAILED(nsres)) {
FIXME("nsIDOMWindowCollection_Item failed: 0x%08x\n", nsres);
return E_FAIL;
}
*ret = nswindow_to_window(nswindow);
*ret = mozwindow_to_window(mozwindow);
nsIDOMWindow_Release(nswindow);
mozIDOMWindowProxy_Release(mozwindow);
return S_OK;
}
......@@ -368,7 +370,7 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
{
nsIDOMWindowCollection *nsframes;
HTMLOuterWindow *window = NULL;
nsIDOMWindow *nswindow;
mozIDOMWindowProxy *mozwindow;
nsAString name_str;
UINT32 length, i;
nsresult nsres;
......@@ -386,15 +388,15 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
}
nsAString_InitDepend(&name_str, name);
nsres = nsIDOMWindowCollection_NamedItem(nsframes, &name_str, &nswindow);
nsres = nsIDOMWindowCollection_NamedItem(nsframes, &name_str, &mozwindow);
nsAString_Finish(&name_str);
if(NS_FAILED(nsres)) {
nsIDOMWindowCollection_Release(nsframes);
return E_FAIL;
}
if(nswindow) {
*ret = nswindow_to_window(nswindow);
if(mozwindow) {
*ret = mozwindow_to_window(mozwindow);
return S_OK;
}
......@@ -405,19 +407,19 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
HTMLOuterWindow *window_iter;
BSTR id;
nsres = nsIDOMWindowCollection_Item(nsframes, i, &nswindow);
nsres = nsIDOMWindowCollection_Item(nsframes, i, &mozwindow);
if(NS_FAILED(nsres)) {
FIXME("nsIDOMWindowCollection_Item failed: 0x%08x\n", nsres);
hres = E_FAIL;
break;
}
window_iter = nswindow_to_window(nswindow);
window_iter = mozwindow_to_window(mozwindow);
nsIDOMWindow_Release(nswindow);
mozIDOMWindowProxy_Release(mozwindow);
if(!window_iter) {
WARN("nsIDOMWindow without HTMLOuterWindow: %p\n", nswindow);
WARN("nsIDOMWindow without HTMLOuterWindow: %p\n", mozwindow);
continue;
}
......@@ -3035,8 +3037,13 @@ HRESULT HTMLOuterWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow,
window->window_ref->ref = 1;
if(nswindow) {
nsresult nsres;
nsIDOMWindow_AddRef(nswindow);
window->nswindow = nswindow;
nsres = nsIDOMWindow_QueryInterface(nswindow, &IID_mozIDOMWindowProxy, (void**)&window->window_proxy);
assert(nsres == NS_OK);
}
window->scriptmode = parent ? parent->scriptmode : SCRIPTMODE_GECKO;
......@@ -3175,3 +3182,15 @@ HTMLOuterWindow *nswindow_to_window(const nsIDOMWindow *nswindow)
return NULL;
}
HTMLOuterWindow *mozwindow_to_window(const mozIDOMWindowProxy *mozwindow)
{
HTMLOuterWindow *iter;
LIST_FOR_EACH_ENTRY(iter, &window_list, HTMLOuterWindow, entry) {
if(iter->window_proxy == mozwindow)
return iter;
}
return NULL;
}
......@@ -422,6 +422,7 @@ struct HTMLOuterWindow {
HTMLDocumentObj *doc_obj;
nsIDOMWindow *nswindow;
mozIDOMWindowProxy *window_proxy;
HTMLOuterWindow *parent;
HTMLFrameBase *frame_element;
......@@ -800,6 +801,7 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument*,HTMLDocumentObj*,HTMLInnerWind
HRESULT HTMLOuterWindow_Create(HTMLDocumentObj*,nsIDOMWindow*,HTMLOuterWindow*,HTMLOuterWindow**) DECLSPEC_HIDDEN;
HRESULT update_window_doc(HTMLInnerWindow*) DECLSPEC_HIDDEN;
HTMLOuterWindow *nswindow_to_window(const nsIDOMWindow*) DECLSPEC_HIDDEN;
HTMLOuterWindow *mozwindow_to_window(const mozIDOMWindowProxy*) DECLSPEC_HIDDEN;
void get_top_window(HTMLOuterWindow*,HTMLOuterWindow**) DECLSPEC_HIDDEN;
HRESULT HTMLOptionElementFactory_Create(HTMLInnerWindow*,HTMLOptionElementFactory**) DECLSPEC_HIDDEN;
HRESULT HTMLImageElementFactory_Create(HTMLInnerWindow*,HTMLImageElementFactory**) DECLSPEC_HIDDEN;
......
......@@ -606,33 +606,30 @@ static void NSAPI nsDocumentObserver_DocumentStatesChanged(nsIDocumentObserver *
{
}
static void NSAPI nsDocumentObserver_StyleSheetAdded(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIStyleSheet *aStyleSheet, cpp_bool aDocumentSheet)
static void NSAPI nsDocumentObserver_StyleSheetAdded(nsIDocumentObserver *iface, mozilla_StyleSheetHandle aStyleSheet,
cpp_bool aDocumentSheet)
{
}
static void NSAPI nsDocumentObserver_StyleSheetRemoved(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIStyleSheet *aStyleSheet, cpp_bool aDocumentSheet)
static void NSAPI nsDocumentObserver_StyleSheetRemoved(nsIDocumentObserver *iface, mozilla_StyleSheetHandle aStyleSheet,
cpp_bool aDocumentSheet)
{
}
static void NSAPI nsDocumentObserver_StyleSheetApplicableStateChanged(nsIDocumentObserver *iface,
nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, cpp_bool aApplicable)
mozilla_StyleSheetHandle aStyleSheet)
{
}
static void NSAPI nsDocumentObserver_StyleRuleChanged(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule, nsIStyleSheet *aNewStyleRule)
static void NSAPI nsDocumentObserver_StyleRuleChanged(nsIDocumentObserver *iface, mozilla_StyleSheetHandle aStyleSheet)
{
}
static void NSAPI nsDocumentObserver_StyleRuleAdded(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule)
static void NSAPI nsDocumentObserver_StyleRuleAdded(nsIDocumentObserver *iface, mozilla_StyleSheetHandle aStyleSheet)
{
}
static void NSAPI nsDocumentObserver_StyleRuleRemoved(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule)
static void NSAPI nsDocumentObserver_StyleRuleRemoved(nsIDocumentObserver *iface, mozilla_StyleSheetHandle aStyleSheet)
{
}
......
......@@ -244,7 +244,7 @@ static nsIDOMHTMLElement *get_dom_element(NPP instance)
static HTMLInnerWindow *get_elem_window(nsIDOMHTMLElement *elem)
{
nsIDOMWindow *nswindow;
mozIDOMWindowProxy *mozwindow;
nsIDOMDocument *nsdoc;
HTMLOuterWindow *window;
nsresult nsres;
......@@ -253,13 +253,13 @@ static HTMLInnerWindow *get_elem_window(nsIDOMHTMLElement *elem)
if(NS_FAILED(nsres))
return NULL;
nsres = nsIDOMDocument_GetDefaultView(nsdoc, &nswindow);
nsres = nsIDOMDocument_GetDefaultView(nsdoc, &mozwindow);
nsIDOMDocument_Release(nsdoc);
if(NS_FAILED(nsres) || !nswindow)
if(NS_FAILED(nsres) || !mozwindow)
return NULL;
window = nswindow_to_window(nswindow);
nsIDOMWindow_Release(nswindow);
window = mozwindow_to_window(mozwindow);
mozIDOMWindowProxy_Release(mozwindow);
return window->base.inner_window;
}
......
......@@ -1059,7 +1059,7 @@ void get_editor_controller(NSContainer *This)
}
nsres = nsIEditingSession_GetEditorForWindow(editing_session,
This->doc->basedoc.window->nswindow, &This->editor);
This->doc->basedoc.window->window_proxy, &This->editor);
nsIEditingSession_Release(editing_session);
if(NS_FAILED(nsres)) {
ERR("Could not get editor: %08x\n", nsres);
......@@ -1903,9 +1903,9 @@ static nsresult NSAPI nsInterfaceRequestor_GetInterface(nsIInterfaceRequestor *i
{
NSContainer *This = impl_from_nsIInterfaceRequestor(iface);
if(IsEqualGUID(&IID_nsIDOMWindow, riid)) {
if(IsEqualGUID(&IID_mozIDOMWindowProxy, riid)) {
TRACE("(%p)->(IID_nsIDOMWindow %p)\n", This, result);
return nsIWebBrowser_GetContentDOMWindow(This->webbrowser, (nsIDOMWindow**)result);
return nsIWebBrowser_GetContentDOMWindow(This->webbrowser, (mozIDOMWindowProxy**)result);
}
return nsIWebBrowserChrome_QueryInterface(&This->nsIWebBrowserChrome_iface, riid, result);
......@@ -2161,6 +2161,7 @@ void NSContainer_Release(NSContainer *This)
nsIXMLHttpRequest *create_nsxhr(nsIDOMWindow *nswindow)
{
mozIDOMWindow *inner_window;
nsIScriptSecurityManager *secman;
nsIPrincipal *nspri;
nsIGlobalObject *nsglo;
......@@ -2182,7 +2183,15 @@ nsIXMLHttpRequest *create_nsxhr(nsIDOMWindow *nswindow)
return NULL;
}
nsres = nsIDOMWindow_QueryInterface(nswindow, &IID_nsIGlobalObject, (void **)&nsglo);
nsres = nsIDOMWindow_GetInnerWindow(nswindow, &inner_window);
if(NS_FAILED(nsres)) {
ERR("Could not get inner window: %08x\n", nsres);
nsISupports_Release(nspri);
return NULL;
}
nsres = mozIDOMWindow_QueryInterface(inner_window, &IID_nsIGlobalObject, (void **)&nsglo);
mozIDOMWindow_Release(inner_window);
assert(nsres == NS_OK);
nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr,
......
......@@ -955,7 +955,7 @@ static HTMLOuterWindow *get_window_from_load_group(nsChannel *This)
static HTMLOuterWindow *get_channel_window(nsChannel *This)
{
nsIWebProgress *web_progress;
nsIDOMWindow *nswindow;
mozIDOMWindowProxy *mozwindow;
HTMLOuterWindow *window;
nsresult nsres;
......@@ -985,20 +985,20 @@ static HTMLOuterWindow *get_channel_window(nsChannel *This)
return NULL;
}
nsres = nsIWebProgress_GetDOMWindow(web_progress, &nswindow);
nsres = nsIWebProgress_GetDOMWindow(web_progress, &mozwindow);
nsIWebProgress_Release(web_progress);
if(NS_FAILED(nsres) || !nswindow) {
if(NS_FAILED(nsres) || !mozwindow) {
ERR("GetDOMWindow failed: %08x\n", nsres);
return NULL;
}
window = nswindow_to_window(nswindow);
nsIDOMWindow_Release(nswindow);
window = mozwindow_to_window(mozwindow);
mozIDOMWindowProxy_Release(mozwindow);
if(window)
IHTMLWindow2_AddRef(&window->base.IHTMLWindow2_iface);
else
FIXME("NULL window for %p\n", nswindow);
FIXME("NULL window for %p\n", mozwindow);
return window;
}
......@@ -1310,6 +1310,34 @@ static nsresult NSAPI nsChannel_SetReferrerWithPolicy(nsIHttpChannel *iface, nsI
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannel_GetProtocolVersion(nsIHttpChannel *iface, nsACString *aProtocolVersion)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aProtocolVersion);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannel_GetTransferSize(nsIHttpChannel *iface, UINT64 *aTransferSize)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aTransferSize);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannel_GetDecodedBodySize(nsIHttpChannel *iface, UINT64 *aDecodedBodySize)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aDecodedBodySize);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannel_GetEncodedBodySize(nsIHttpChannel *iface, UINT64 *aEncodedBodySize)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aEncodedBodySize);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetRequestHeader(nsIHttpChannel *iface,
const nsACString *aHeader, nsACString *_retval)
{
......@@ -1525,11 +1553,11 @@ static nsresult NSAPI nsChannel_IsPrivateResponse(nsIHttpChannel *iface, cpp_boo
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_RedirectTo(nsIHttpChannel *iface, nsIURI *aNewURI)
static nsresult NSAPI nsChannel_RedirectTo(nsIHttpChannel *iface, nsIURI *aTargetURI)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aNewURI);
FIXME("(%p)->(%p)\n", This, aTargetURI);
return NS_ERROR_NOT_IMPLEMENTED;
}
......@@ -1597,6 +1625,10 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_SetReferrer,
nsChannel_GetReferrerPolicy,
nsChannel_SetReferrerWithPolicy,
nsHttpChannel_GetProtocolVersion,
nsHttpChannel_GetTransferSize,
nsHttpChannel_GetDecodedBodySize,
nsHttpChannel_GetEncodedBodySize,
nsChannel_GetRequestHeader,
nsChannel_SetRequestHeader,
nsChannel_SetEmptyRequestHeader,
......@@ -2074,10 +2106,24 @@ static nsresult NSAPI nsHttpChannelInternal_GetProxyURI(nsIHttpChannelInternal *
}
static nsresult NSAPI nsHttpChannelInternal_SetCorsPreflightParameters(nsIHttpChannelInternal *iface,
const void /*nsTArray<nsCString>*/ *unsafeHeaders, cpp_bool withCredentials, nsIPrincipal *preflightPrincipal)
const void /*nsTArray<nsCString>*/ *unsafeHeaders)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p %p %x %p)\n", This, unsafeHeaders, withCredentials, preflightPrincipal);
FIXME("(%p)->(%p)\n", This, unsafeHeaders);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_GetBlockAuthPrompt(nsIHttpChannelInternal *iface, cpp_bool *aBlockAuthPrompt)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%p)\n", This, aBlockAuthPrompt);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_SetBlockAuthPrompt(nsIHttpChannelInternal *iface, cpp_bool aBlockAuthPrompt)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%x)\n", This, aBlockAuthPrompt);
return NS_ERROR_NOT_IMPLEMENTED;
}
......@@ -2127,7 +2173,9 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_GetNetworkInterfaceId,
nsHttpChannelInternal_SetNetworkInterfaceId,
nsHttpChannelInternal_GetProxyURI,
nsHttpChannelInternal_SetCorsPreflightParameters
nsHttpChannelInternal_SetCorsPreflightParameters,
nsHttpChannelInternal_GetBlockAuthPrompt,
nsHttpChannelInternal_SetBlockAuthPrompt
};
......@@ -3315,13 +3363,21 @@ static nsresult NSAPI nsStandardURL_Init(nsIStandardURL *iface, UINT32 aUrlType,
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsStandardURL_SetDefaultPort(nsIStandardURL *iface, LONG aNewDefaultPort)
{
nsWineURI *This = impl_from_nsIStandardURL(iface);
FIXME("(%p)->(%d)\n", This, aNewDefaultPort);
return NS_ERROR_NOT_IMPLEMENTED;
}
static const nsIStandardURLVtbl nsStandardURLVtbl = {
nsStandardURL_QueryInterface,
nsStandardURL_AddRef,
nsStandardURL_Release,
nsStandardURL_GetMutable,
nsStandardURL_SetMutable,
nsStandardURL_Init
nsStandardURL_Init,
nsStandardURL_SetDefaultPort
};
static nsresult create_nsuri(IUri *iuri, HTMLOuterWindow *window, NSContainer *container,
......
......@@ -74,7 +74,7 @@ static nsrefcnt NSAPI nsPromptService_Release(nsIPromptService *iface)
return 1;
}
static nsresult NSAPI nsPromptService_Alert(nsIPromptService *iface, nsIDOMWindow *aParent,
static nsresult NSAPI nsPromptService_Alert(nsIPromptService *iface, mozIDOMWindowProxy *aParent,
const PRUnichar *aDialogTitle, const PRUnichar *aText)
{
HTMLOuterWindow *window;
......@@ -82,9 +82,9 @@ static nsresult NSAPI nsPromptService_Alert(nsIPromptService *iface, nsIDOMWindo
TRACE("(%p %s %s)\n", aParent, debugstr_w(aDialogTitle), debugstr_w(aText));
window = nswindow_to_window(aParent);
window = mozwindow_to_window(aParent);
if(!window) {
WARN("Could not find HTMLWindow for nsIDOMWindow %p\n", aParent);
WARN("Could not find HTMLWindow for mozIDOMWindowProxy %p\n", aParent);
return NS_ERROR_UNEXPECTED;
}
......@@ -96,7 +96,7 @@ static nsresult NSAPI nsPromptService_Alert(nsIPromptService *iface, nsIDOMWindo
}
static nsresult NSAPI nsPromptService_AlertCheck(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, const PRUnichar *aCheckMsg, cpp_bool *aCheckState)
{
FIXME("(%p %s %s %s %p)\n", aParent, debugstr_w(aDialogTitle), debugstr_w(aText),
......@@ -105,7 +105,7 @@ static nsresult NSAPI nsPromptService_AlertCheck(nsIPromptService *iface,
}
static nsresult NSAPI nsPromptService_Confirm(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText,
cpp_bool *_retval)
{
FIXME("(%p %s %s %p)\n", aParent, debugstr_w(aDialogTitle), debugstr_w(aText), _retval);
......@@ -113,7 +113,7 @@ static nsresult NSAPI nsPromptService_Confirm(nsIPromptService *iface,
}
static nsresult NSAPI nsPromptService_ConfirmCheck(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, const PRUnichar *aCheckMsg, cpp_bool *aCheckState,
cpp_bool *_retval)
{
......@@ -123,7 +123,7 @@ static nsresult NSAPI nsPromptService_ConfirmCheck(nsIPromptService *iface,
}
static nsresult NSAPI nsPromptService_ConfirmEx(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, UINT32 aButtonFlags, const PRUnichar *aButton0Title,
const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
const PRUnichar *aCheckMsg, cpp_bool *aCheckState, LONG *_retval)
......@@ -153,7 +153,7 @@ static nsresult NSAPI nsPromptService_ConfirmEx(nsIPromptService *iface,
}
static nsresult NSAPI nsPromptService_Prompt(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
cpp_bool *aCheckState, cpp_bool *_retval)
{
......@@ -163,7 +163,7 @@ static nsresult NSAPI nsPromptService_Prompt(nsIPromptService *iface,
}
static nsresult NSAPI nsPromptService_PromptUsernameAndPassword(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
const PRUnichar *aCheckMsg, cpp_bool *aCheckState, cpp_bool *_retval)
{
......@@ -174,7 +174,7 @@ static nsresult NSAPI nsPromptService_PromptUsernameAndPassword(nsIPromptService
}
static nsresult NSAPI nsPromptService_PromptPassword(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
cpp_bool *aCheckState, cpp_bool *_retval)
{
......@@ -184,7 +184,7 @@ static nsresult NSAPI nsPromptService_PromptPassword(nsIPromptService *iface,
}
static nsresult NSAPI nsPromptService_Select(nsIPromptService *iface,
nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, UINT32 aCount, const PRUnichar **aSelectList,
LONG *aOutSelection, cpp_bool *_retval)
{
......
......@@ -56,7 +56,7 @@ void do_ns_command(HTMLDocument *This, const char *cmd, nsICommandParams *nspara
return;
}
nsres = nsICommandManager_DoCommand(cmdmgr, cmd, nsparam, This->window->nswindow);
nsres = nsICommandManager_DoCommand(cmdmgr, cmd, nsparam, This->window->window_proxy);
if(NS_FAILED(nsres))
ERR("DoCommand(%s) failed: %08x\n", debugstr_a(cmd), nsres);
......
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