Closed
Bug 427412
Opened 17 years ago
Closed 17 years ago
Warning sound when auto-completing URL using Cmd+Enter
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
VERIFIED
FIXED
Firefox 3
People
(Reporter: rotis, Assigned: Gavin)
References
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
patch
|
enndeakin
:
review+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008040604 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008040604 Minefield/3.0pre
You can auto-complete URL's by just typing "apple" in the URL bar and hitting CMD-Enter which adds a ".com" or SHIFT-Enter which adds a ".net" or SHIFT-CMD-Enter which adds a ".org" extension. This works fine in Firefox 2.0.0.13. In Minefield using the CMD-Enter or SHIFT-CMD-Enter gives a MacOSX warning sound (but the command itself works). There is something with the CMD key.
Reproducible: Always
Steps to Reproduce:
1. Type in the URL bar "mozilla"
2. Hit CMD-Enter (now it gives the warning sound)
Comment 1•17 years ago
|
||
This is similar to bug 376077, which was fixed a few months ago. I'll add a comment to that bug pointing to this one.
Assignee: nobody → joshmoz
Status: UNCONFIRMED → NEW
Component: OS Integration → Widget: Cocoa
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
QA Contact: os.integration → cocoa
Version: unspecified → Trunk
Updated•17 years ago
|
Flags: blocking1.9?
Yup, we need to fix this in toolkit or XUL code as Jesse suggested in bug 376077.
Assignee: joshmoz → nobody
Component: Widget: Cocoa → Location Bar and Autocomplete
Flags: blocking1.9?
Product: Core → Firefox
QA Contact: cocoa → location.bar
Comment 3•17 years ago
|
||
the event handler should call |preventDefault| of the event.
Updated•17 years ago
|
Flags: blocking-firefox3?
Comment 4•17 years ago
|
||
This happens on 10.4 too (not just 10.5).
Summary: [10.5/Minefield] Warning sound when auto-completing URL using CMD-key → Warning sound when auto-completing URL using Cmd+Enter
Comment 6•17 years ago
|
||
Yeah, we need a preventDefault here, since we're eating the event.
Assignee: nobody → gavin.sharp
Flags: blocking-firefox3? → blocking-firefox3+
Assignee | ||
Comment 7•17 years ago
|
||
Just adding a preventDefault to canonizeURL isn't fixing all the cases. There's some strange interactions going on between the browser.js code and the autocomplete handlers, need to investigate further.
Status: NEW → ASSIGNED
Comment 9•17 years ago
|
||
I poked at this, there's a case where if the autocomplete throbber is visible, we still get this, kinda weird.
Assignee | ||
Comment 10•17 years ago
|
||
Oh, of course. That case would be when we hit the "enter after search" code, which ends up holding on to the event and calling the ontextentered handler after the search finishes. By that time the event would have already been dispatched with no one to preventDefault() it.
Not sure there's an easy way to fix that, maybe we can just always preventDefault that event from autocomplete code? It's default action is never useful, right?
Assignee | ||
Comment 11•17 years ago
|
||
Maybe we can just always preventDefault Enter events? I was conservative and made this Mac-only, and only preventDefault when for Meta+Enter.
Attachment #316290 -
Flags: review?(enndeakin)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [has patch][needs review enndeakin]
Assignee | ||
Updated•17 years ago
|
Priority: -- → P1
Target Milestone: --- → Firefox 3
Updated•17 years ago
|
Attachment #316290 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 12•17 years ago
|
||
Comment on attachment 316290 [details] [diff] [review]
patch
There's no easy way to test this as far as I know, since it involves the system default action.
Attachment #316290 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
Whiteboard: [has patch][needs review enndeakin] → [has patch][needs approval]
Comment 13•17 years ago
|
||
Comment on attachment 316290 [details] [diff] [review]
patch
a1.9+=damons
Attachment #316290 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Whiteboard: [has patch][needs approval] → [has patch]
Assignee | ||
Comment 14•17 years ago
|
||
mozilla/toolkit/content/widgets/autocomplete.xml 1.139
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [has patch]
Comment 15•17 years ago
|
||
Verified fixed in latest trunk (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9pre) Gecko/2008050804 Minefield/3.0pre)
Verified using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9pre) Gecko/2008050804 Minefield/3.0pre too.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 17•17 years ago
|
||
I don't think, this CMD-beep bug is really fixed. Yes, CMD-ENTER and CMD-SHIFT-ENTER now works, no beep anymore. But when trying to cycle thru open windows, it still doesn't work, it just beeps. See the bug 427410.
Open the Bookmarks or Add-ons window besides the browser window. Try to cycle thru them by holding CMD and hitting < (on my German keyboard layout). Just a warning beep, no action. Major bug. Works in FF 2.0.0.14 still fine.
Assignee | ||
Comment 18•17 years ago
|
||
If you're hearing beeps for actions other than Cmd+Enter in the location bar, then it isn't related to this bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•