зеркало из https://github.com/mozilla/pjs.git
Fix for crash when checking for a sub document bug 96579 r=av sr=attinasi
This commit is contained in:
Родитель
e5cc5abd22
Коммит
b1ae773176
|
@ -462,7 +462,7 @@ void nsObjectFrame::IsSupportedDocument(nsIContent* aContent, PRBool* aDoc)
|
|||
nsCOMPtr<nsIMIMEService> mimeService = do_GetService(NS_MIMESERVICE_CONTRACTID, &rv);
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
char * contentType;
|
||||
char * contentType = nsnull;
|
||||
rv = mimeService->GetTypeFromURI(uri, &contentType);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (contentType)
|
||||
|
|
|
@ -462,7 +462,7 @@ void nsObjectFrame::IsSupportedDocument(nsIContent* aContent, PRBool* aDoc)
|
|||
nsCOMPtr<nsIMIMEService> mimeService = do_GetService(NS_MIMESERVICE_CONTRACTID, &rv);
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
char * contentType;
|
||||
char * contentType = nsnull;
|
||||
rv = mimeService->GetTypeFromURI(uri, &contentType);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (contentType)
|
||||
|
|
Загрузка…
Ссылка в новой задаче