mshtml: Added nsIURIContentListener to QueryInterface.

Always release nsIWebBrowserSetup.
This commit is contained in:
Jacek Caban 2005-12-09 11:41:33 +01:00 committed by Alexandre Julliard
parent 37b1a456d7
commit db452fdf7c
1 changed files with 5 additions and 2 deletions

View File

@ -395,6 +395,9 @@ static nsresult NSAPI nsWebBrowserChrome_QueryInterface(nsIWebBrowserChrome *ifa
}else if(IsEqualGUID(&IID_nsIContextMenuListener, riid)) { }else if(IsEqualGUID(&IID_nsIContextMenuListener, riid)) {
TRACE("(%p)->(IID_nsIContextMenuListener, %p)\n", This, result); TRACE("(%p)->(IID_nsIContextMenuListener, %p)\n", This, result);
*result = NSCML(This); *result = NSCML(This);
}else if(IsEqualGUID(&IID_nsIURIContentListener, riid)) {
TRACE("(%p)->(IID_nsIURIContentListener %p)\n", This, result);
*result = NSURICL(This);
}else if(IsEqualGUID(&IID_nsIEmbeddingSiteWindow, riid)) { }else if(IsEqualGUID(&IID_nsIEmbeddingSiteWindow, riid)) {
TRACE("(%p)->(IIS_nsIEmbeddingSiteWindow %p)\n", This, result); TRACE("(%p)->(IIS_nsIEmbeddingSiteWindow %p)\n", This, result);
*result = NSEMBWNDS(This); *result = NSEMBWNDS(This);
@ -895,9 +898,9 @@ void HTMLDocument_NSContainer_Init(HTMLDocument *This)
&IID_nsIWebBrowserSetup, (void**)&wbsetup); &IID_nsIWebBrowserSetup, (void**)&wbsetup);
if(NS_SUCCEEDED(nsres)) { if(NS_SUCCEEDED(nsres)) {
nsres = nsIWebBrowserSetup_SetProperty(wbsetup, SETUP_IS_CHROME_WRAPPER, TRUE); nsres = nsIWebBrowserSetup_SetProperty(wbsetup, SETUP_IS_CHROME_WRAPPER, TRUE);
if(NS_FAILED(nsres))
ERR("SetProperty failed: %08lx\n", nsres);
nsIWebBrowserSetup_Release(wbsetup); nsIWebBrowserSetup_Release(wbsetup);
if(NS_FAILED(nsres))
ERR("SetProperty(SETUP_IS_CHROME_WRAPPER) failed: %08lx\n", nsres);
}else { }else {
ERR("Could not get nsIWebBrowserSetup interface\n"); ERR("Could not get nsIWebBrowserSetup interface\n");
} }