[Webkit-unassigned] [Bug 40473] New: [Qt] In Carbon event model, there is no "lose focus" event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 11 05:18:03 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40473

           Summary: [Qt] In Carbon event model, there is no "lose focus"
                    event
           Product: WebKit
           Version: 420+
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: qt-info at nokia.com
                CC: vestbo at webkit.org


In the Carbon event model, my NPP_HandleEvent function receives "get focus" events, but never receives any "lose focus" events. 

These events correspond to NPEventType_GetFocusEvent and NPEventType_LoseFocusEvent in npapi.h.

In PluginViewMac.cpp, there is a setFocus() function that sends a "getFocusEvent" type of event, but there's no corresponding "loseFocusEvent" event sent anywhere in the file (or in any other file for that matter). 

To reproduce the problem, your plugin's NPP_HandleEvent function should listen for getFocusEvent and loseFocusEvent types of events. When you click in the plugin's region, your plugin will receive a getFocusEvent event. Clicking outside the plugin's region should send a loseFocusEvent type of event, but none is received by the plugin. 

Apparently Chrome has (or had) a similar bug: 
http://code.google.com/p/chromium/issues/detail?id=41462

(Bug reported against Qt version 4.6.2)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list