зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
01da285ed5
Коммит
03a2863cca
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче