Closed Bug 128659 Opened 23 years ago Closed 23 years ago

keys don't work in content area

Categories

(Core :: DOM: Core & HTML, defect, P1)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: blizzard, Assigned: bugzilla)

References

Details

(Keywords: access, smoketest)

Attachments

(1 file, 1 obsolete file)

Steps to reproduce: o start the browser o load a site from bookmarks o you can't scroll the content area using the keys There's also an error in the JS console: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.focus]"... Backing out the checkin to nsGlobalWindow.cpp fixes this. Please either fix it, or back it out with the associated checkins.
Keywords: smoketest
can't navigate with arrow keys in a form either.
This is on the 0.9.9 branch, too.
changing the priority to P1
Priority: -- → P1
I backed this out of 0.9.9.
The function widget/src/gtk/nsIWidget::IsEnabled return false everytime we try to set the focus on the window! This because mWidget is null and the default return value is false. If I return true when mWidget is null fix the problem. Any advise from a gtk specialist would be appreciate...
That code hasn't been written for gtk at all. That code has never worked.
bug 128726, bug 128737 and bug 128729 all seem to be cured by backing out v1.492 of nsGlobalWindow.cpp
I could confirm Comment #1 with today's trunk build ( March 3rd 2002 ). When I wanted to fill a bugreport with that build I couldn't use the lef and right arrow keys as well as copy & past filled always the url bar but not the form field. Build on Linux Mandrake 8.0 gcc-2.95.3 gtk-1.2.10
Christopher, which code do you mean, the nsIWidget::IsEnabe?
Attached patch Proposed fix, v1 (obsolete) — Splinter Review
This patch will avoid the function IsEnable to return false when the widget is not really disable.
I really need to fix this problem without backing out my change in nsGlobalWIndows.cpp which is needed to avoid problem with the message compose window and the mailnews print window. I am currently using a trunk build with that patch to submit those comment and for me it works fine. WOuld be nice if somebody could review it...
Status: NEW → ASSIGNED
I should have said:... a trunk linux build...
*** Bug 128729 has been marked as a duplicate of this bug. ***
*** Bug 128726 has been marked as a duplicate of this bug. ***
*** Bug 128737 has been marked as a duplicate of this bug. ***
I have also verified that the patch fix all the dup bugs
ditto. built with the patch, tested all issues mentioned in the dups: All works.
Comment on attachment 72329 [details] [diff] [review] Proposed fix, v1 >- *aState = mWidget && GTK_WIDGET_SENSITIVE(mWidget) ? PR_TRUE : PR_FALSE; >+ if (mWidget) >+ *aState = GTK_WIDGET_SENSITIVE(mWidget) ? PR_TRUE : PR_FALSE; >+ else >+ *aState = PR_TRUE; How about just: *aState = !mWidget || GTK_WIDGET_SENSITIVE(mWidget); (C++ 5.15 says that || and && yield a boolean, which is implicitly converted to 0 or 1 because of section 4.7, clause 4. Are there compilers where this doesn't work right?) I'd be interested to hear what danm and blizzard think of the idea, though (see bug 126786).
dbaron, I am fine with your style change. All I need at this point is a linux guy that can give me a R=. But if not body find a problem with that patch until tonight, I'll probably check it in anyway before tomorrow morning build.
*** Bug 128759 has been marked as a duplicate of this bug. ***
blizzard, should we be doing something else entirely if the widget doesn't have an mWidget?
I took a close look at danm implementation of isEnable and GetEnable done for bug 126786 on which my work was based on. I found some inconsistence in the fact that sometime those function return true or false as default value whatever if the function was fully or not implemented. Sofar problem show up only on linux but we might have problem as well on BeOS and Cocoa. Before danm implements nsIWidgetIsEnable, we weren't able to query if a widget was enable or not. We just presumed widget were always enable. Therefore, if we want to not break that assumption, we must still say a widget is enable by default unless we now it's realy disabled. If we cannot determine if a widget is enable or disable, the function IsEnable must return TRUE and depending of the case an error code. This is not the case for the windows, beos, linux and cocoa implementation (but doesn't seems to cause any harm on Windows). I'll post a patch that cleanup all that...
Attached patch Proposed fix, v2Splinter Review
Attachment #72329 - Attachment is obsolete: true
danm, please review.
- *aState = mWidget && GTK_WIDGET_SENSITIVE(mWidget) ? PR_TRUE : PR_FALSE; + *aState = !mWidget || GTK_WIDGET_SENSITIVE(mWidget); mWidget is used by exactly one widget right now, the scrollbar. Do we ever disable scrollbars? I would just suggest not even checking that. I'm going to have to hack on this soon, anyway so I'm just going to replace any placeholders.
If I coreclty understand your comment, you are suggesting me to just always set aState to true? But then, why to we have code to disable the widget (scrollbar) in the function nsIWidget::Enable? I think my fix would be more consistent with the actual code even if it's kind of no sense!
If you want to leave it as is, that's fine, even though it's not going to be used and I'm going to go in there with a hammer and chisel sometime very soon.
Comment on attachment 72357 [details] [diff] [review] Proposed fix, v2 r=bryner
Attachment #72357 - Flags: review+
*** Bug 128824 has been marked as a duplicate of this bug. ***
I have backed out my previous checkin for nsGlobalWindow.cpp which expose this problem as I wasn't able to get the needed review and approval on time before today's verification build. I'll move the proposed fix for the underline problem into bug 109081 which is now reopen.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
This bug is still present in the 2002030406 linux build.
Right, the fix miss that build, next one will be ok...
Comment on attachment 72357 [details] [diff] [review] Proposed fix, v2 sr=blizzard
Attachment #72357 - Flags: superreview+
Thanks Christopher, I'll report your SR in bug 109081 where the patch now lives...
*** Bug 128881 has been marked as a duplicate of this bug. ***
*** Bug 128885 has been marked as a duplicate of this bug. ***
*** Bug 128882 has been marked as a duplicate of this bug. ***
Ah, I think that this back-out also fixed the problem I was having where none of my sidebar bookmark links were clickable. Better now.
*** Bug 128913 has been marked as a duplicate of this bug. ***
*** Bug 129048 has been marked as a duplicate of this bug. ***
*** Bug 129043 has been marked as a duplicate of this bug. ***
verified on linux build 2002-03-05-11-trunk
Status: RESOLVED → VERIFIED
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: