[RESOLVED] NoScript prevents XML?
[RESOLVED] NoScript prevents XML?
With NoScript freshly installed, I hit http://www.worldofwarcraft.com/ which is pure XML. The index.xml uses XSL file /new-hp/layout/layout.xsl which, inside some templates, uses several scripts. The odd thing is the only output I get is the raw (outside of tags) text present in the index.xml template. None of the contents of /new-hp/layout/layout.xsl got rendered. I expected to see the full page with all scripts disabled just like any HTML page, but NoScript either blocked processing of /new-hp/layout/layout.xsl or inhibited the instantiation of the templates.
With scripts enabled on http://www.worldofwarcraft.com/ the page looks and operates correctly, but I'm confused as to why NoScript would inhibit XML/XSL rendering instead of just the <script>'s. Is this normal and correct NoScript behavior? If it is, perhaps it should be added to the FAQ or as a forum sticky because I found nothing on it when searching both.
Thanks all,
-Foam
With scripts enabled on http://www.worldofwarcraft.com/ the page looks and operates correctly, but I'm confused as to why NoScript would inhibit XML/XSL rendering instead of just the <script>'s. Is this normal and correct NoScript behavior? If it is, perhaps it should be added to the FAQ or as a forum sticky because I found nothing on it when searching both.
Thanks all,
-Foam
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
- GµårÐïåñ
- Lieutenant Colonel
- Posts: 3369
- Joined: Fri Mar 20, 2009 5:19 am
- Location: PST - USA
- Contact:
Re: NoScript prevents XML?
When a page is using an entirely script based interface creation, using XML in this case for the data, it will be blocked by NoScript, because its a script blocker unless its whitelisted. Its actually doing what its supposed to do. Now there is an additional setting in NS Options|Advanced|Untrusted|uncheck "Forbid XSLT" and it will work just fine. But you risk having some site try and exploit you with XSLT, so use caution. With that disabled, you will see it just fine. Good luck.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9
Re: NoScript prevents XML?
Not sure that I'm understanding what the problem is?
(I know nothing of WoW.)
But to me, the page looks fine & appears to function properly.
(Not sure what I'm supposed to see as to what is wrong?)
http://www.worldofwarcraft.com/new-hp/layout/layout.xsl
Now on this page, http://www.worldofwarcraft.com/info/, there is a (horizontal) menu block which does not display its' menu items, but that is generated with JavaScript ...
(I know nothing of WoW.)
But to me, the page looks fine & appears to function properly.
(Not sure what I'm supposed to see as to what is wrong?)
http://www.worldofwarcraft.com/new-hp/layout/layout.xsl
Now on this page, http://www.worldofwarcraft.com/info/, there is a (horizontal) menu block which does not display its' menu items, but that is generated with JavaScript ...
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4pre) Gecko/20090423 SeaMonkey/2.0b1pre
Re: NoScript prevents XML?
Related topic: http://forums.informaction.com/viewtopi ... t=193#p850
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3) Gecko/20090314 Firefox/3.1b3
- GµårÐïåñ
- Lieutenant Colonel
- Posts: 3369
- Joined: Fri Mar 20, 2009 5:19 am
- Location: PST - USA
- Contact:
Re: NoScript prevents XML?
Again I repeat, if you have Forbid XSLT checked it will break, if not then it will show fine. Simple as that because the site is poorly coded.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 AdblockPlus/1.0.2 RequestPolicy/0.5.5 NoScript/1.9.2.1
Re: NoScript prevents XML?
Thanks dhouwn. Once again I had to spoof my UA (from SeaMonkey/1.1.16 to Firefox/2.0) in order to see it not work. (Or you all could spoof your UA to SeaMonkey/1.1.16 & you would see that the page does render properly - even with XSLT checked. UA sniffing
.)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 Firefox/2.0 SeaMonkey/1.1.16
Re: NoScript prevents XML?
I would rather say, it's strangely coded, they surely had to cope with a lot of difficulties (like e. g. with https://bugzilla.mozilla.org/show_bug.cgi?id=230214).GµårÐïåñ wrote:Simple as that because the site is poorly coded.
I wonder what their reasons were for creating these web sites (worldofwarcraft.com, blizzard.com, battle.net) in such an unusual way… (http://xkcd.com/554/ related?)
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3) Gecko/20090314 Firefox/3.1b3
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: NoScript prevents XML?
dhouwn wrote:(http://xkcd.com/554/ related?)

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729)
Re: NoScript prevents XML?
Yup, this is exactly what's happening for me. The data for this is in a few separate places, so here's the summary I've gleaned:GµårÐïåñ wrote:When a page is using an entirely script based interface creation, using XML in this case for the data, it will be blocked by NoScript, because its a script blocker unless its whitelisted. Its actually doing what its supposed to do. Now there is an additional setting in NS Options|Advanced|Untrusted|uncheck "Forbid XSLT" and it will work just fine. But you risk having some site try and exploit you with XSLT, so use caution. With that disabled, you will see it just fine. Good luck.
1) Several of Blizzard's big web sites (http://battle.net, http://worldofwarcraft.com, perhaps more...) are written in XSLT (eXtensible Stylesheet Language Transformations -- basically XML templates). In an attempt to offload their servers yet still reach as many people as possible, Blizzard serves client-side XSLT if it thinks your browser can handle it; otherwise it processes the XSLT on the server and sends your client the rendered XHTML.
2) Because XSLT is may be more susceptible to exploitation (see Giorgio's response about it), NoScript blocks XSLT by default. You can alter this behavior via the Forbid XSLT setting in the NoScript Options | Advanced | Untrusted pane.
3) Because of what appears to be poor browser detection (battle.net reference), some modern browsers that support XML are instead getting the server rendered XHTML which makes the site appear as if there are no issues even with Forbid XSLT enabled.
This all makes sense and seems like the prudent course of action for NoScript, but this information shouldn't have been buried. Thankfully the NoScript community rocks

