Page 1 of 1

Fonts Inspector triggers ClearClick

Posted: Thu Aug 01, 2013 3:27 am
by Fanolian
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20130731 Firefox/25.0
NoScript 2.6.6.9rc1

Steps to reproduce:
0. Install NoScript 2.6.6.9rc1 and leave settings as default in a new profile in Nightly.
1. Open Fonts Inspector (Ctrl-Shift-I, then navigate to Fonts in the right pane).
2. Randomly click/highlight some text in the pane, then quickly switch to another tab (Rules/Computed/Box Model).

Acutal Result:
ClearClick is triggered. In browser console I see a log message:
[NoScript ClearClick] Swallowed event mousedown on chrome://browser/content/devtools/inspector/inspector.xul (rapid fire from data: in 400ms)
or if I click within Fonts Inspector:
[NoScript ClearClick] Swallowed event mousedown on chrome://browser/content/devtools/fontinspector/font-inspector.xhtml (rapid fire from data: in 400ms)

Expected Result:
Same behaviour as other tabs in the pane. Either All or none trigger ClearClick.

Thanks in advanced.

Re: Fonts Inspector triggers ClearClick

Posted: Mon Aug 05, 2013 12:41 am
by Thrawn
This is one for Giorgio. Perhaps there shouldn't be clickjacking protection for chrome:// URLs.

ClearClick does look for rapid clicking, so probably the best workaround is to click a bit more slowly.