Closed Bug 567044 Opened 14 years ago Closed 14 years ago

Tapping in urlbar doesn't work after pressing Android menu button

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
Steps to reproduce:
1. Press the "Menu" key in Fennec for Android.  Site menu appears.
2. Tap in the urlbar.

Expected results: URL bar is focused, autocomplete popup and keyboard appear.
Actual results: URL bar is not focused, instead it disappears or scrolls away.

This patch fixes the above bug, and also adds a shortcut (Ctrl+M) to open the site menu.  This is mainly for ease of testing menu button behavior on desktop, but may also be useful on non-Android platforms like Maemo.  That part of the patch can be removed if it's not wanted, though.
Attachment #446430 - Flags: review?(mark.finkle)
Attachment #446430 - Flags: review?(mark.finkle) → review+
Comment on attachment 446430 [details] [diff] [review]
patch


>+    this._urlBar = document.getElementById("toolbar-container");

Instead of doing this, let's add "toolbar-container" to the Elements array:
http://mxr.mozilla.org/mobile-browser/source/chrome/content/Util.js#261

call it "toolbarContainer" ?

Also update:
http://mxr.mozilla.org/mobile-browser/source/chrome/content/browser.js#3486

>diff -r 3bddd1a6c503 chrome/content/browser.xul

>+    <key id="key_menu" key="m" modifiers="accel" command="cmd_menu"/>

I don't think we should do this yet

r+, but make a new patch for checkin
Attached patch patch v2 (obsolete) — Splinter Review
Updated based on review from Mark Finkle.
Attachment #446430 - Attachment is obsolete: true
Attachment #446440 - Flags: review+
Attachment #446440 - Flags: review+ → review?(mark.finkle)
Attachment #446440 - Flags: review?(mark.finkle) → review+
Hmm, I did find one oddity with this patch. If I open the site menu by clicking on the favicon, then click on the urlbar - the site menu is not closed. It stays open under the awesomebar. When you close the awesomebar without choosing a site, the site menu is still displayed.

I don't think I like that.

Madhava, any thoughts? Maybe we should force close the site menu when opening the awesomebar?
Yeah - the simplest conceptual model, I think, is that tapping outside the site menu dismisses it.  The URL bar is outside the site menu.
Attached patch patch v3Splinter Review
Updated to hide the site menu (or any other popup) when focusing the urlbar.

To ensure these things will always happen at the same time, I also moved the call to showAutoComplete inside of showToolbar.
Attachment #446440 - Attachment is obsolete: true
Attachment #446718 - Flags: review?(mark.finkle)
Attachment #446718 - Flags: review?(mark.finkle) → review+
pushed to m-b:
http://hg.mozilla.org/mobile-browser/rev/f3c78175c3aa
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 567613
verified FIXED on build:

Mozilla/5.0 (Android; U; Linux armv71; Nokia N900; en-US; rv:1.9.3a4pre) Gecko/20100524 Namoroka/3.7a4pre Fennec/2.0a1pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: