Page 1 of 1
[INVALID] canvas only updates after tab/window switch
Posted: Sun Sep 30, 2012 11:50 am
by Frank_D
Hello,
NoScript prevents the canvas element from showing changes until you switch to another window/tab. The script below
demonstrates it. It has an onclick handler for the canvas element that pushes the clicked location
into an array an then orders to redraw the canvas with all points recorded so far. So basically each click should add a point
to the canvas. If NoScript is enabled, however, the canvas won't be redrawn (but all JS is executed!) until you switch to
another window/tab. After the switch it will continue to work properly.
Code:
http://pastie.org/private/xjur0j5goyjrzaovrqxfa
To test it:
http://pastehtml.com/view/cdd0eeyxw.html
Greetings,
FrankD
Re: canvas only updates after tab/window switch
Posted: Sun Sep 30, 2012 12:54 pm
by therube
Working for me. Dots get added as I click.
Try a new Profile with only NoScript added in.
Re: canvas only updates after tab/window switch
Posted: Sun Sep 30, 2012 2:15 pm
by Frank_D
I tried it with a fresh profile and NoScript enabled there. It worked. And I also figured out why it doesn't work in the other profile. The Firefox config gfx.blacklist.direct2d;3 that can be set in about:config (restart required to make it effective) in combination with the NoScript extension causes the behaviour described int he first post. If "NoScript enabled" and "gfx.blacklist.direct2d;3" it fails. (So disabling one of them or both will make it work.)
Re: canvas only updates after tab/window switch
Posted: Sun Sep 30, 2012 2:28 pm
by Guest
"gfx.blacklist.direct2d;3"
is set by unchecking
"Options -> Advanced -> General -> Browsing -> Use hardware acceleration when available"
in Firefox.
http://www.abload.de/img/settingsi9swm.jpg
Re: canvas only updates after tab/window switch
Posted: Sun Sep 30, 2012 2:59 pm
by therube
Appears that gfx.blacklist.direct2d is a not defaulted, but perhaps because of the particular video card/driver you are using, it is for you?
Blocklisting/Blocked Graphics Drivers
The
Use hardware acceleration when available setting looks to affect the Preference, gfx.direct2d.disabled, not what you've mentioned.
(There are 1,001 gfx related Preferences & I don't think anyone knows what they all do, much less how one relates to another.)
Re: canvas only updates after tab/window switch
Posted: Mon Oct 01, 2012 10:54 am
by Frank_D
Hello,
I',m sorry. It does not seem to be related to NoScript at all. The "downloaded blacklist" in Firefox seems to disable "Direct2D" and "Layers Acceleration" for all users of the current Catalyst driver (8.982.0.0). As a consequence the strange canvas as described in the first post occurs. Firefox downloads this list at time points unknown to me and it seems to have come together that when I enabled NoScript it also downloaded the list and disabled the hardware acceleration. Sorry for having stolen your time!
Greets
Frank