Closed
Bug 319315
Opened 19 years ago
Closed 19 years ago
Context menu from spellchecker keeps growing
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mossop, Unassigned)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
bugs
:
review+
bugs
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
When testing the spellchecker from bug 302050 I came across an issue with the context menu of textfields. It seems that old suggestions are not removed from the menu. After it has made suggestions they remain to be seen when right clicking on a totally different misspelling, or anywhere on the page.
A similar thing happens with the languages sub menu which has languages added to it each time the context menu is opened.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051205 Firefox/1.6a1 ID:2005120522
Reporter | ||
Comment 1•19 years ago
|
||
Some reproduction steps:
1. Open firefox and open a page with a text area in it. There will be no problem with this.
2. Open a second tab and open a page with a text area in it.
Whenever you right click on the text area in the second tab, the dictionaries list will grow. On the text area on the first tab the dictionaries list will remain constant.
Summary: Context menu from specllchecker keeps growing → Context menu from spellchecker keeps growing
Comment 2•19 years ago
|
||
It sounds like the popup hiding event is not getting called (this is what erases the old items).
I was unable to reproduce this on my Linux system, however. I'll try on Windows later when I get a build going.
Reporter | ||
Comment 3•19 years ago
|
||
I've done some tracking down on this and determined that its not really the fault of the spell checking code. It seems that in certain situations the context menu gets initialised twice when its shown, and not uninitialised in between. I've filed bug 320295 on this and I expect that if that gets fixed then this problem will be solved.
Depends on: 320295
Reporter | ||
Comment 4•19 years ago
|
||
This is a workaround patch that I'm using on my system. When the context menu is popped up it first checks to see if it has previously been correctly hidden and if not hides the old one.
This might be useful if bug 320295 is not fixed before the spellchecker is to be included in the standard firefox build.
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•19 years ago
|
||
I didn't realize Dave already put a patch here. This patch just cleans up the menu when it is shown again. I don't think there is any advantage of my way over Dave's, so I'll just use this since I already have it. This also as a minor enhancement to the spellchecker UI functions that inits the variables before the init function is called.
Attachment #205987 -
Attachment is obsolete: true
Attachment #219937 -
Flags: review?(bugs)
Updated•19 years ago
|
Attachment #219937 -
Flags: approval-branch-1.8.1?(bugs)
Comment 6•19 years ago
|
||
Attachment #219937 -
Flags: review?(bugs)
Attachment #219937 -
Flags: review+
Attachment #219937 -
Flags: approval-branch-1.8.1?(bugs)
Attachment #219937 -
Flags: approval-branch-1.8.1+
Comment 7•19 years ago
|
||
Fixed on 1.8 branch and trunk.
You need to log in
before you can comment on or make changes to this bug.
Description
•