(In reply to comment #454)
> >     if(browserWindow.document.commandDispatcher.focusedElement)
> >         browserWindow.document.commandDispatcher.focusedElement.blur()
> Great! :)

I don't know how to do the equivalent in C++ :)

> Roman, can you please test with a Windows patch that does not SetFocus(false)
> to everything but rather finds the topmost widget (i.e. the widget just
> before the GetParent became NULL) and call SetFocus(true) on that one?

Done that; no luck.

> widget->GetTopLevelWidget();
> widget->SetFocus(true);

No luck either.

>    nativeWindow hwnd;
>    nsresult rv = window->GetParentNativeWindow(&hwnd);
>    if (NS_FAILED(rv)) return NULL;
>    return (HWND)hwnd;

Couldn't turn this into something that compiles. I have an
nsPluginNativeWindowWin and an nsIWidget, neither of which has a
GetParentNativeWin.

I'm sorry but I don't want to keep poking in the dark. I encourage
everyone who wants to keep trying to follow the instructions in
https://developer.mozilla.org/En/Simple_Firefox_build - they worked
perfectly for me (although there was a lot of waiting involved).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/263435

Title:
  Firefox cannot close tab (using Ctrl-w) when flash content is selected
  on page

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to