Closed
Bug 925012
Opened 11 years ago
Closed 11 years ago
Search engine choices pane is completely blank
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(firefox24 unaffected, firefox25 unaffected, firefox26 fixed, firefox27 verified, fennec26+)
VERIFIED
FIXED
Firefox 27
Tracking | Status | |
---|---|---|
firefox24 | --- | unaffected |
firefox25 | --- | unaffected |
firefox26 | --- | fixed |
firefox27 | --- | verified |
fennec | 26+ | --- |
People
(Reporter: liuche, Assigned: bnicholson)
References
Details
Attachments
(2 files)
71.21 KB,
image/png
|
Details | |
1.49 KB,
patch
|
lucasr
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
On the search engines state for the new about:home, we can reach a state where the search shortcuts pane is completely blank.
STR:
1. Type into search bar to bring up search shortcuts.
2. Scroll on the search shortcuts (this dismisses the keyboard).
3. Tap on the menu bar; this highlights the text and brings up the keyboard.
4. Start typing.
Expected:
Search shortcuts pop up to match the entered text
Actual:
Entire pane goes blank, see screenshot.
Note: Dismissing the keyboard via the back key and starting to type again does not cause this problem.
Comment 1•11 years ago
|
||
I'm not able to reproduce, maybe others can? Sounds bad, tracking?
tracking-fennec: --- → ?
Comment 2•11 years ago
|
||
I can't reproduce this either, but I'm seeing a terrible glitch when the keyboard dismisses where it looks like we draw the list of search suggestions twice momentarily :/
Updated•11 years ago
|
Keywords: regressionwindow-wanted
Comment 3•11 years ago
|
||
I am able to reproduce this on Samsung Galaxy Nexus (Android 4.1.1) with SwiftKey keyboard. I will try to find a regression range.
status-firefox24:
--- → unaffected
status-firefox25:
--- → unaffected
status-firefox26:
--- → affected
status-firefox27:
--- → affected
Comment 4•11 years ago
|
||
Regression window-wanted:
There are three builds in 08/21 central, when fig has been pushed to m-c. The first build is not affected and the second one is affected.
The pushlog is:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=d136c8999d96&tochange=b2486721572e
Comment 5•11 years ago
|
||
... so new-about-home
Blocks: new-about-home
Flags: needinfo?(lucasr.at.mozilla)
Comment 6•11 years ago
|
||
(In reply to Teodora Vermesan (:TeoVermesan) from comment #4)
> Regression window-wanted:
>
> There are three builds in 08/21 central, when fig has been pushed to m-c.
> The first build is not affected and the second one is affected.
> The pushlog is:
> http://hg.mozilla.org/mozilla-central/
> pushloghtml?fromchange=d136c8999d96&tochange=b2486721572e
Do you mean that the first nightly with new-about-home was working fine? It would be nice to know what changed between the first and second builds.
Flags: needinfo?(lucasr.at.mozilla)
Comment 7•11 years ago
|
||
The first build from 08/21 is unaffected and it is with the old about:home. The second build from 08/21 is the affected one, with the new about:home
Comment 8•11 years ago
|
||
(In reply to Teodora Vermesan (:TeoVermesan) from comment #7)
> The first build from 08/21 is unaffected and it is with the old about:home.
> The second build from 08/21 is the affected one, with the new about:home
Just to confirm: does this only happen with the SwiftKey keyboard?
Comment 9•11 years ago
|
||
(In reply to Lucas Rocha (:lucasr) from comment #8)
> Just to confirm: does this only happen with the SwiftKey keyboard?
Yes, I am not able to reproduce with other keyboards.
Updated•11 years ago
|
Keywords: regressionwindow-wanted
Comment 10•11 years ago
|
||
Jim - Are there any gotcha's with swiftkey we should be looking for? Can you look at the logs for any issues?
Assignee: nobody → bnicholson
tracking-fennec: ? → 26+
Flags: needinfo?(nchen)
Comment 11•11 years ago
|
||
I did some logging. When typing to replace existing, selected text, SwiftKey deletes the selected text first, before committing new text. This is different from the stock keyboard behavior which commits the new text directly and relies on the editor to delete the old text.
For example, if the current text is "foo" and selected, SwiftKey will call DeleteText(0, 3) then InsertText("bar"), whereas the stock keyboard only calls InsertText("bar"). The result is the same but SwiftKey makes an extra call.
In SwiftKey's case, the text field is temporarily blank due to the DeleteText call, so maybe that messes up the search code.
Flags: needinfo?(nchen)
Assignee | ||
Comment 12•11 years ago
|
||
As Jim said, SwiftKey deletes the text before committing new text. This triggers hideBrowserSearch() since the text is empty, then showBrowserSearch() immediately after for the committed text.
When this happens, the container given to BrowserSearch#onCreateView is null. I assume this is an Android bug, and I filed it as http://code.google.com/p/android/issues/detail?id=61179. Calling FragmentManager#executePendingTransactions seems to work as a workaround.
Attachment #818792 -
Flags: review?(lucasr.at.mozilla)
Comment 13•11 years ago
|
||
Comment on attachment 818792 [details] [diff] [review]
Force execution of pending BrowserSearch fragment removals before re-adding
Review of attachment 818792 [details] [diff] [review]:
-----------------------------------------------------------------
Nice catch.
::: mobile/android/base/BrowserApp.java
@@ +1607,5 @@
> + // (see bug 925012). Because of an Android bug (http://code.google.com/p/android/issues/detail?id=61179),
> + // calling FragmentTransaction#add immediately after FragmentTransaction#remove won't add the fragment's
> + // view to the layout. Calling FragmentManager#executePendingTransactions before re-adding the fragment
> + // prevents this issue.
> + getSupportFragmentManager().executePendingTransactions();
nit: getSupportFragmentManager() only once and use it for both calls:
final FragmentManager fm = getSupportFragmentManager();
fm.executePendingTransactions();
fm.beginTransaction()...
Attachment #818792 -
Flags: review?(lucasr.at.mozilla) → review+
Assignee | ||
Comment 14•11 years ago
|
||
Status: NEW → ASSIGNED
Assignee | ||
Comment 15•11 years ago
|
||
Comment on attachment 818792 [details] [diff] [review]
Force execution of pending BrowserSearch fragment removals before re-adding
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 862793
User impact if declined: search screen can be blank with SwiftKey keyboard (see screenshot)
Testing completed (on m-c, etc.): locally
Risk to taking this patch (and alternatives if risky): very low risk
String or IDL/UUID changes made by this patch: none
Attachment #818792 -
Flags: approval-mozilla-aurora?
Comment 16•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 27
Comment 17•11 years ago
|
||
Verified fixed on:
Build: Firefox for Android 27.0a1 (2013-10-20)
Device: Samsung Galaxy Nexus
OS: Android 4.1.1
Flags: needinfo?(teodora.vermesan)
Comment 18•11 years ago
|
||
Please remember to flip status.
Updated•11 years ago
|
Attachment #818792 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 19•11 years ago
|
||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•