Closed Bug 183638 Opened 23 years ago Closed 4 years ago

Plugin can't be notified when the parent window gets activated again

Categories

(Core Graveyard :: Plug-ins, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: xiaobin.lu, Assigned: peterl-bugs)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Build Identifier: 20021204 Current plugin has no way to know when the parent window get activated. An example will be a Java applet has a text field and the user is clicking it to get the focus. When the user is using ALT+TAB key to switch to another window and when it switch back, the original focus to the textfield has been lost. For Active X control, Microsoft provide the interface IOleInPlaceObject, if the control implements it, the container will notify it when it gets actiavted again. Mozilla Plugin should have the same kind of stuff. Reproducible: Always Steps to Reproduce: 1. N/A 2. 3.
One of the ways to do that would be to extend NPP_HandleEvent to windowed plugins. We currently pass focus event to the plugin, but only for windowless plugins.
Assignee: beppe → av
Also, does not the window get WM_FOCUS message?
How would the NPP_HandleEvent message differ from WM_KILLFOCUS? Could you achive what you want by grabbing the browser's top level window through the API and listening for activates?
reassign
Assignee: av → peterl
Priority: -- → P3
Target Milestone: --- → Future
QA Contact: shrir → plugins
Resolving as wont fix, plugin support deprecated in Firefox 85.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.