Closed Bug 115505 Opened 23 years ago Closed 22 years ago

page move to top when right click on link

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 143815
mozilla1.2alpha

People

(Reporter: vlooienbak, Assigned: joki)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.6+) Gecko/20011210
BuildID:    2001121003

The described URL gives you a nice list of search results.
When you move your mouse on a link and you right click to get the menu.
The page moves to the top 

Reproducible: Always
Steps to Reproduce:
1. Go to URL
2. Right click on one of the search results


Actual Results:  The page moves to top and a "wrong" rightclick menu appears
(the standard page one)

Expected Results:  
I want to use the fabulous "open link/frame/page in new window/tab" option)
Confirming, I see this too, Win98SE 2001121003

Notably, I see it if I LEFT-click on some of the links, too.

Also,

1) Dodgy JS/DOM :
    var nav = (document.layers);
    var iex = (document.all);
[...]
    if (nav) { 
        [...]		
    }
    else if (iex) {
        [...]		
    }

2) validator.w3.org has kittens at the sight of this html.
 
3) there's something kinda wacky going on with the layout : I see two vertical
scrollbars at the RHS of the page.

Those things aside, I can't see any obvious cause for this behaviour.
Status: UNCONFIRMED → NEW
Ever confirmed: true
1) seems to be unrelated to this bug
2) same
3) that's the "body {overflow: scroll}" css rule in action.

There are no onclick event handlers anywhere that I can tell..
Also see bug 116256, which is a similar problem with a left click (normal click).
-> OS all. seeing this on today's win2k build.
OS: Windows 98 → All
Target Milestone: --- → mozilla1.2
Attached file testcase
bug seems to be caused by the body{overflow:scroll}.  make the window short
enough that you get a second scrollbar on the right.  scroll down on the second
one, and then right-click on a link

the image is there solely to make the inner area bigger (without it, it is one
line high and no vertical scrollbar).  that's probably another bug.
QA Contact: madhur → rakeshmishra
*** Bug 141139 has been marked as a duplicate of this bug. ***
*** Bug 155075 has been marked as a duplicate of this bug. ***
bz's patch in bug 143815 (clicking link on page with body{overflow:auto} scrolls
to top) fixes this bug

*** This bug has been marked as a duplicate of 143815 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
QA Contact: rakeshmishra → trix
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: