Closed Bug 520538 Opened 15 years ago Closed 15 years ago

-new-tab about:blank should focus the location bar

Categories

(Firefox :: Shell Integration, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a1

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch patch (obsolete) — Splinter Review
Attachment #404595 - Flags: review?(gavin.sharp)
Won't this change behavior in the loadDivertedInBackground=true case (will now focus the window and select the tab)? Seems like perhaps we should just call focusAndSelectURLBar() (being re-added by bug 494373) if we're loading about:blank here?
I think we actually want to ignore loadDivertedInBackground for the new-tab command from bug 518666.
Attached patch test addedSplinter Review
Attachment #404595 - Attachment is obsolete: true
Attachment #405029 - Flags: review?(gavin.sharp)
Attachment #404595 - Flags: review?(gavin.sharp)
(In reply to comment #3)
> I think we actually want to ignore loadDivertedInBackground for the new-tab
> command from bug 518666.

I agree, but I'm having a hard time trading that off with breaking the loadDivertedInBackground pref for other -new-tab about:blank loads. Even though the impact may be really low (hidden pref -> few people using it, etc.), the inconsistency irks me. We could instead add a -focus for that command to use, perhaps?
I don't really see the point of loading about:blank in a background tab. It's probably not what people touching that hidden pref had in mind. For that matter, I can't even think uses of -new-tab about:blank that shouldn't be translated to "open a new tab".
Comment on attachment 405029 [details] [diff] [review]
test added

OK, you make a convincing case!
Attachment #405029 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/5fca1946778b
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: