Issue 39616 in chromium: XML with XSL not shown under file:// scheme

1,263 views
Skip to first unread message

chro...@googlecode.com

unread,
Mar 28, 2010, 5:20:24 AM3/28/10
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined

New issue 39616 by sbjesse: XML with XSL not shown under file:// scheme
http://code.google.com/p/chromium/issues/detail?id=39616

Chrome Version : 5.0.364.0 (Developer Build 42891) Ubuntu
URLs (if applicable) :file:///home/jesse/<private>
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4:
Firefox 3.x:ok
IE 7:
IE 8:

What steps will reproduce the problem?
1. open an xml file that references an xsl stylesheet in home directory

What is the expected result?
Chromium browser shows the transformed output

What happens instead?
blank page

Please provide any additional information below. Attach a screenshot if
possible.
Developer console says: Unsafe attempt to load URL
file:///home/jesse/Private/<private>/MessageLog.xsl
from frame with URL file:///home/jesse/Private/<private>/<srubbed>.xml.
Domains, protocols and ports must
match.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

chro...@googlecode.com

unread,
May 10, 2010, 2:48:10 AM5/10/10
to chromi...@chromium.org

Comment #1 on issue 39616 by potages: XML with XSL not shown under file://
scheme
http://code.google.com/p/chromium/issues/detail?id=39616

Chrome Version : 5.0.375.29, Windows 7 x64
URLs (if applicable) : local file
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4:
Firefox 3.x:
IE 7:
IE 8: OK

What steps will reproduce the problem?
1. Open a local XML file that references an XSL file in the same directory.

What is the expected result?

Chromium browser shows the transformed output.

What happens instead?
Blank page

Please provide any additional information below. Attach a screenshot if
possible.

The developer console reports the following:
Unsafe attempt to load URL file:///D:/test/test.xsl from frame with URL
file:///D:/test/test.xml. Domains, protocols and ports must match.
The files are in the same directory and linked with the following:
<?xml-stylesheet type="text/xsl" href="test.xsl"?>


--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs

chro...@googlecode.com

unread,
May 29, 2010, 6:42:11 AM5/29/10
to chromi...@chromium.org

Comment #2 on issue 39616 by azarchs: XML with XSL not shown under file://
scheme
http://code.google.com/p/chromium/issues/detail?id=39616

I have the same problem, with the output from my photo album software
(http://xmlalbum.sourceforge.net). Stored on a web server works just
fine. Javascript
loading of xml/xslt has the same problem as with direct stylesheet
reference in the
xml. All of these worked fine in Chrome 4, and still work fine in IE7/8.

It seems likely the issue is the browser not allowing references to files
stored on the
local machine. Sensible enough, for a page not itself on the local
machine, but it's
rather inconvenient, especially for debugging.

chro...@googlecode.com

unread,
May 31, 2010, 2:09:36 PM5/31/10
to chromi...@chromium.org

Comment #3 on issue 39616 by manfred.staudinger: XML with XSL not shown

When I use an XML from file:///F:/Project/index.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="transform.xsl" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- ... -->
</html>
then I get the following msg from Google Chrome (5.0.375.55 beta, Windows
XP Home
Version 2002 SP 3):
Unsafe attempt to load URL file:///F:/Project/transform.xsl from frame
with
URL file:///F:/Project/index.xml. Domains, protocols and ports must
match.
(Remark: It does not make any difference whether the stylesheet is
referenced
absolute or relative or if it even exists or not, but it works fine if I
delete the
stylesheet!). My question:
Given the above msg, could it still be that the domain or the protocol or
the port
for retrieving the two files is seen different? If yes, how would I check
it?

However this works fine with Firefox 3.5.9, Safari 4.0.2 (530.19.1), Opera
10.53
(3374) and IE 7 (7.0.5730.13) and more, all on the above mentioned Windows
XP.


chro...@googlecode.com

unread,
Jun 1, 2010, 12:51:24 PM6/1/10
to chromi...@chromium.org

Comment #4 on issue 39616 by manfred.staudinger: XML with XSL not shown

Correction to my post (3):
instead of "but it works fine if I delete the stylesheet!)"
read "but it works fine if I delete the processing instruction!)"

chro...@googlecode.com

unread,
Jun 1, 2010, 2:53:37 PM6/1/10
to chromi...@chromium.org

Comment #6 on issue 39616 by uviathon: XML with XSL not shown under file://
scheme
http://code.google.com/p/chromium/issues/detail?id=39616

Sorry - the above was my first bug report. I'll conform to the format of
the first post:

Chrome Version : 5.0.375.55 Windows XP Pro SP3
URLs (if applicable) :file:///C:/Documents and
Settings/<username>/Desktop/test.xml


Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:

Safari 4.0.5 (531.22.7): OK
Firefox 3.6.3: OK
IE 8.0.6001.18702: OK
Opera 10.53 Build 3374: OK


What steps will reproduce the problem?

---------------------------------------
1. open an xml file that references an xsl stylesheet in the same directory


What is the expected result?

------------------------------


Chromium browser shows the transformed output


What happens instead?
----------------------
blank page


Additional Info:
------------------


Developer console says:
"Unsafe attempt to load URL

file:///C:/Documents%20and%20Settings/<username>/Desktop/test.xsl from
frame with URL
file:///C:/Documents%20and%20Settings/<username>/Desktop/test.xml.


Domains, protocols and ports must match."


Also, changing the stylesheet reference from -
<?xml-stylesheet href="test.xsl" type="text/xsl" ?>

- to -

<?xml:stylesheet href="test.xsl" type="text/xsl" ?>

- generates a parsing error on all browsers listed above, except for IE
(only ever supported there to my knowledge), and Chrome, which just returns
non-formated text from xml nodes
(have to open console to see it - would be nice if it output xml node tree
like all other browsers do).


Files attached:
test.xml
test.xsl

Put both in same folder and open test.xml in a browser.

Attachments:
test.xsl 642 bytes
test.xml 319 bytes

chro...@googlecode.com

unread,
Jun 9, 2010, 4:42:14 AM6/9/10
to chromi...@chromium.org

Comment #7 on issue 39616 by leszeg: XML with XSL not shown under file://
scheme
http://code.google.com/p/chromium/issues/detail?id=39616

I'm experiencing the same problem. When I access an xml file, which
references an xsl stylesheet, I'm getting a blank page. When I go to
Console error it says:

Unsafe attempt to load URL

file:///F:/Users/MyUserName/Desktop/HomePage.xslt from frame with URL
file:///F:/Users/MyUserName/Desktop/HomePage.xml. Domains, protocols and
ports must match.

This page used to work in Chrome and i don't recall any problems in other
browsers. This is definitely something you should look into.

chro...@googlecode.com

unread,
Jun 9, 2010, 4:58:23 AM6/9/10
to chromi...@chromium.org

Comment #8 on issue 39616 by leszeg: XML with XSL not shown under file://
scheme
http://code.google.com/p/chromium/issues/detail?id=39616

I'm experiencing the same problem. When I access an xml file, which
references an xsl stylesheet, I'm getting a blank page. When I go to
Console error it says:

Unsafe attempt to load URL
file:///F:/Users/MyUserName/Desktop/HomePage.xslt from frame with URL
file:///F:/Users/MyUserName/Desktop/HomePage.xml. Domains, protocols and
ports must match.

This used to work in Chrome 4 fine. I also don't recall any problems with
it in other browsers.

I also think that since this issue has been reported by a few people
already and so it would be good if the ticket status didn't
say "Unconfirmed".


chro...@googlecode.com

unread,
Jun 10, 2010, 5:18:44 AM6/10/10
to chromi...@chromium.org

Comment #9 on issue 39616 by timtodd.uk: XML with XSL not shown under

<sigh> in a blur of morning stupidity I create a second report for this
bug, as it will certainly be marked and duplicate and erased, I will repost
here ...sorry

Chrome Version : 6.0.427.0 dev
URLs (if applicable) : n/a


Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:

Safari 4: -
Firefox 3.x: OK
IE 6: OK
IE 7: -
IE 8: OK
Opera 10: OK

What steps will reproduce the problem?

1. Create an XML file with an XSL request
2. Store the XML and XSL files locally
3. Open the XML file

Here is the test.xml:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><?xml-stylesheet

type="text/xsl" href="test.xsl"?>

<stuff>
<entry thing="foo" />
</stuff>

...The content of the XSL file is irrelevant as it is never loaded

What is the expected result?

XML is displayed and formatted as per the XSL rules

What happens instead?
Blank Page displayed
Dev console says:
Unsafe attempt to load URL file:///D:/tmp/test.xsl from frame with URL
file:///D:/tmp/test.xml. Domains, protocols and ports must match.

Please provide any additional information below. Attach a screenshot if
possible.

# No screenshot relevant, *nothing* is displayed
# There is no workaround
# It is not possible for my code to detect Chrome and display an error
dialog, as the error occurs as Chrome reads the first line of the XML file
# Bug introduced in v5
# Online forums attribute this critical bug and misleading error message
to "Chris Evans"

chro...@googlecode.com

unread,
Jun 11, 2010, 12:39:14 PM6/11/10
to chromi...@chromium.org

Comment #10 on issue 39616 by eyad.aboulouz: XML with XSL not shown under

Same issue here!!! any fix?

chro...@googlecode.com

unread,
Jun 12, 2010, 5:27:58 PM6/12/10
to chromi...@chromium.org

Comment #11 on issue 39616 by Graham.Tibbitts: XML with XSL not shown under

I have the same problem.

chro...@googlecode.com

unread,
Jun 13, 2010, 3:28:51 PM6/13/10
to chromi...@chromium.org

Comment #12 on issue 39616 by randall.wendy.gordon: XML with XSL not shown

This was functional up through version 5.0.322.2. Broke starting with
5.0.335.0, and still broken as of 6.0.427.0.

Workaround: Use another browser. Haven't tested all other browsers, but
the file opens and displays correctly in IE and Safari.

chro...@googlecode.com

unread,
Jun 13, 2010, 4:06:46 PM6/13/10
to chromi...@chromium.org

Comment #13 on issue 39616 by randall.wendy.gordon: XML with XSL not shown

chro...@googlecode.com

unread,
Jun 13, 2010, 4:43:25 PM6/13/10
to chromi...@chromium.org

Comment #14 on issue 39616 by gles.bme: XML with XSL not shown under

Another workaround: start chrome with the --disable-web-security switch.

Use this only for development, because it is unsecure to browse the web
with these features turned off.

chro...@googlecode.com

unread,
Jul 5, 2010, 7:56:01 AM7/5/10
to chromi...@chromium.org

Comment #16 on issue 39616 by woodhouses: XML with XSL not shown under

I am experiencing the same issue. The result is that our customers will
stop using Chrome and go back to using IE or Firefox. Of course the
alternative is that we release note the version number and ask them not to
use it. The workarounds are not useful to me.

chro...@googlecode.com

unread,
Jul 29, 2010, 6:01:11 AM7/29/10
to chromi...@chromium.org

Comment #17 on issue 39616 by danielsan.ichiban: XML with XSL not shown

Same problem here.

Chrome 5.0.375.125
windows xp sp3

Just started using chrome again to use the html inspector (stopped due to
download management not good enough and pdf issues) but can't test my xslt
without having to run an http server.
Back to ff again.
Wish I could use chrome for things but there always some crucial issue.
Please fix.


chro...@googlecode.com

unread,
Aug 4, 2010, 11:11:19 PM8/4/10
to chromi...@chromium.org

Comment #19 on issue 39616 by tomaz.kovacic: XML with XSL not shown under

I have the exact same issue with 5.0.342.7 beta.

About those workarounds: Are you sure that running chrome with
--disable-web-security flag works? Because I failed to get any results by
running chrome like that.

chro...@googlecode.com

unread,
Oct 29, 2010, 1:04:29 PM10/29/10
to chromi...@chromium.org

Comment #24 on issue 39616 by tony2.seddon: XML with XSL not shown under

I have the same problem. An XML and associated XSL file stored on my C:
drive (Windows XP)

Test results

IE 6 - OK

Firefox 3.6.12 - OK

Opera 10.63 - OK

Chrome - FAIL (Blank page)


Attachments:
cd_catalogue.xml 330 bytes
cd_catalogue.xsl 561 bytes

chro...@googlecode.com

unread,
Nov 6, 2010, 12:07:28 PM11/6/10
to chromi...@chromium.org

Comment #25 on issue 39616 by Justin.E.York: XML with XSL not shown under

I am having the same issue- I have an XML file and XSL file on my Mac that
only google Chrome cannot open. It forced me to switch to firefox (which
has gotten pretty good with 4.0) but I still preferred Chrome. I quit
using Chrome in version 6 and as of version 8 beta, I still cannot use
Chrome for Mac due to this lone issue.

chro...@googlecode.com

unread,
Nov 16, 2010, 1:36:17 PM11/16/10
to chromi...@chromium.org

Comment #27 on issue 39616 by in4moonlight: XML with XSL not shown under

Same problem experienced :(

chro...@googlecode.com

unread,
Nov 23, 2010, 3:41:19 AM11/23/10
to chromi...@chromium.org

Comment #28 on issue 39616 by kus...@sunsoft.sk: XML with XSL not shown

I have the same problem. All other browsers works fine...

chro...@googlecode.com

unread,
Dec 3, 2010, 8:18:51 AM12/3/10
to chromi...@chromium.org

Comment #29 on issue 39616 by liviu.it...@gmail.com: XML with XSL not shown

Same problem with chrome version 7.0.517.44

chro...@googlecode.com

unread,
Dec 24, 2010, 7:34:11 AM12/24/10
to chromi...@chromium.org

Comment #31 on issue 39616 by sasha.milenkovic: XML with XSL not shown

Same problem with chrome 8.0.552.224

I have chrome 4.0.206.1 on another computer.
There, everything works fine.

chro...@googlecode.com

unread,
Mar 29, 2011, 9:08:39 AM3/29/11
to chromi...@chromium.org

Comment #37 on issue 39616 by omars...@gmail.com: XML with XSL not shown

Same problem with chrome 10.0.648.204..

Any plan to fix this issue??

chro...@googlecode.com

unread,
Apr 4, 2011, 2:06:03 AM4/4/11
to chromi...@chromium.org

Comment #38 on issue 39616 by lude...@gmail.com: XML with XSL not shown

Same problem with v. 11.0.696.25
I'm not able open mod instalation xml for phpBB.
Workarround disable-web-security works.

chro...@googlecode.com

unread,
Apr 5, 2011, 3:59:17 PM4/5/11
to chromi...@chromium.org

Comment #40 on issue 39616 by rikardhe...@gmail.com: XML with XSL not shown

Would be nice to get a comment from the developers at least...Going back to
Firefox.

chro...@googlecode.com

unread,
Apr 15, 2011, 7:01:19 AM4/15/11
to chromi...@chromium.org

Comment #41 on issue 39616 by atana...@gmail.com: XML with XSL not shown

The same problem here... We expext an answer!

chro...@googlecode.com

unread,
Apr 16, 2011, 9:36:46 PM4/16/11
to chromi...@chromium.org

Comment #42 on issue 39616 by bmcc1...@gmail.com: XML with XSL not shown

Ditto, ditto, ditto, ditto

chro...@googlecode.com

unread,
Apr 17, 2011, 6:12:50 AM4/17/11
to chromi...@chromium.org

Comment #43 on issue 39616 by edko...@gmail.com: XML with XSL not shown

Maybe there's a Secret Cloud Based User Porn Cache in the browser which
stores cached porn on other Chrome users' computers as encrypted XML so as
to speed up browsing for porn... Dear God, I hope this isn't true! Anyway,
still using IE9... ban me for trolling if you want, and hack my Android, I
wouldn't be surprised, I've thought someone's done it before!

chro...@googlecode.com

unread,
Apr 19, 2011, 8:01:02 AM4/19/11
to chromi...@chromium.org

Comment #44 on issue 39616 by rashmi.t...@gmail.com: XML with XSL not shown

the answer is here http://code.google.com/p/chromium/issues/detail?id=70088

chro...@googlecode.com

unread,
Apr 19, 2011, 8:41:22 AM4/19/11
to chromi...@chromium.org

Comment #45 on issue 39616 by edko...@gmail.com: XML with XSL not shown

Ah, OK, that's fair enough...

chro...@googlecode.com

unread,
May 27, 2011, 2:22:13 AM5/27/11
to chromi...@chromium.org

Comment #47 on issue 39616 by br...@processit.co.nz: XML with XSL not shown

Big Problem to not have at least access to XSL and XML file in SAME Folder
as the HTML Document that's trying to load them.
At least FF and IE work!
Come on Google, Sort it out PLEASE!

chro...@googlecode.com

unread,
Nov 18, 2011, 8:16:20 AM11/18/11
to chromi...@chromium.org

Comment #48 on issue 39616 by pvanderb...@gmail.com: XML with XSL not shown

The same problem here...

chro...@googlecode.com

unread,
Dec 20, 2011, 10:14:25 AM12/20/11
to chromi...@chromium.org

Comment #49 on issue 39616 by Mayurov...@gmail.com: XML with XSL not shown

Same problem with Chrome 16

chro...@googlecode.com

unread,
Feb 18, 2012, 2:42:23 PM2/18/12
to chromi...@chromium.org

Comment #50 on issue 39616 by fafar...@gmail.com: XML with XSL not shown

FFS, it took me an hour to find this problem! At least show us some kind of
an error message and not have it hidden away in the 'inspect element'
errors window

chro...@googlecode.com

unread,
Feb 23, 2012, 5:14:08 AM2/23/12
to chromi...@chromium.org

Comment #51 on issue 39616 by milo...@bigpond.com: XML with XSL not shown

2 years down the line and still an issue chrome 16 OS Windows OS Linux

Working on an enterprise level e-learning platform and will now be removing
Chrome from the recommended browser list.

Removing chrome from my operating systems now.

Will no longer design for chrome.

chro...@googlecode.com

unread,
Apr 24, 2012, 12:32:07 PM4/24/12
to chromi...@chromium.org

Comment #53 on issue 39616 by alpor...@gmail.com: XML with XSL not shown

Use the --allow-file-access-from-files option when starting
chrome/chromium. At least that works for me.

chro...@googlecode.com

unread,
Apr 24, 2012, 1:23:07 PM4/24/12
to chromi...@chromium.org

Comment #54 on issue 39616 by beau.mo...@gmail.com: XML with XSL not shown

That option should be obvious to chrome from the URI scheme file:///.

chro...@googlecode.com

unread,
Apr 24, 2012, 4:51:41 PM4/24/12
to chromi...@chromium.org

Comment #55 on issue 39616 by mikem...@gmail.com: XML with XSL not shown

http://peter.sh/experiments/chromium-command-line-switches/

Heh, huge list of startup switches!
Where does chrome document these? Here
maybe?:http://dev.chromium.org/developers
Source code even?

Oh well. Not something average Joe needs to know I guess.
Thanks for pointing it out "alpor..."

chro...@googlecode.com

unread,
Aug 10, 2012, 9:45:41 PM8/10/12
to chromi...@chromium.org

Comment #57 on issue 39616 by oceanmas...@gmail.com: XML with XSL not shown
Chrome 21.0.1180.75, issue still exists.
Any one tried to fix this in past 2 years?

chro...@googlecode.com

unread,
Aug 10, 2012, 10:36:41 PM8/10/12
to chromi...@chromium.org

Comment #58 on issue 39616 by beau.mo...@gmail.com: XML with XSL not shown
Lots of people waiting for the fix...it is very useful functionality for
local applications in a WebKit window.

chro...@googlecode.com

unread,
Aug 21, 2012, 5:49:41 PM8/21/12
to chromi...@chromium.org

Comment #61 on issue 39616 by beau.mo...@gmail.com: XML with XSL not shown
There are many applications and use cases where opening a port and starting
a http server instance are not viable. URI scheme file:/// is designed
specifically for this purpose, see RFC 1630 and RFC 1738.

My intent in posting to this thread is simple, keep the issue alive.

chro...@googlecode.com

unread,
Aug 22, 2012, 12:23:04 PM8/22/12
to chromi...@chromium.org

Comment #62 on issue 39616 by powellqu...@gmail.com: XML with XSL not shown
Chrome 21.0.1180.83 m - still failing with:
Unsafe attempt to load URL file:///C:/...foo.xsl from frame with URL
file:///C:/...foo.xml. Domains, protocols and ports must match.

The message does not indicate what is different the Domain, protocol or
port.

We use this feature to display a couple of xml files that our thick client
generates. We don't currently have an alternative.

Firefox and IE are able to display it correctly. Can a fix be made to
chrome to use the same domain, protocol and port that was used to access
the original xml file when attempting to access the xsl file?

chro...@googlecode.com

unread,
Aug 22, 2012, 1:13:04 PM8/22/12
to chromi...@chromium.org

Comment #63 on issue 39616 by powellqu...@gmail.com: XML with XSL not shown
After more searching I believe this should be merged with
http://code.google.com/p/chromium/issues/detail?id=47416

Reply all
Reply to author
Forward
0 new messages