New issue
Advanced search Search tips

Issue 718434 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 3
Type: Bug



Sign in to add a comment

XSLT document function fails silently

Reported by m...@shmarya.net, May 4 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
1. unzip ajax_xsl.zip
2. run server in ajax_xsl directory (e.g. `python -m SimpleHTTPServer 8000`)
3. browse to http://localhost:8000/page.xhtml

What is the expected behavior?
The file.xsl file should retrieve the test.xml additional xml file from the server via the document XSLT function, resulting in "success" being printed on the page

What went wrong?
The XSLT document function fails silently, returning null. No request is made to the server

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 57.0.2987.133  Channel: stable
OS Version: 4.2.0-42-generic
Flash Version: 

This is NOT a same origin policy error, as the original origin is being used.

I tried to debug this some, and found that everything is alright until this line: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp?l=128
For some reason, the resource->ResourceBuffer() returns null.
 
ajax_xsl.zip
2.0 KB Download

Comment 1 by m...@shmarya.net, May 4 2017

Note that this works fine in Firefox 47.0.

Comment 2 by m...@shmarya.net, May 4 2017

I also tried this against a TOT chromium compiled for android. Same behavior.

Comment 3 by m...@shmarya.net, May 4 2017

I just noticed that if I navigate directly to the file.xml file, which has an xml-stylesheet tag pointed at file.xsl, everything works as expected.

Comment 4 by ajha@chromium.org, May 10 2017

Labels: Needs-Milestone
Labels: TE-NeedsTriageHelp

Comment 6 by tkent@chromium.org, Jul 21 2017

Labels: -Pri-2 -TE-NeedsTriageHelp -Needs-Milestone OS-Mac Pri-3
Status: Available (was: Unconfirmed)
Confirmed.
Safari doesn't work too.

Project Member

Comment 7 by sheriffbot@chromium.org, Jul 23

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment