зеркало из https://github.com/mozilla/pjs.git
changed Parser(stream) to accept mimetype
This commit is contained in:
Родитель
141c777351
Коммит
a486e52b05
|
@ -2213,7 +2213,8 @@ nsXULDocument::LoadFromStream(nsIInputStream& xulStream,
|
|||
rv = PrepareToLoad(aContainer, aCommand, nsnull, nsnull, getter_AddRefs(parser));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
parser->Parse(xulStream);
|
||||
nsAutoString theMimeType(kXULTextContentType);
|
||||
parser->Parse(xulStream,theMimeType);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -2213,7 +2213,8 @@ nsXULDocument::LoadFromStream(nsIInputStream& xulStream,
|
|||
rv = PrepareToLoad(aContainer, aCommand, nsnull, nsnull, getter_AddRefs(parser));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
parser->Parse(xulStream);
|
||||
nsAutoString theMimeType(kXULTextContentType);
|
||||
parser->Parse(xulStream,theMimeType);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче