[Webkit-unassigned] [Bug 11574] New: Using XMLHttpRequest from script output by an XSLT transformation gives permission denied

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 11 17:58:59 PST 2006


           Summary: Using XMLHttpRequest from script output by an XSLT
                    transformation gives permission denied
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh PowerPC
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: paul__hickman at hotmail.com

I have two XML pages. The first one, test.xml contains one line:

<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href="test2.xml"
type="text/xsl"?><root />

The second, test2.xml is a simple XSLT stylesheet that generates an HTML page
containing javascript. The javascript in the page attempts to download another
copy of test2.xml using XMLHttpRequest. However, it gets a permission denied
error, presumably because the result of the XSLT transformation in the original
XML file has lost its connection to the domain name of the server from which
the files were downloaded.

<?xml version="1.0" encoding="utf-8"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:output method="html" omit-xml-declaration="yes"/>
        <xsl:template match="/root">
                        <script type="text/javascript">
                                var xmlhttp = new XMLHttpRequest();

Neither IE 6/7 or Firefox 1/2 have a problem running this code. Tests were
performed using the Webkit nightly downloaded 10 Nov 2006.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list