Bug page auto-focuses (and scrolls to) comment Subject field, preventing scrolling

Bug #107376 reported by Matthew Paul Thomas
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
James Henstridge

Bug Description

As of the latest rollout, all bug pages include this code:
<script type="text/javascript"><!--
setFocusByName('field.subject');
// --></script>

This auto-focuses the comment "Subject:" field (a field that probably shouldn't even exist) when the page loads. That's bad in three ways:
* browsers auto-scroll past the summary and description to the field, so you can't read what the bug is actually about without scrolling the page back yourself;
* you can't scroll the page back with the keyboard, because focus is in a text field;
* you can't tell what the problem is, because the field is hidden.

This JavaScript should be removed with a vengeance. :-)

Tags: lp-bugs
Changed in malone:
importance: Undecided → High
Revision history for this message
James Henstridge (jamesh) wrote :

The view class for the form should set "initial_focus_widget = None" if this is desired.

Changed in malone:
status: Unconfirmed → Confirmed
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Fixed in RF 4163

Changed in malone:
assignee: nobody → jamesh
status: Confirmed → Fix Committed
Revision history for this message
James Henstridge (jamesh) wrote :

I merged a fix for this as r4163

Revision history for this message
James Henstridge (jamesh) wrote :

Rolled out on production.

Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.