XSLT xsl:import and document() don't work in 2.4.7

Bug reports and enhancement requests
Post Reply
doriantaylor
Posts: 5
Joined: Wed Jul 04, 2012 8:54 pm

XSLT xsl:import and document() don't work in 2.4.7

Post by doriantaylor »

Just wanted to let you know that for the past few revisions of NoScript, an idiom I've been using on a few sites for a number of years has stopped working, namely resources included from XSLT stylesheets via xsl:import or the document() function.

My own site, http://doriantaylor.com/ won't load with NoScript enabled, but will load in Firefox (13) safe mode. In the Firebug network panel (with NoScript enabled), these resources show up with throbbers spinning perpetually and never load. The page will usually be rendered blank or stay the same as the page before it.

I can prepare a test case, if you're interested.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0
doriantaylor
Posts: 5
Joined: Wed Jul 04, 2012 8:54 pm

Re: XSLT xsl:import and document() don't work in 2.4.7

Post by doriantaylor »

Upon closer inspection, it appears to be an interaction between an object or iframe tag and either the xsl:import element or document() function.

no object or iframe + document() or xsl:import = works
object or iframe + no document() or xsl:import = works
either object or iframe + either document() or xsl:import = blank page.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0
doriantaylor
Posts: 5
Joined: Wed Jul 04, 2012 8:54 pm

Re: XSLT xsl:import and document() don't work in 2.4.7

Post by doriantaylor »

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: XSLT xsl:import and document() don't work in 2.4.7

Post by Thrawn »

When I go to that site, I get an object placeholder, and if I click to allow it, I get an error:

Code: Select all

Error: doc.body is undefined
Source File: jar:file:///home/thrawn/.mozilla/firefox/fg32u649.default/extensions/%7B73a6fe31-595d-460b-a920-fcc0f8843232%7D.xpi!/components/noscriptService.js
Line: 4830
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: XSLT xsl:import and document() don't work in 2.4.7

Post by Giorgio Maone »

Investigating from my hospital bed :), thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
doriantaylor
Posts: 5
Joined: Wed Jul 04, 2012 8:54 pm

Re: XSLT xsl:import and document() don't work in 2.4.7

Post by doriantaylor »

Yikes. Get well soon!
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1
doriantaylor
Posts: 5
Joined: Wed Jul 04, 2012 8:54 pm

Re: XSLT xsl:import and document() don't work in 2.4.7

Post by doriantaylor »

Hi Giorgio, hope you're better!

Did you have any luck with this bug? I opened the XPI but I have no idea where the code that affects document() and xsl:import lives.

Thanks!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:14.0) Gecko/20100101 Firefox/14.0.1
Post Reply