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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: blizzard, Assigned: bugzilla)
References
Details
(Keywords: access, smoketest)
Attachments
(1 file, 1 obsolete file)
3.72 KB,
patch
|
bryner
:
review+
blizzard
:
superreview+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 2•23 years ago
|
||
This is on the 0.9.9 branch, too.
Reporter | ||
Comment 4•23 years ago
|
||
I backed this out of 0.9.9.
Assignee | ||
Comment 5•23 years ago
|
||
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...
Reporter | ||
Comment 6•23 years ago
|
||
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
Comment 8•23 years ago
|
||
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
Assignee | ||
Comment 9•23 years ago
|
||
Christopher, which code do you mean, the nsIWidget::IsEnabe?
Assignee | ||
Comment 10•23 years ago
|
||
This patch will avoid the function IsEnable to return false when the widget is
not really disable.
Assignee | ||
Comment 11•23 years ago
|
||
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
Assignee | ||
Comment 12•23 years ago
|
||
I should have said:... a trunk linux build...
Assignee | ||
Comment 13•23 years ago
|
||
*** Bug 128729 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 14•23 years ago
|
||
*** Bug 128726 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 15•23 years ago
|
||
*** Bug 128737 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 16•23 years ago
|
||
I have also verified that the patch fix all the dup bugs
Comment 17•23 years ago
|
||
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).
Assignee | ||
Comment 19•23 years ago
|
||
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.
![]() |
||
Comment 20•23 years ago
|
||
*** Bug 128759 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
blizzard, should we be doing something else entirely if the widget doesn't have
an mWidget?
Assignee | ||
Comment 22•23 years ago
|
||
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...
Assignee | ||
Comment 23•23 years ago
|
||
Attachment #72329 -
Attachment is obsolete: true
Assignee | ||
Comment 24•23 years ago
|
||
danm, please review.
Reporter | ||
Comment 25•23 years ago
|
||
- *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.
Assignee | ||
Comment 26•23 years ago
|
||
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!
Reporter | ||
Comment 27•23 years ago
|
||
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 28•23 years ago
|
||
Comment on attachment 72357 [details] [diff] [review]
Proposed fix, v2
r=bryner
Attachment #72357 -
Flags: review+
Comment 29•23 years ago
|
||
*** Bug 128824 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 30•23 years ago
|
||
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
Comment 31•23 years ago
|
||
This bug is still present in the 2002030406 linux build.
Assignee | ||
Comment 32•23 years ago
|
||
Right, the fix miss that build, next one will be ok...
Reporter | ||
Comment 33•23 years ago
|
||
Comment on attachment 72357 [details] [diff] [review]
Proposed fix, v2
sr=blizzard
Attachment #72357 -
Flags: superreview+
Assignee | ||
Comment 34•23 years ago
|
||
Thanks Christopher, I'll report your SR in bug 109081 where the patch now lives...
![]() |
||
Comment 35•23 years ago
|
||
*** Bug 128881 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 36•23 years ago
|
||
*** Bug 128885 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 37•23 years ago
|
||
*** Bug 128882 has been marked as a duplicate of this bug. ***
Comment 38•23 years ago
|
||
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.
Comment 39•23 years ago
|
||
*** Bug 128913 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 40•23 years ago
|
||
*** Bug 129048 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 41•23 years ago
|
||
*** Bug 129043 has been marked as a duplicate of this bug. ***
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.
Description
•