Thanks for the help, everyone.
-Foam
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: NoScript prevents XML?
Are they looking for "Firefox" in the user agent string to tell if a browser supports client-side XSLT?
It would seems so, since therube and other Seamonkey users didn't experience any issue.
So a possible work-around would be sending a fake UA string to sites not in your whitelist, but this probably would have other unwanted side effects.
However, as far as I can see, there's at least one bug here to be fixed to improve user's experience with XSLT blocking, and it's that if the blocked stylesheet is from a 3rd party site which doesn't deliver any script, it's not shown in the NoScript permissions menu.
I'll fix that in next release.
It would seems so, since therube and other Seamonkey users didn't experience any issue.
So a possible work-around would be sending a fake UA string to sites not in your whitelist, but this probably would have other unwanted side effects.
However, as far as I can see, there's at least one bug here to be fixed to improve user's experience with XSLT blocking, and it's that if the blocked stylesheet is from a 3rd party site which doesn't deliver any script, it's not shown in the NoScript permissions menu.
I'll fix that in next release.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729)
Re: NoScript prevents XML?
PS: There is a domain based spoofer, though not sure if it works in FF?
(Only guessing, possibly FF2, but very likely not in FF3?)
Partial Spoofer: a good solution to sniffing?
Download: http://users.skynet.be/fa258499/extensi ... poofer.xpi
(Only guessing, possibly FF2, but very likely not in FF3?)
Partial Spoofer: a good solution to sniffing?
Download: http://users.skynet.be/fa258499/extensi ... poofer.xpi
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16
Re: NoScript prevents XML?
It looks like Giorgio fixed the bug he mentioned above in the 1.9.2.3 release, however, now Forbid XSLT is being ignored! I'm using NoScript 1.9.2.6 in FireFox 3.0.10 with NoScript Options | Advanced | Untrusted | Forbid XSLT enabled while http://worldofwarcraft.com is NOT in my Whitelist. Using Firefox's View Page Source, I confirmed that I am receiving XML with XSLT which means Firefox is processing and rendering it. All scripts and objects in the rendered XHTML do seem to be blocked, but the Forbid XSLT setting is obviously not functioning.
-Foam
PS. Yes, I finally registered an account
.
-Foam
PS. Yes, I finally registered an account

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Re: NoScript prevents XML?
Wonder if WOW didn't make a change to their website?
No, that's not it.
Looks like some change in NoScript is either causing the site to render as expected - even with XSLT blocking enabled, or XSLT blocking is now broken.
Another site for reference: http://www.hirsch.sth.ac.at/~robert/the ... -index.xml.
PS: Note if you happen to be running FF3.6, its UA is Minefield/3.6a1pre & that will render WOW correctly (again like SeaMonkey does).
1.9.2.3 says:
so maybe some breakage from that.
No, that's not it.
Looks like some change in NoScript is either causing the site to render as expected - even with XSLT blocking enabled, or XSLT blocking is now broken.
Another site for reference: http://www.hirsch.sth.ac.at/~robert/the ... -index.xml.
PS: Note if you happen to be running FF3.6, its UA is Minefield/3.6a1pre & that will render WOW correctly (again like SeaMonkey does).
1.9.2.3 says:
Code: Select all
x Fixed external XSLT sources not being reported in NoScript menus
even if blocked unless a different type of active content comes
from the same origin
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b5pre) Gecko/20090429 SeaMonkey/2.0b1pre
- GµårÐïåñ
- Lieutenant Colonel
- Posts: 3369
- Joined: Fri Mar 20, 2009 5:19 am
- Location: PST - USA
- Contact:
Re: NoScript prevents XML?
Foam Head, I think it goes back to the browser detection/sniffing scheme discussed earlier. Its not so much that it is being ignored but rather since not offered during the sniffing as a capable option for the browser, the site is ignoring it and pushing server side compiled version. That would be my guess but I could be wrong and only Giorgio can verify if there is actually a flaw introduced on that one.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
Re: NoScript prevents XML?
Just look in the page source and you'll see whether the XSL transformation has already taken place on the server side.GµårÐïåñ wrote:That would be my guess but I could be wrong and only Giorgio can verify if there is actually a flaw introduced on that one.

BTW:
enforcing (X)HTML: http://www.blizzard.com/store/?rhtml=y (sent as "application/xhtml+xml" for some browsers)
enforcing XML: http://www.blizzard.com/store/?rhtml=n (works in IE, fails in Opera)
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4) Gecko/20090503 Firefox/3.5b4