Commit bf3e5bb3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed handling chrome protocol.

parent 6b48198d
......@@ -1711,6 +1711,8 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
nsACString base_uri_str;
const char *base_uri = NULL;
static const char szChrome[] = "chrome:";
nsACString_Init(&base_uri_str, NULL);
nsres = nsIURI_GetSpec(aBaseURI, &base_uri_str);
......@@ -1722,6 +1724,9 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
}
nsACString_Finish(&base_uri_str);
if(!strncmp(spec, szChrome, sizeof(szChrome)-1))
aBaseURI = NULL;
}
nsres = nsIIOService_NewURI(nsio, aSpec, aOriginCharset, aBaseURI, &uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment