Closed Bug 349128 Opened 19 years ago Closed 19 years ago

Focus lost pressing enter in empty location bar

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 alpha1

People

(Reporter: droida38, Assigned: asaf)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 It seems that the clipboard is cleared whenever enter is pressed when focus is in the url field, the google search field (and probably any other field in the toolbars) Similar to #311340 - But I think this is different. Reproducible: Always Steps to Reproduce: 1. type www.yahoo.com in the url field (don't press enter) 2. press ctrl + a, then ctrl + x (to cut www.yahoo.com) 3. press enter 4. now ctrl + v inserts nothing :( Actual Results: nothing - empty clipboard Expected Results: www.yahoo.com pasted into url field I find this to be a very annoying bug, that is so severe that I sometimes consider using another browser. It's so fustrating to belive that something is on the clipboard, only to find out that it has been cleared while using Firefox.
When I follow your Steps to reproduce it pastes nothing in the URL bar because the focus in the location bar is lost after pressing Enter. The address is still in the clipboard (when I focus the location bar first I can paste it).
So maybe that should not happen, when nothing is inside the url bar, in that case pressing enter should not remove the focus from the url bar. This is what IE6 is also not doing.
Severity: critical → normal
Component: General → Location Bar and Autocomplete
QA Contact: general → location.bar
Summary: Clipboard is cleared when Enter is pressed → Focus lost pressing enter in empty location bar
Status: UNCONFIRMED → NEW
Ever confirmed: true
I've now tried the same at my home computer - and can't reproduce here? When I get back to work tomorrow, I'll collect and report back more details.
Confirmed loss of focus in: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1b2) Gecko/20060820 BonEcho/2.0b2 Not sure exactly what the desired behavior should be, but I guess not losing focus is better than losing focus.
I've now tried the test case again on my computer at work, and can confirm that the clipboard is cleared as well as loosing focus. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Windows XP Professional, Version 2002, Service Pack 2
So if you can reproduce at work but not at home then something must be different about your work computer. Are you using any extensions, or running some clipboard daemon there?
Attached patch patchSplinter Review
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #245419 - Flags: review?(gavin.sharp)
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → Firefox 3 alpha1
Attachment #245419 - Flags: review?(gavin.sharp) → review+
mozilla/browser/base/content/browser.js 1.737
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: