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.
XSLT xsl:import and document() don't work in 2.4.7
-
- Posts: 5
- Joined: Wed Jul 04, 2012 8:54 pm
XSLT xsl:import and document() don't work in 2.4.7
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0
-
- Posts: 5
- Joined: Wed Jul 04, 2012 8:54 pm
Re: XSLT xsl:import and document() don't work in 2.4.7
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.
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
-
- Posts: 5
- Joined: Wed Jul 04, 2012 8:54 pm
Re: XSLT xsl:import and document() don't work in 2.4.7
Test case here: http://doriantaylor.com/file/djt-noscript-test.tar.gz
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Re: XSLT xsl:import and document() don't work in 2.4.7
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.
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
- 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
Investigating from my hospital bed
, thanks.

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
-
- Posts: 5
- Joined: Wed Jul 04, 2012 8:54 pm
Re: XSLT xsl:import and document() don't work in 2.4.7
Yikes. Get well soon!
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1
-
- Posts: 5
- Joined: Wed Jul 04, 2012 8:54 pm
Re: XSLT xsl:import and document() don't work in 2.4.7
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!
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