Will NoScript block a dropdown menu hidden behind an image?

General discussion about the NoScript extension for Firefox
Post Reply
sharath
Posts: 2
Joined: Tue Jun 19, 2012 6:26 am

Will NoScript block a dropdown menu hidden behind an image?

Post by sharath »

Hi,
I am a web developer. I wanted to have a fancy dropdown image for a selection list on my website. The user selects the country from where he is connecting to the site and I use that info to provide a localized version of the site to the user. I have a select box with opacity 0 and an image over it.

Code: Select all

<div class="theFancyDropdownImage">
<select style="opacity:0">
option1
option2
.
.
.
</select>
</div>
When the user clicks on the dropdown image, the menu will be shown. Will this action be flagged by NoScript as clickjacking? Currently it is not being flagged. But I just want to be sure that this implementation will not cause any problems.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Will NoScript block a dropdown menu hidden behind an ima

Post by Thrawn »

Hi, sharath.
sharath wrote:Hi,
I am a web developer. I wanted to have a fancy dropdown image for a selection list on my website. The user selects the country from where he is connecting to the site and I use that info to provide a localized version of the site to the user. I have a select box with opacity 0 and an image over it.

When the user clicks on the dropdown image, the menu will be shown. Will this action be flagged by NoScript as clickjacking? Currently it is not being flagged. But I just want to be sure that this implementation will not cause any problems.
I'm not the expert (Giorgio is), but I'm pretty sure that this is fine, because it's not cross-site. Also, ClearClick is concerned with frames and plugins, whereas you're just using plain HTML div and select. You're not doing anything that perfectly ordinary JavaScript couldn't do (eg by putting an onClick event on the image and creating the dropdown that way), therefore ClearClick isn't likely to care.

Thanks for thinking to check compatibility :).
======
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:11.0) Gecko/20100101 Firefox/11.0
sharath
Posts: 2
Joined: Tue Jun 19, 2012 6:26 am

Re: Will NoScript block a dropdown menu hidden behind an ima

Post by sharath »

Thanks for the quick reply.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Post Reply