Closed Bug 445768 Opened 16 years ago Closed 16 years ago

CTRL+Tab moves to location bar if only 1 tab is open.

Categories

(Firefox :: Keyboard Navigation, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.1a2

People

(Reporter: MarcoZ, Assigned: dao)

References

Details

(Keywords: regression)

Attachments

(1 file)

STR: 1. Open Firefox 3.1a1pre. 2. Open a single page, make sure no other tabs are open. 3. Press Ctrl+Tab. Expected: Nothing happens. Actual: Focus is moved to the Location bar.
Should be easy to make a browser test for this.
Flags: in-testsuite?
Blocks: 395980
Keywords: regression
Pressing Ctrl+Tab then disables the F6 cycling, as seen in this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=426850 1. Press Ctrl+Tab with 1 window open. It seems Ctrl+Tab acts the same as F6 and thus gets stuck after moving from frame 1 to frame 2. Possibly related?
Confirmed on Windows. Regression range is between: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008071504 Minefield/3.1a1pre and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008071603 Minefield/3.1a1pre
Hasham, can you find the regression between hourly builds between those nightly builds? Just to narrow it down, also if you could post the link with the checkins between then, that would be great.
Kurt, I couldn't access hourly builds on 7/15 because ftp://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-win32/ only gives builds from the past two days. I'm not aware of any hourly build archives so I couldn't really tell you a more specific time frame than that. Sorry :(
Bug 395980 caused this.
Attached patch patch (deleted) — Splinter Review
trivial fix
Assignee: nobody → dao
Status: NEW → ASSIGNED
Attachment #333295 - Flags: review?(gavin.sharp)
Attachment #333295 - Flags: review?(gavin.sharp) → review+
Comment on attachment 333295 [details] [diff] [review] patch >diff --git a/browser/base/content/test/browser_ctrlTab.js b/browser/base/content/test/browser_ctrlTab.js >+ var eventConsumed = true; >+ document.addEventListener("keypress", function (event) { >+ eventConsumed = event.getPreventDefault(); >+ }, false); >+ EventUtils.synthesizeKey("VK_TAB", { ctrlKey: true }); >+ ok(eventConsumed, "Ctrl+Tab consumed by the tabbed browser if one tab is open"); It would be good to also check that focus is correct (i.e. test for the symptom, not only the fix).
I wasn't able to get synthesizeKey("VK_TAB", { ctrlKey: true }); change the focus even without this patch applied.
I suppose the focus event is dispatched asynchronously.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite? → in-testsuite+
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.1a2
Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/20080812045727 Minefield/3.1a2pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: