Module: wine Branch: master Commit: bf3e5bb3087d4d4add984b5be18e4f1ae681ab8c URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf3e5bb3087d4d4add984b5be1...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Dec 14 00:21:16 2006 +0100
mshtml: Fixed handling chrome protocol.
---
dlls/mshtml/nsio.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 256a436..4b48511 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -1711,6 +1711,8 @@ static nsresult NSAPI nsIOService_NewURI 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 }
nsACString_Finish(&base_uri_str); + + if(!strncmp(spec, szChrome, sizeof(szChrome)-1)) + aBaseURI = NULL; }
nsres = nsIIOService_NewURI(nsio, aSpec, aOriginCharset, aBaseURI, &uri);