Closed Bug 312846 Opened 19 years ago Closed 19 years ago

Pressing Enter when a UI-link is focused inside a wizard advances the wizard

Categories

(Toolkit :: UI Widgets, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8rc1

People

(Reporter: asaf, Assigned: asaf)

References

Details

(Keywords: access, dataloss, fixed1.8)

Attachments

(3 files)

While working on bug 311288, I noticed the following behavior:

1. Either in the Update Found page or in the Ready To Install page, focus the
Details link.
2. Press Enter.

Results: 1) The link is activated (desired). 2) the wizard advances.

In the Ready to Install page, the "side-effect" is a restart of the application.
Flags: blocking1.8rc1?
Assuming Enter is the only kbd-way to open ui links -> sec508.
Keywords: sec508
Attached patch patchSplinter Review
Assignee: nobody → bugs.mano
Status: NEW → ASSIGNED
Attached patch diff -wSplinter Review
Attachment #199936 - Flags: first-review?(mconnor)
Priority: -- → P1
Target Milestone: --- → mozilla1.8rc1
Attachment #199936 - Flags: first-review?(mconnor) → first-review+
Attachment #199936 - Flags: approval1.8rc1?
Checking in text.xml;
/cvsroot/mozilla/toolkit/content/widgets/text.xml,v  <--  text.xml
new revision: 1.21; previous revision: 1.20
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
we'll need a trunk verification on this in tomorrow's bits before we'd consider
this patch for the branch.
Comment on attachment 199936 [details] [diff] [review]
diff -w

We're inclined against this patch since the impact limited to a small group of
users and the fix is changing something that could have widespread impact.
Attachment #199936 - Flags: approval1.8rc1? → approval1.8rc1-
Asa, what's the reasoning? there are very few ui-links in Fx/Tb and this only
touches the case where the the Enter key is pressed on those. The current
behavior does have a pretty bad widespread impact though - ui links (a new
widget in 1.8) aren't functional in dialogs and wizards.

FYI, another place where it's broken is EM's about dialog.
we were pretty scared to take changes to the text widget including how events
are getting handled in the widget this late in the release cycle without any
time to see if things work properly. We felt the impact of the bug didn't
justify regressions to everyone else who uses text widgets. 
Scott, the current "text-link" binding is pretty new (added by aaronlev in 1.5a2
iirc) and for that reason isn't used a lot yet (there are users of
type="text-link" onclick="foo" but this change doesn't affect them at all).

I've tested this in SWU and EM/TM.
Comment on attachment 199936 [details] [diff] [review]
diff -w

Renominating for tomorrow's triage assuming this info matters. I will try to
test the few text-links in thunderbird till then.
Attachment #199936 - Flags: approval1.8rc1- → approval1.8rc1?
Comment on attachment 199936 [details] [diff] [review]
diff -w

we'll try to get good test coverage on this when doing our update testing. Are
there any places outside of the update wizard that use this?
Attachment #199936 - Flags: approval1.8rc1? → approval1.8rc1+
Flags: blocking1.8rc1?
Firing open directly might be the very wrong thing to do here in some cases, so
i'm reverting that part.
Attachment #200200 - Flags: first-review?(mconnor)
(In reply to comment #11)
> (From update of attachment 199936 [details] [diff] [review] [edit])
> we'll try to get good test coverage on this when doing our update testing. Are
> there any places outside of the update wizard that use this?
> 

In the Extension Manger and in Thunderbird's Preferences window.
Fixed on branch. I will get a post-checkin review on the follow-up patch and
will land it on the trunk then.
Keywords: fixed1.8
Attachment #200200 - Flags: first-review?(mconnor) → first-review+
Fixed on trunk too.
Asaf, did you mean to check in the dump statement for textbox.xml as part of this change?
sorry bad cvs blame data. I thought that dump looked familiar! I'll take it out. 
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: