Closed Bug 79842 Opened 23 years ago Closed 23 years ago

Unable to get caret in dialog boxes

Categories

(Core :: XUL, defect)

Sun
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: squash, Assigned: johng)

References

Details

Attachments

(6 files)

I am using SuSE 7.1 Sparc on an Ultra 5. I compiled mozilla with QT enabled, 
version  2.3.0.
When running the browser, I am not able to get a cursor in any dialog box. 
This includes the location bar, the Open Location window, or a text input 
field on a bookmarked web page.
My compile options are:
 ./configure  --enable-toolkit=qt --without-gtk --disable-tests 
--enable-ultrasparc --disable-mailnews --enable-optimize=-O2 --disable-debug 
--with-qt --with-qtdir=/opt/qt-2.3.0
=>johng
Assignee: asa → johng
Blocks: qt
Component: Browser-General → XP Toolkit/Widgets
QA Contact: doronr → timeless
Summary: Unable to get cursor in dialog boxes → Unable to get caret in dialog boxes
I can't reproduce this on an x86 and I don't have an UltraSPARC to play with. 
Have you tried a debug build (reconfigure without the --disable-debug and
--enable-optimize=-O2 options, make clean and then make) to see if this changes
anything?  Although I can't be much help if the problem turns out to be platform
specific (and it looks like it might), I'd be happy to give you whatever
assistance I can - please keep me up to date with any additional messages or
other information that may be related to this.  I do know the Qt code quite
well, so I may be able to point you in the right direction to track down the
root cause.

Regards,
	John
Status: UNCONFIRMED → NEW
Ever confirmed: true
Verified that build works correctly with gtk, and current builds still do not 
work with qt-2.3.0.
confiugre line that works is --disable-debug --without-mailnews

Tested compiling with:
--enable-toolkit=qt --with-qt --with-qtdir=/usr/lib/qt-2.3.0 
--without-mailnews 
same problem. Side note, I can use Alt-F to open the file menu, and cursor 
keys and hotkey shortcuts work from there. If I choose Open Location, it gives 
me a window but I cannot click into it, tab into it, or find any other way to 
type in it.
yeah, i had the same problem, you can use the sidebar and google to browse the 
web. i'll try to investigate this...
Tested on smp x86, suse 7.1, same comfigure options, and i have the same problem.
Added my home email as a CC, since today is my last day at Corel...
I managed to reproduce this on my system.  It turns out to be a focus problem,
where the Qt TopLevel windows were not sending the proper initial Focus events
to their listeners in Mozilla.  The attached patches fix this.

There is also a fix for an unreported bug where model dialogs in one Mozilla
task are modal for all Mozilla tasks.  The patch for nsQWidget.cpp fixes that.
Blocks: 84655
r=blizzard
Committed patches to CVS.  Since the original bug was reported on SPARC and SusE 
7.1, I am unable to re-test this myself.  Please retest.
Focus now works - sortof... I am able to click and type in the location box and form entry boxes, but sometimes the cursor will be there flashing but will not allow text to be entered. Example, a javascript focus to an entrybox, cursor flashes in the box but text does not go.Possibly unrelated, entries made in the location bar are ignored, I have to open a URL with the file->open menu.
The location bar is working for me on X86 (Debian).  Can you provide a more 
specific example of a case where the Caret is present but text may no be 
entered?  I am not a Javascript hacker and don't really have the time to become 
one 8^)...
*** Bug 85881 has been marked as a duplicate of this bug. ***
The patches for this are checked in, so I am closing this bug.  Please open a 
new bug, assigned to jcgriggs@sympatico.ca, for any remaining issues with 
carets.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: