MS Exchange Access Web Access kills window upon download finish when single window mode is set to 'reuse'. b=354701, sr=pinkerton

This commit is contained in:
hwaara%gmail.com 2006-10-07 23:26:20 +00:00
Родитель 8bd38531d5
Коммит ce5535624a
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -232,9 +232,12 @@ CHBrowserListener::ProvideWindow(nsIDOMWindow *inParent, PRUint32 inChromeFlags,
if (prefersTabs) {
CHBrowserView* newContainer = [mContainer reuseExistingBrowserWindow:inChromeFlags];
nsCOMPtr<nsIDOMWindow> contentWindow = [newContainer getContentWindow];
*outDOMWindow = contentWindow.get();
*outWindowIsNew = PR_TRUE;
NS_IF_ADDREF(*outDOMWindow);
// make sure gecko knows whether we're creating a new browser window (new tabs don't count)
nsCOMPtr<nsIDOMWindow> currentWindow = [mView getContentWindow];
*outWindowIsNew = (contentWindow != currentWindow);
NS_IF_ADDREF(*outDOMWindow = contentWindow.get());
}
return NS_OK;