Closed Bug 285069 Opened 19 years ago Closed 11 years ago

Right clicking in java applet (ie, Runescape) gives "normal rightclick" popup

Categories

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

1.8 Branch
x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: louisrousseau, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.7.6) Gecko/20050226 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.7.6) Gecko/20050226 Firefox/1.0.1

Right clicking in the Runescape client java applet makes a "normal" right-click
context menu appear, while only be RS's own right-click menu should be visible.

I've had this problem on the three machines I have tried it on, all with a few
previous release builds and the current one listed above:
Windows XP/SP2, running JRE 1.5 (latest build at time of writing)
Windows 98SE, running JRE 1.4, then upgraded to 1.5 to no avail
Windows 98SE, running JRE 1.3, with all the extensions disabled (I am going to
update the JRE shortly to see if that makes any difference).

I can also reproduce this same condition with the announcements ticker on
http://cegep-chicoutimi.omnivox.ca although it doesn't have the annoying effect
it does on Runescape.

Reproducible: Always

Steps to Reproduce:
1.Log into the Runescape mmorpg. (Create character if necessary)
2.Make sure the mouse settings are for two-button rodents. (The wrench icon in
the lower right corner of the applet shows the settings menu)
3.Right-click anywhere in the game screen.
Actual Results:  
Runescape's right-click menu shows up, but so does a standard right-click
context menu.

Expected Results:  
Only show Runescape's right click menu.
*** Bug 288705 has been marked as a duplicate of this bug. ***
The runescape program is written in MS Java, the site needs to re-write the
program for Sun Java. 
Status: UNCONFIRMED → NEW
Component: General → English US
Ever confirmed: true
Product: Firefox → Tech Evangelism
cleaned up summary for tech evang
also see bug 248640 bug 256763 and bug 264286
Summary: standard context menu appears while only java applet should act upon right click → runescape.com - right clicking in game gives "normal rightclick" popup
Go to Tools->Options->WebFeatures. Click the 'advanced' button next
to 'enable javascript' and tick 'disable or replace context menus'. It will then
work ok.

For some reason this javascript option also seems to change the
behaviour of java applets even though javascript and java are completely
different things.

I would say that technically this is a bug, since changing a javascript option
shouldn't really change the behaviour of java applets too. It's certainly
confusing at any rate. But easy to work around.

This isn't a runescape specific problem, this will happen with any java applet
if that tickbox is not ticked.
Assignee: firefox → english-us
QA Contact: general → english-us
I am not sure how the Java part of this works, but from the looks of it in Visual Studio's debugger, we should allow java applets to prevent the context menu. Or well, 'should', that's up to the developers of course. That would fix this bug, in any case. Either that or using a better description for what this preference actually does.

If we want applets to have context menus, we should check whether the targetNode is an nsHTMLAppletElement, here:

http://lxr.mozilla.org/seamonkey/source/content/xul/content/src/nsXULPopupListener.cpp#236

Somewhere around line 255 we could check the target node.

So, I think this bug is in xul core, and I'm moving it there to have them see what should be done with it.

I would write a patch myself if I knew the required C and/or C++, which I don't.


Possibly, bug 250753 is a dupe. CC-ing reporter to see if the problems are the same (I can't really tell because I don't know VNC and I do know RuneScape to an extent).
Component: English US → Event Handling
Product: Tech Evangelism → Core
Version: unspecified → 1.8 Branch
Modifying summary to reflect universal problem. Keeping Runescape keyword so people find this bug. Reassigning to default QA and assignee (oops!).

Moved to 1.8 branch as I reproduced on a debug Firefox 1.5 build. Possibly move to trunk and platform/os all/all. Qawanted.
Assignee: english-us → events
Keywords: qawanted
QA Contact: english-us → ian
Summary: runescape.com - right clicking in game gives "normal rightclick" popup → Right clicking in java applet (ie, Runescape) gives "normal rightclick" popup
*** Bug 328691 has been marked as a duplicate of this bug. ***
It is not just the Java plugin, it happens to the Adobe Reader 7.0 PDF plugin too, but only if you open the search panel on the right and right-click the search panel within the Adobe Reader 7.0 plugin
*** Bug 315219 has been marked as a duplicate of this bug. ***
Assignee: events → nobody
QA Contact: ian → events
Is this still a problem ?
Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20130721 Firefox/25.0

I can't reproduce the issue on the latest Nightly as described in Comment 0 (I tried with several java applets).

As for the issue described in Comment 8 - that is an Adobe reader issue (reproducible also on Opera).

Setting the Status of this bug to Resolved Worksforme. (if anyone still encounters the issue or have more information to provide, please reopen).
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: qawanted
Resolution: --- → WORKSFORME
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.