Comment 463 for bug 263435

Revision history for this message
In , 7-postmaster-alishomepage-com (7-postmaster-alishomepage-com) wrote :

(In reply to comment #449)
> I think this is the wrong approach though;
> https://developer.mozilla.org/en/Code_snippets/Finding_Window_Handles suggests
> that there is only one native window in Firefox 4. I reckon something like my
> "widget->GetParent()" snippet is required.

The page indicates indeed that the parent HWND is the browser itself (and not the Web page nor the tab). I guess we need to focus some "focusable" element (text box, text, ... and NOT a whole window).

The CPP file has a GetProp of NS_PLUGIN_WINDOW_PROPERTY_ASSOCIATION on the HWND. Can you please check if the HWND has other properties assigned, perhaps we can find the hosting Web page that way...

Also, did anyone check the patch for GTK2 (Linux)? If the patch for Linux seem to work fine, can anyone check it on to the trunk?

Cheers

S. Ali Tokmen
http://ali.tokmen.com/