[Webkit-unassigned] [Bug 10313] xsl:import and document() don't work in stylesheets loaded via XMLHttpRequest

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 6 08:47:46 PDT 2010


Andreas Wictor <andreas.wictor at xcerion.com> changed:

           What    |Removed                     |Added
  Attachment #59361|0                           |1
        is obsolete|                            |

--- Comment #69 from Andreas Wictor <andreas.wictor at xcerion.com>  2010-10-06 08:47:44 PST ---
Created an attachment (id=69944)
 --> (https://bugs.webkit.org/attachment.cgi?id=69944)
New patch

I have created a new patch that I believe makes WebKit behave in much the same way as Firefox does when importing xsl stylesheets. It is still using an originDocument reference on documents to find a frame for loading sub resources but I have made a couple of other changes since the last patch.

* The XSLImportRule::loadSheet method and the libxslt loader callback in XSLTProcessorLibxslt.cpp is changed to use ThreadableLoader for synchronous loading. This will make sure that the origin header is set for cross origin loads.

* There is a new overload for loadResourceSynchronously on FrameLoader that takes a referrer string as argument.

* In DocumentThreadableLoader use the new loadResourceSynchronously overload on FrameLoader to make sure we send the right referrer when importing stylesheets and other sub resources.

* The [CallWith=ScriptExecutionContext] IDL attribute that was added to get hold of an originDocument is moved from the interfaces to the functions for DOMParser.parseFromString and DOMImplementation.createDocument.

With these changes it will pass all of the the tests in comment #68 just like Firefox.

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

More information about the webkit-unassigned mailing list