Closed
Bug 596359
Opened 14 years ago
Closed 14 years ago
Shrink clickable area size for popup allowance
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Natch, Unassigned)
References
(Blocks 1 open bug)
Details
Basically, it may be wise to test the element whose onclick handler would like to open a popup and restrict the popup if the area is too large.
Points to think about:
* Should it be a percentage of the page size?
* Perhaps a fixed size makes more sense?
* Should the onclick element that is making the open call be checked or the element the event originated from? (event bubbling)
I think this may be a good idea to mitigate a lot of popups that wait until you click any part of the page and then use that click to generate a popup ad.
Open suggestion, what does everyone think?
Reporter | ||
Comment 1•14 years ago
|
||
Add to the list:
* Perhaps also check DOM hierarchy position of onclick element.
Comment 2•14 years ago
|
||
I don't think this would work as a way to prevent onclick popup ads. A malicious page could always make lots of small elements, or a small one that follows the mouse.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 3•14 years ago
|
||
(In reply to comment #2)
> I don't think this would work as a way to prevent onclick popup ads. A
> malicious page could always make lots of small elements, or a small one that
> follows the mouse.
Then add to the list invisible (and by that I don't just mean 'display:none' elements, rather elements that don't show on the page, e.g., same colors as the background element) elements. The idea is, if there was a visible smaller-sized element that was clicked on we can be much more confident that the click was intentional. Otherwise it's a trap...
You need to log in
before you can comment on or make changes to this bug.
Description
•