Removed statically constructed nsAutoString LinkCommand, moved inside nsWebShell::LoadURL(). This prevents calling printf before main runs on MacOS, which messes up the console window. r=sfraser

This commit is contained in:
beard%netscape.com 1999-10-30 01:23:01 +00:00
Родитель 01da285ed5
Коммит 03a2863cca
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -135,7 +135,6 @@ void nsWebShell_SetUnixEventQueue(PLEventQueue* aEventQueue)
static NS_DEFINE_CID(kGlobalHistoryCID, NS_GLOBALHISTORY_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
static nsAutoString LinkCommand("linkclick");
//----------------------------------------------------------------------
typedef enum {
@ -2273,6 +2272,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
nsCOMPtr<nsIUrlDispatcher> urlDispatcher;
rv = root->GetUrlDispatcher(*getter_AddRefs(urlDispatcher));
if (NS_SUCCEEDED(rv) && urlDispatcher) {
nsAutoString LinkCommand("linkclick");
urlDispatcher->HandleUrl(LinkCommand.GetUnicode(),
urlAStr.GetUnicode(), aPostDataStream);
return NS_OK;

Просмотреть файл

@ -135,7 +135,6 @@ void nsWebShell_SetUnixEventQueue(PLEventQueue* aEventQueue)
static NS_DEFINE_CID(kGlobalHistoryCID, NS_GLOBALHISTORY_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
static nsAutoString LinkCommand("linkclick");
//----------------------------------------------------------------------
typedef enum {
@ -2273,6 +2272,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
nsCOMPtr<nsIUrlDispatcher> urlDispatcher;
rv = root->GetUrlDispatcher(*getter_AddRefs(urlDispatcher));
if (NS_SUCCEEDED(rv) && urlDispatcher) {
nsAutoString LinkCommand("linkclick");
urlDispatcher->HandleUrl(LinkCommand.GetUnicode(),
urlAStr.GetUnicode(), aPostDataStream);
return NS_OK;