Closed Bug 88081 Opened 24 years ago Closed 24 years ago

Focus doesn't work properly in the ActiveX control

Categories

(Core Graveyard :: Embedding: ActiveX Wrapper, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adamlock, Assigned: adamlock)

References

Details

Attachments

(2 files)

The activex control doesn't allow form fields to be selected or typed into.
*** Bug 88141 has been marked as a duplicate of this bug. ***
Dave, if I add an Activate after creation will that be sufficient for making focus work? The control is embedded in someone else's window so it won't know when it's parent frame (if there is one) has been activated or deactivated.
Summary: Focus doesn't work properly in the control → Focus doesn't work properly in the ActiveX control
Yes, an embeddor wants to notify the embedded Gecko of activates and deactives, otherwise the focus controller will lock down commands, selection, typing, etc. I'm not 100% certain that is the problem here, but it definitely what you should try first.
I'll add some activation code to initialisation. One thing I won't be able to do is know when the host frame is activated/deactivated because it belongs to the client and they won't bother to notify me.
then selections won't grey out for an inactive window, among other things.
This bug makes the activex control pretty unusable for forms. I am having to use a much older version of mozilla for my app because this has been broken for some time now. Any idea on when this might get fixed?
Depends on: 101571
Chris, can you review the patch please? It fixes the gross deficiencies in the control so focus, tabbing and keyboard more or less work correctly. I still haven't put in a proper implementation of nsIWebBrowserChromeFocus so tabbing out of the control might not work but everything else appears to function. Bug 101571 covers a problem I discovered with tabbing when embedding Gecko in a dialog box.
Comment on attachment 50735 [details] [diff] [review] Focus fix for the control Looks like the right thing, r=saari
Attachment #50735 - Flags: review+
Comment on attachment 50888 [details] [diff] [review] Slightly updated version implements nsIWebBrowserFocus properly, submitting for sr sr=rpotts@netscape.com looks good to me...
Attachment #50888 - Flags: superreview+
Fix is checked in. Bug 101571 will still have to be sorted out before the control will work well in dialog boxes.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
There still seems to be a problem when included in an ActiveX control in a dialog. I have downloaded the build for Oct 9, 2001 and the problem still exists (sample available). CAxWindow *browserControlWindow = new CAxWindow(m_hWnd); HRESULT hResult = browserControlWindow->CreateControl(L"Mozilla.Browser.1"); CComQIPtr<IWebBrowser2, &IID_IWebBrowser2> pWebBrowser; browserControlWindow->QueryControl(IID_IWebBrowser2, reinterpret_cast<void**>(&pWebBrowser)); pWebBrowser->Navigate(T"test.html",0,0,0,0);
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: