Fixed bug 41772, if XLink target was XML file it never opened it in new window. r=jst.

git-svn-id: svn://10.0.0.236/trunk@76016 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
heikki%netscape.com
2000-08-10 20:18:49 +00:00
parent 7a9808d5bf
commit 5ff983885a
2 changed files with 8 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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",