Strange behaviour with CSS

Bug reports and enhancement requests
Post Reply
Masso
Posts: 2
Joined: Fri Nov 14, 2014 2:26 pm

Strange behaviour with CSS

Post by Masso »

Hello,

I've created a webpage with embedded external css-stylesheet. In the css-file, I defined the image for the cursor.

Code: Select all

    body {
       ...
       cursor: url(http://www.truck-trial-modelle.de/grafiken/man.cur), default;
       ...
    }
It doesn't matter if the webpage is whitelisted or not in NoScript, the image for the cursor isn't displaying.
Only if i disable ClearClick in NoScript, the image for the cursor is displaying.

Maybe a Bug?

URL: http://www.truck-trial-modelle.de/
Browser: Firefox 33.1 on Windows+Linux
NoScript: 2.6.9.3

Greetings, Masso
Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Strange behaviour with CSS

Post by therube »

It's the ClearClick setting that is causing it.
If either Untrusted or Trusted are enabled, the cursor fails to change.
No idea why?

NoScript | Options | Advanced -> ClearClick
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 NT 5.1; rv:33.0) Gecko/20100101 SeaMonkey/2.30
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Strange behaviour with CSS

Post by barbaz »

Try giving the body of that page an id attribute
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27
Masso
Posts: 2
Joined: Fri Nov 14, 2014 2:26 pm

Re: Strange behaviour with CSS

Post by Masso »

Why should i change a valid W3C standard, if the problem is created by NoScript?

http://jigsaw.w3.org/css-validator/vali ... g=&lang=en
Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Strange behaviour with CSS

Post by Giorgio Maone »

Because of this.
Actually, upon review, I'm gonna change this countermeasure in the near future: specifying an id won't work anymore, but custom cursors won't be affected unless there's a subdocument embedded in the page.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Strange behaviour with CSS

Post by barbaz »

Giorgio Maone wrote:custom cursors won't be affected unless there's a subdocument embedded in the page.
Personally, I'd like to leave this protection on regardless of subdocument presence. When this change is made, could we please have an about:config-only preference that toggles whether the cursorjacking protection applies to all pages or only pages with subdocuments?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Strange behaviour with CSS

Post by Giorgio Maone »

barbaz wrote:
Giorgio Maone wrote:custom cursors won't be affected unless there's a subdocument embedded in the page.
Personally, I'd like to leave this protection on regardless of subdocument presence. When this change is made, could we please have an about:config-only preference that toggles whether the cursorjacking protection applies to all pages or only pages with subdocuments?
OK. Applying it independently from subdocument presence will probably add little or no security, but it's likely to be more efficient (no need to hit the DOM for checking).
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Post Reply