Closed Bug 559758 Opened 15 years ago Closed 15 years ago

NPCocoaEventFocusChanged not sent at the correct times

Categories

(Core Graveyard :: Plug-ins, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jaas, Assigned: jaas)

References

Details

Attachments

(1 file)

Our NPCocoaEventFocusChanged does not match WebKit's. Essentially it should match first responder status, which is similar to per window focus. Right now it is being sent based on application focus.
Attached patch fix v1.0 w/tests (deleted) — Splinter Review
The main behavioral difference here is that the plugin retains focus (in-page-focus) even when its top-level window is not activated. NS_FOCUS_CONTENT and NS_BLUR_CONTENT correspond to app-wide focus, so we can't simply use that. I'm pretty sure WebKit has this directly corresponding to Cocoa firstResponder status.
Attachment #440695 - Flags: review?(roc)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: