Closed Bug 526633 Opened 16 years ago Closed 16 years ago

unnecessary code for NS_ACTIVATE/NS_DEACTIVATE in nsObjectFrame::HandleEvent()

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: karlt, Assigned: jaas)

Details

Attachments

(1 file)

nsObjectFrame::HandleEvent() has code (for non XP_WIN platforms) to handle NS_ACTIVATE/NS_DEACTIVATE. http://hg.mozilla.org/mozilla-central/annotate/3d5cde53f929/layout/generic/nsObjectFrame.cpp#l1849 which is used (only for Mac) in ProcessEvent() when the event has a .nativeMsg: http://hg.mozilla.org/mozilla-central/annotate/3d5cde53f929/layout/generic/nsObjectFrame.cpp#l4224 However, these events do not have a .nativeMsg with Cocoa (or GTK). http://hg.mozilla.org/mozilla-central/annotate/3d5cde53f929/widget/src/cocoa/nsChildView.mm#l2414 I assume the code on nsObjectFrame::HandleEvent() is unnecessary (if it ever did anything) because NS_FOCUS_CONTENT and NS_BLUR_CONTENT notify the plugin of focus changes: http://hg.mozilla.org/mozilla-central/annotate/3d5cde53f929/layout/generic/nsObjectFrame.cpp#l4160
Assignee: nobody → joshmoz
Attached patch fix v1.0Splinter Review
Attachment #411356 - Flags: review?(roc)
OS: Mac OS X → All
Hardware: x86 → All
Status: NEW → RESOLVED
Closed: 16 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: