Closed Bug 108666 Opened 23 years ago Closed 23 years ago

No context menu when right clicking on form text widgets

Categories

(Core :: Layout: Form Controls, defect, P1)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: doctor__j, Assigned: kinmoz)

References

Details

(Keywords: regression, Whiteboard: fixed on trunk and mozilla0.9.6 branch)

Attachments

(4 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5+) Gecko/20011029
BuildID:    2001102906

Reproducible: Always

Steps to Reproduce:
1. Load the testcase.
2. Right-click on the textbox.
3. See the long and incorrect menu items shown.
Attached file Testcase (deleted) —
Attached image Screenshot (deleted) —
over to kin for triage
Assignee: rods → kin
I see no context menu there at all on current linux.  Blake?
wfm on win2000 buildID: 2001-11-06-03 trunk build.
Now I can't see the context menu popping up at all !!
(using Win32 trunk build 2001110803)
confirming with win2k build 20011108.. (CVS opt and debug)
The context menu is dead for textfields and I get the same JS errors: 
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=57036
Madhur: 
Try it with a recent build in a URL field of a bug.
(It works in the comment field)

kin: Can you try to fix this for 0.9.6 ?
I'm putting it in 0.9.7, but I'll look into it asap.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.7
Attached patch Patch Rev 1 (deleted) — Splinter Review
This was caused by the JS Null string landing. We can no longer take shortcuts
like:

   node.getAttribute("foo").toUpperCase();

because getAttribute() now returns null instead of an empty string when "foo"
doesn't exist as an attribute. Blake, you'll probably want to do a sweep
through some of the browser JS files and make sure this isn't being done else
where ... we already went through this exercise in Composer.

Can I get an r= and sr= from blake and jst?

I'd like to get this in for 0.9.6 if possible.
Changing summary from:

  Very long and incorrect context menu is shown when right-clicking on textbox.

to:

  No context menu when right clicking on form text widgets
Summary: Very long and incorrect context menu is shown when right-clicking on textbox. → No context menu when right clicking on form text widgets
Whiteboard: FIX IN HAND, need r= and sr=
Comment on attachment 57649 [details] [diff] [review]
Patch Rev 1

sr=jst
Attachment #57649 - Flags: superreview+
Whiteboard: FIX IN HAND, need r= and sr= → FIX IN HAND, need r=
Comment on attachment 57649 [details] [diff] [review]
Patch Rev 1

r=blake
Attachment #57649 - Flags: review+
Whiteboard: FIX IN HAND, need r= → FIX IN HAND, ready for checkin
Checked in fix on trunk:

  mozilla/xpfe/communicator/resources/content/nsContextMenu.js  revision 1.44

I'm going to leave this bug open for now in hopes that I can land it on the
0.9.6 branch.
Whiteboard: FIX IN HAND, ready for checkin → fixed on trunk
Checked in fix on MOZILLA_0_9_6_BRANCH:

  mozilla/xpfe/communicator/resources/content/nsContextMenu.js  revision 1.43.2.1
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: fixed on trunk → fixed on trunk and mozilla0.9.6 branch
verified fixed in trunk build : 2001-11-09-06trunk -- win2000
sorry ...... that is build ID: 2001-11-19-06trunk on win2000
marking verified fixed in win2000 branch build : 2001-11-20-03-0.9.6
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: