Note: There are a few cases of duplicates in user autocompletion which are being worked on.

[New Tab Page] URL bar history pops up when pressing toolbar buttons

RESOLVED FIXED in Firefox 12

Status

()

Firefox
Tabbed Browser
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: ttaubert, Assigned: ttaubert)

Tracking

Trunk
Firefox 12
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

6 years ago
STR:

1) Open a new tab with the New Tab Page
2) Make sure the URL bar has focus
3) Click a toolbar button (in the upper right)

Actual:

The Awesomebar pops up.

Expected:

The Awesomebar should not pop up.
(Assignee)

Comment 1

6 years ago
Created attachment 588018 [details] [diff] [review]
patch v1

Calls urlbar.blur() on mousedown of a toolbar button to explicitly remove the url bar's focus.
(Assignee)

Updated

6 years ago
Attachment #588018 - Flags: review?(dao)
Comment on attachment 588018 [details] [diff] [review]
patch v1

I don't think the new tab page should mess with random chrome elements. What prevents this bug from happening on ordinary web pages? Maybe steal focus by focusing the root / body element?
Attachment #588018 - Flags: review?(dao) → review-
(Assignee)

Comment 3

6 years ago
Created attachment 591554 [details] [diff] [review]
patch v2

(In reply to Dão Gottwald [:dao] from comment #2)
> I don't think the new tab page should mess with random chrome elements. What
> prevents this bug from happening on ordinary web pages?

about:newtab is the only 'real' web page with an empty url bar. That's why it happens.

> Maybe steal focus by focusing the root / body element?

Yes, that's *way* easier/better. Not sure why I didn't think of this...
Attachment #588018 - Attachment is obsolete: true
Attachment #591554 - Flags: review?(dao)

Updated

6 years ago
Attachment #591554 - Flags: review?(dao) → review+
(Assignee)

Comment 4

6 years ago
https://hg.mozilla.org/integration/fx-team/rev/74b125f29e23
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 12
(Assignee)

Comment 5

6 years ago
https://hg.mozilla.org/mozilla-central/rev/74b125f29e23
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
(Assignee)

Comment 6

6 years ago
Backed out:

https://hg.mozilla.org/mozilla-central/rev/104bc7e10373
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 7

6 years ago
https://hg.mozilla.org/integration/fx-team/rev/ab6256b65403
Whiteboard: [fixed-in-fx-team]
(Assignee)

Comment 8

6 years ago
https://hg.mozilla.org/mozilla-central/rev/ab6256b65403
Status: REOPENED → RESOLVED
Last Resolved: 6 years ago6 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
You need to log in before you can comment on or make changes to this bug.