Closed Bug 529806 Opened 16 years ago Closed 15 years ago

the popup blocker numbers keep going up when clicking on a popup with keypress

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: M.HEMAL, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 When you click on a link that opens a pop up and immediately realize that you dont want to open that, you press escape. after keeping escape pressed for a few seconds, the number of pop ups blocked by firefox keeps going up. then onwards, the press any key on the keyboard and still the number will go up. Reproducible: Always Steps to Reproduce: 1. Create a HTML page and create a link with Javascript event onkeypress="window.open(this.href);return false;" 2.run on browser, right click and immediately press any key. 3.keep pressing anyone key to see the number of pop ups opened going up. Actual Results: Number of popups going up goes up, though havent seen the max till where it goes. the max i was able to hold the key to see the the numbers could go up to was 3000. Expected Results: should only show how much number of pop ups were blocked. <p><a href="somefile.pdf" onclick="window.open(this.href);return false;" onkeypress="window.open(this.href);return false;">some link name</a></p>
With the event on the link I am not seeing the event fire on a key press: <html> <head> <script type="text/javascript"> </script> </head> <body> <a href="http://mozilla.org" onkeypress="window.open(this.href);return false;"> Hello!</a> </body> </html> With the event on body I am seeing the pop counter increment correctly on each key press. <html> <head> <script type="text/javascript"> </script> </head> <body onkeypress="window.open(this.href);return false;"> <a href="http://mozilla.org">Hello!</a> </body> </html> Let me know if this sample isn't correct. If you are seeing different results with this sample code please try the samples in safe mode -> http://support.mozilla.com/en-US/kb/Safe+Mode
Reporter -> Are you still experiencing this issue? Did the results change with Safe Mode?
Sorry for a late revert. I have tried the same code that you have given and it produces the same result. (In reply to comment #1) > With the event on the link I am not seeing the event fire on a key press: > <html> > <head> > <script type="text/javascript"> > </script> > </head> > <body> > <a href="http://mozilla.org" onkeypress="window.open(this.href);return false;"> > Hello!</a> > </body> > > </html> > > With the event on body I am seeing the pop counter increment correctly on each > key press. > > <html> > <head> > <script type="text/javascript"> > </script> > </head> > <body onkeypress="window.open(this.href);return false;"> > <a href="http://mozilla.org">Hello!</a> > </body> > > </html> > > Let me know if this sample isn't correct. If you are seeing different results > with this sample code please try the samples in safe mode -> > http://support.mozilla.com/en-US/kb/Safe+Mode
I'm not clear on what you mean with the 'same result'. The pop-up counter incrementing or the same results as I listed? Did you try the sample pages in Safe Mode? (In reply to comment #3) > Sorry for a late revert. I have tried the same code that you have given and it > produces the same result. > > > > (In reply to comment #1) > > With the event on the link I am not seeing the event fire on a key press: > > <html> > > <head> > > <script type="text/javascript"> > > </script> > > </head> > > <body> > > <a href="http://mozilla.org" onkeypress="window.open(this.href);return false;"> > > Hello!</a> > > </body> > > > > </html> > > > > With the event on body I am seeing the pop counter increment correctly on each > > key press. > > > > <html> > > <head> > > <script type="text/javascript"> > > </script> > > </head> > > <body onkeypress="window.open(this.href);return false;"> > > <a href="http://mozilla.org">Hello!</a> > > </body> > > > > </html> > > > > Let me know if this sample isn't correct. If you are seeing different results > > with this sample code please try the samples in safe mode -> > > http://support.mozilla.com/en-US/kb/Safe+Mode
Hemal -> Can you provide an update on this issue?
(In reply to comment #5) > Hemal -> Can you provide an update on this issue? I guess this is not happening right now. Though will give you an update after checking it once again... I reckon you still try using the same code i have provided. <p><a href="somefile.pdf" onclick="window.open(this.href);return false;" onkeypress="window.open(this.href);return false;">some link name</a></p>
Hemal -> Can you provide an update on this issue? Is the issue resolved?
Closing bug as WFM - if you are still experiencing this issue or have more information to provide feel free to post back here and we can re-open the bug. You can also get assistance by visiting the Firefox help site -> http://support.mozilla.com/en-US/kb/Ask+a+question
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.