зеркало из https://github.com/mozilla/gecko-dev.git
Fixed bug 41772, if XLink target was XML file it never opened it in new window. r=jst.
This commit is contained in:
Родитель
f54de3516e
Коммит
418d0168ea
|
@ -515,7 +515,9 @@ NS_IMETHODIMP nsURILoader::GetTarget(const char * aWindowTarget,
|
|||
nsCOMPtr<nsIDocShellTreeItem> treeItem;
|
||||
*aRetargetedWindowContext = nsnull;
|
||||
|
||||
if(!name.Length() || name.EqualsIgnoreCase("_self") || name.EqualsIgnoreCase("_blank"))
|
||||
if(!name.Length() || name.EqualsIgnoreCase("_self") ||
|
||||
name.EqualsIgnoreCase("_blank") ||
|
||||
name.EqualsIgnoreCase("_new"))
|
||||
{
|
||||
*aRetargetedWindowContext = aWindowContext;
|
||||
}
|
||||
|
|
|
@ -2324,6 +2324,11 @@ static nsModuleComponentInfo components[] = {
|
|||
NS_CONTENT_HANDLER_PROGID_PREFIX"text/rdf",
|
||||
nsBrowserContentHandlerConstructor
|
||||
},
|
||||
{ "Browser Content Handler",
|
||||
NS_BROWSERCONTENTHANDLER_CID,
|
||||
NS_CONTENT_HANDLER_PROGID_PREFIX"text/xml",
|
||||
nsBrowserContentHandlerConstructor
|
||||
},
|
||||
{ "Browser Content Handler",
|
||||
NS_BROWSERCONTENTHANDLER_CID,
|
||||
NS_CONTENT_HANDLER_PROGID_PREFIX"text/css",
|
||||
|
|
Загрузка…
Ссылка в новой задаче