Closed Bug 619679 Opened 15 years ago Closed 14 years ago

[Maemo] Dismissing the virtual keyboard causes the top bar with "All pages", "Bookmarks" and "History" to disappear

Categories

(Firefox for Android Graveyard :: General, defect)

All
Maemo
defect
Not set
normal

Tracking

(fennec-)

VERIFIED FIXED
Tracking Status
fennec - ---

People

(Reporter: martijn.martijn, Assigned: vingtetun)

References

()

Details

(Whiteboard: [VKB])

Attachments

(4 files)

Steps to reproduce: - Keep Fennec in landscape mode with the hardware keyboard closed - Tap on the url bar - Tap another time on the url bar, the software keyboard should come up. - Dismiss the software keyboard by clicking above it. Expected result: - The awesome bar should just look the same as it was before the software keyboard appeared and disappeared. Actual result: - The top bar, containing "All pages", "Bookmarks" and "History" disappeared. Tested, using: Mozilla/5.0 (Maemo; Linux armv7l; rv:2.0b8pre) Gecko/20101214 Firefox/4.0b8pre Fennec/4.0b3
flagging for blocking. please add a screeshot
tracking-fennec: --- → ?
Attached image screenshot
Dismissing the VKB (as in step 4 in comment 0) seems to fire a focus or keydown event. This is handled by the awesomescreen and it loads the first item in the result into the edit box. This causes the button bar ("all pages", etc) to disappear - which is normal behavior.
Assignee: nobody → 21
tracking-fennec: ? → 2.0+
Yes, I can reproduce this
I'd love a browser chrome test for this.
Flags: in-testsuite?
A browser-chrome test for the native vkb is not easy
tracking-fennec: 2.0+ → 2.0-
Attached patch Patch (m-c)Splinter Review
The problem came from the platform side, the platform assume that the popup is closed during the compositionstart event fired by the IME, and so during the compositionend event a fake DOM_VK_DOWN is dispatched. But the popup is not really closed during the compositionstart, so this patch ensure the popup is _really_ closed before turning the flag on.
Attachment #507078 - Flags: review?(enndeakin)
This patch seems to assume that ClosePopup will fail to close the popup. Why does it fail?
(In reply to comment #8) > This patch seems to assume that ClosePopup will fail to close the popup. Why > does it fail? It fails because popupOpen is a readonly property in the case of fennec, http://hg.mozilla.org/mobile-browser/file/99268b046596/chrome/content/bindings.xml#l252, so event if ClosePopup() thought it is set to false this can be wrong (http://hg.mozilla.org/mozilla-central/diff/9b2a99adc05e/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp)
(In reply to comment #9) > (In reply to comment #8) > > This patch seems to assume that ClosePopup will fail to close the popup. Why > > does it fail? > > It fails because popupOpen is a readonly property in the case of fennec, > http://hg.mozilla.org/mobile-browser/file/99268b046596/chrome/content/bindings.xml#l252 Since the popupOpen property isn't readonly in the interface isn't that the bug?
(In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #8) > > > This patch seems to assume that ClosePopup will fail to close the popup. Why > > > does it fail? > > > > It fails because popupOpen is a readonly property in the case of fennec, > > http://hg.mozilla.org/mobile-browser/file/99268b046596/chrome/content/bindings.xml#l252 > > Since the popupOpen property isn't readonly in the interface isn't that the > bug? Yes, it seems we should fix that.
(In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #8) > > > This patch seems to assume that ClosePopup will fail to close the popup. Why > > > does it fail? > > > > It fails because popupOpen is a readonly property in the case of fennec, > > http://hg.mozilla.org/mobile-browser/file/99268b046596/chrome/content/bindings.xml#l252 > > Since the popupOpen property isn't readonly in the interface isn't that the > bug? This is partly true, in Fennec this property is readonly for the moment but even if we decide to change it to be read-write this won't mean we can't intercept this call and prevent it to close the popup depending on some conditions. If an extension extends our binding for example. I think we should not assume that turning this property to false _really_ close the popup.
Ah, OK now I understand the issue better. Fennec does want to control the popup itself.
Neil, I think the patch is pretty low risk for Firefox since it used the autocomplete.xml binding with the "normal" popupOpen property, but by extending the XBL we really don't want to be closed unexpectingly which is why the property is read-only on the fennec side. By the way I don't see the point of closing the autocomplete popup for Fennec when a compositionstart event is fired, this seems to be something specific to desktop application...
Attachment #507078 - Flags: review?(enndeakin) → review+
OS: Windows 7 → Maemo
Hardware: x86 → All
I've added some test for mobile-browser to ensure we won't regress on that.
Attachment #507584 - Flags: review?(mark.finkle)
Comment on attachment 507584 [details] [diff] [review] tests mobile-browser Remember to check that the test doesn't break on devices.
Attachment #507584 - Flags: review?(mark.finkle) → review+
Comment on attachment 507078 [details] [diff] [review] Patch (m-c) Approved with tests
Attachment #507078 - Flags: approval2.0+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
I can still reproduce it on: Build ID: Mozilla /5.0 (Maemo;Linux armv7l;rv:2.2a1pre) Gecko/20110406 Firefox/4.2a1pre Fennec /4.1a1pre Device: Nokia N900 (Maemo GTK) opening the bug : see the screenshot
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached image The actual result
Thanks for testing, I already had filed a new bug for this, bug 642771.
Status: REOPENED → RESOLVED
Closed: 15 years ago14 years ago
Resolution: --- → FIXED
VERIFIED FIXED: Build ID: Mozilla/5.0 (Maemo; Linux armv7l; rv:6.0a1) Gecko/20110510 Firefox/6.0a1 Fennec/6.0a1 Device: Nokia N900(Maemo GTK)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: