NECKO ifdef (ifdef'd _off_ by default) this checkin should not impact anything. checkin approved. If someone runs into a problem, call me at 303.546.0061.

git-svn-id: svn://10.0.0.236/trunk@35863 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
valeski%netscape.com
1999-06-18 17:34:08 +00:00
parent f8cf48d35b
commit 4fa4e2e84d
124 changed files with 3915 additions and 243 deletions

View File

@@ -30,6 +30,11 @@
#include "nsIServiceManager.h"
#include "nsAppShellCIDs.h"
#include "nsIURL.h"
#ifdef NECKO
#include "nsIIOService.h"
#include "nsIURI.h"
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
#endif // NECKO
#include "nsIDOMHTMLInputElement.h"
#include "nsIWebShellWindow.h"
#include "nsIDOMEventReceiver.h"
@@ -431,8 +436,25 @@ nsresult nsNetSupportDialog::DoDialog( nsString& inXULURL )
return result;
nsIURL* dialogURL;
if (!NS_SUCCEEDED (result = NS_NewURL(&dialogURL, inXULURL ) ) )
#ifndef NECKO
result = NS_NewURL(&dialogURL, inXULURL );
#else
NS_WITH_SERVICE(nsIIOService, service, kIOServiceCID, &result);
if (NS_FAILED(result)) return result;
nsIURI *uri = nsnull;
const char *uriStr = inXULURL.GetBuffer();
result = service->NewURI(uriStr, nsnull, &uri);
if (NS_FAILED(result)) return result;
result = uri->QueryInterface(nsIURL::GetIID(), (void**)&dialogURL);
NS_RELEASE(uri);
#endif // NECKO
if (!NS_SUCCEEDED (result) )
{
appShellService->Release();
return result;
}
NS_IF_RELEASE( mWebShellWindow );
appShellService->RunModalDialog( nsnull, dialogURL, mWebShellWindow, nsnull, this, 300, 200);