Closed Bug 337368 Opened 18 years ago Closed 18 years ago

Spelling suggestions don't appear when context menu is accessed from keyboard

Categories

(Firefox :: General, defect, P1)

2.0 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 2 alpha3

People

(Reporter: brettw, Assigned: brettw)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 2 obsolete files)

This is because GetRangeParent/Offset use point, but the popup menu handling code sets refPoint on the event. Therefore, rangeParent actually references the first element in the text box. This mess has been cleaned up on trunk, which is why I thought it was fixed.
Hardware: PC → All
Version: Trunk → 2.0 Branch
Attached patch Patch (obsolete) (deleted) — Splinter Review
The additions to nsLayoutUtils are copied from trunk.
Attachment #221718 - Flags: review?(roc)
Attachment #221718 - Flags: approval-branch-1.8.1?
Attachment #221718 - Flags: approval-branch-1.8.1? → approval-branch-1.8.1?(roc)
Flags: blocking-firefox2?
I think you're not using the right frame here. The code that uses "point" expects the frame to be the result of nsEventStateManager::GetEventTarget, so you should pass that to GetEventCoordinatesForNearestView.
Attached patch How about this? (obsolete) (deleted) — Splinter Review
I get the pres context from the shell, and get the event state manager from the pres context. Then I use GetEventTarget to get the frame, which I pass to GetEventCoordinatesForNearestView.
Attachment #221718 - Attachment is obsolete: true
Attachment #221721 - Flags: review?(roc)
Attachment #221721 - Flags: approval-branch-1.8.1?(roc)
Attachment #221718 - Flags: review?(roc)
Attachment #221718 - Flags: approval-branch-1.8.1?(roc)
Comment on attachment 221721 [details] [diff] [review] How about this? + nsCOMPtr<nsPresContext> context Just make it nsPresContext*. Also, set aEvent->point to zero or something before you do this so it's not random in case this fails.
Attachment #221721 - Flags: superreview+
Attachment #221721 - Flags: review?(roc)
Attachment #221721 - Flags: review+
Attachment #221721 - Flags: approval-branch-1.8.1?(roc)
Attachment #221721 - Flags: approval-branch-1.8.1+
Attached patch Patch to check in (deleted) — Splinter Review
Attachment #221721 - Attachment is obsolete: true
Priority: -- → P1
Target Milestone: --- → Firefox 2 alpha3
Whiteboard: check in on trunk+branch
Whiteboard: check in on trunk+branch → check in on branch
Fixed on branch.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: check in on branch
*** Bug 336918 has been marked as a duplicate of this bug. ***
Flags: blocking-firefox2? → blocking-firefox2+
Depends on: 370436
See bug 370436 for a possible issue with this patch....
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: