Closed Bug 78360 Opened 23 years ago Closed 21 years ago

JavaScript Error: gContextMenu has no properties

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: alexeyc2003, Assigned: neil)

Details

(Keywords: polish)

Attachments

(2 files)

OS: Win2K
Build: 2001043020

JavaScript Console message:
Error: gMessagePaneContextMenu has no properties

I found gMessagePaneContextMenu being used inside mailWindowOverlay.xul

Steps to reproduce:
1. select a message.
2. right click inside messagepane to bring up context menu.
3. hover mouse either over "Move To" or "Copy To" menu item so that submenu expands.
4. Click inside messagepane.

Reproducible: Always
Alternative steps to reproduce:
1. select a message.
2. right click inside messagepane to bring up context menu.
3. hover mouse either over "Move To" or "Copy To" menu item so that submenu expands.
4. Hover mouse over an item inside the submenu so it expands too.
5. Hover mouse over some other item in root menu so that both submenus disappear.
QA Contact: esther → stephend
This is XP code. Seth, if this is an easy fix and you know where to look, can
you describe it here, and I might take a look myself.
OS: Windows 2000 → All
Hardware: PC → All
gMessagePaneContextMenu variable has been renamed to gContextMenu.

So now I'm seeing the following error every time in context menu a parent of a
submenu gets closed:

Error: gContextMenu has no properties

gContextMenu is now being used inside the following files:

/mailnews/base/resources/content/mailWindowOverlay.xul
/mailnews/base/resources/content/mailContextMenus.js
/mailnews/base/resources/content/mailNavigatorOverlay.xul

However, as per my original bug report the code that generates the error is
probably still somewhere in mailWindowOverlay.xul

CCing ben and racham since they might be familiar with the use of this variable.
Summary: JavaScript Error: gMessagePaneContextMenu has no properties → JavaScript Error: gContextMenu has no properties
Attached patch Proposed patchSplinter Review
The error is caused by the popuphidden handler for the messagepaneContext popup.
However, the cause of the error is revealed by the previous strict JS warning
(always assuming that you have remembered to turn them on :-)
gContextMenu never gets declared in the standalone message window.
The 3pane windows declare gContextMenu indirectly because the sidebar overlays
chrome://communicator/content/contentAreaContextOverlay.xul
Keywords: patch, polish, review
Attachment #84417 - Flags: review+
Attachment #84417 - Flags: superreview?(bienvenu)
Attachment #84417 - Flags: superreview?(bienvenu) → superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
This is back, at least in 2003-12-18 and 2003-12-28 on Win2k.
The steps to reproduce this are still valid.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #138073 - Flags: superreview?(bryner)
Attachment #138073 - Flags: review+
Assignee: sspitzer → neil.parkwaycc.co.uk
Status: REOPENED → NEW
Attachment #138073 - Flags: superreview?(bryner) → superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: