Closed Bug 1524976 Opened 5 years ago Closed 5 years ago

Lookup TabParent by TabParent::GetFocused() in EventStateManager::DoContentCommandEvent()

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla68
Fission Milestone M2
Tracking Status
firefox68 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

(Whiteboard: [fission-event-m1])

Attachments

(1 file)

EventStateManager::DoContentCommandEvent(), in the case of pasting into a content process, obtain the focused LayersId (see bug 1524236), use TabParent::GetTabParentFromLayersId() with that LayersId to find the TabParent.

Priority: -- → P2
Whiteboard: [fission-event-m1]
Fission Milestone: --- → M2
Component: Event Handling → User events and focus handling
Summary: Lookup TabParent by LayersId in EventStateManager::DoContentCommandEvent() → Lookup TabParent by TabParent::GetFocused() in EventStateManager::DoContentCommandEvent()
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED

How do I test this without an old Sun keyboard?

Flags: needinfo?(masayuki)

(In reply to Henri Sivonen (:hsivonen) from comment #2)

How do I test this without an old Sun keyboard?

I don't know. It's used only on macOS, but I don't know how to kick it. How about to write a test like this?

Flags: needinfo?(masayuki)

(In reply to Masayuki Nakano [:masayuki] (JST, +0900) from comment #3)

(In reply to Henri Sivonen (:hsivonen) from comment #2)

How do I test this without an old Sun keyboard?

I don't know. It's used only on macOS, but I don't know how to kick it. How about to write a test like this?

Thanks. This test passes locally. Let's see if it passes on try:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=7942b4a023202d36f30f435beb8574b44ebc4af1

Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aa59ec8e0542
Lookup TabParent by TabParent::GetFocused() in EventStateManager::DoContentCommandEvent(). r=masayuki
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: