Created attachment 8558696 [details] logcat_20150203_NotBringingHomescreen.txt Description: Pressing home button from the card view does not bring the homescreen when the card view is brought from a smart collection. Instead, pressing the home button brings the smart collection screen. According to Bug 1119697 (see comment 10 & 19), pressing the home button from the card view should always bring the homescreen. Repro Steps: 1) Update a Flame to 20150203055641. 2) Open any 2 apps from the homescreen. 3) Open any smart collection app. 4) Long-press the home button to enter card view. 5) Swipe to another open app on the card view. 6) Press the home button. Actual: The user is returend to the smart collection screen. Expected: The homescreen apears. Environmental Variables: Device: Flame 3.0 (319mb, full flash) Build ID: 20150203055641 Gaia: ae5a1580da948c3b9f93528146b007fc4f6a712b Gecko: ae5d04409cd9 Gonk: e7c90613521145db090dd24147afd5ceb5703190 Version: 38.0a1 (3.0) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:38.0) Gecko/38.0 Firefox/38.0 Repro frequency: 5/5 See attached: video clip, logcat http://youtu.be/MqueCyBICho
This issue also reproduces on Flame 2.2. Result: The user is returned to the smart collection screen when home button is pressed on card view. Device: Flame 2.2 (319mb, full flash) Build ID: 20150203002504 Gaia: cd62ff9fe199fb43920ba27bd5fdbc5c311016fc Gecko: 11d93135c678 Gonk: e7c90613521145db090dd24147afd5ceb5703190 Version: 37.0a2 (2.2) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0 ================= This issue does NOT reproduce on Flame 2.1. Result: The homescreen appears when the home button is pressed on card view. Device: Flame 2.1 (319mb, full flash) Build ID: 20150203001532 Gaia: 17bf14f12e43043654498330d610d469b8b55e64 Gecko: 014f57033b8a Gonk: e7c90613521145db090dd24147afd5ceb5703190 Version: 34.0 (2.1) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Nominating 2.2? The user should always be taken home when pressing the home button.
Created attachment 8558893 [details] Verify video: Verified.mp4 Hi KTucker, This issue has been fixed on latest Flame 2.2 and Flame 3.0, Do we need to continue executing “regressionwindow-wanted”？ verify video: "Verified.mp4". Flame 2.2 build: Build ID 20150203002504 Gaia Revision cd62ff9fe199fb43920ba27bd5fdbc5c311016fc Gaia Date 2015-02-03 00:56:43 Gecko Revision https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/11d93135c678 Gecko Version 37.0a2 Device Name flame Firmware(Release) 4.4.2 Firmware(Incremental) eng.cltbld.20150203.041704 Firmware Date Tue Feb 3 04:17:15 EST 2015 Bootloader L1TC000118D0 Flame 3.0 build: Gaia-Rev ae5a1580da948c3b9f93528146b007fc4f6a712b Gecko-Rev https://hg.mozilla.org/mozilla-central/rev/ae5d04409cd9 Build-ID 20150203055658 Version 38.0a1 Device-Name flame FW-Release 4.4.2 FW-Incremental eng.cltbld.20150203.093120 FW-Date Tue Feb 3 09:31:32 EST 2015 Bootloader L1TC000118D0
I reproduced this issue on the first try on today's Flame 3.0 The user is returned to the smart collection screen when going home. Environmental Variables: Device: Flame 3.0 (Full Flash)(KK)(319mb) Build ID: 20150204010225 Gaia: dfebaaa8aab43470f482d09d71137bab840c3ae9 Gecko: 0c2f7434c325 Gonk: e7c90613521145db090dd24147afd5ceb5703190 Version: 38.0a1 (3.0) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:38.0) Gecko/38.0 Firefox/38.0 Let's continue to get the regression window here.
b2g-inbound/ Mozilla-inbound Regression Window: Last Working Environmental Variables: Device: Flame 2.1 BuildID: 20140703005653 Gaia: 634558f376da67281508c5fcaa91a51c447ad49a Gecko: 7b49b12aab6a Version: 33.0a1 (2.1) Firmware Version: v123 User Agent: Mozilla/5.0 (Mobile; rv:33.0) Gecko/33.0 Firefox/33.0 First Broken Environmental Variables: Device: Flame 2.1 BuildID: 20140703011807 Gaia: 0f27ffb69182a2483a4d0028e3dde50c608fb9d0 Gecko: 2e0c015d861b Version: 33.0a1 (2.1) Firmware Version: v123 User Agent: Mozilla/5.0 (Mobile; rv:33.0) Gecko/33.0 Firefox/33.0 Last Working Gaia First Broken Gecko: Issue does NOT reproduce Gaia: 634558f376da67281508c5fcaa91a51c447ad49a Gecko: 2e0c015d861b First Broken Gaia Last Working Gecko: Issue DOES reproduce Gaia: 0f27ffb69182a2483a4d0028e3dde50c608fb9d0 Gecko: 7b49b12aab6a https://github.com/mozilla-b2g/gaia/compare/634558f376da67281508c5fcaa91a51c447ad49a...0f27ffb69182a2483a4d0028e3dde50c608fb9d0 possibly caused by bug 1020917
Greg, can you take a look at this please? Looks like the landing for bug 1020917 might have caused this issue to occur.
I've checked that on master & 2.2 the code affects the home button in Bug 1020917 had been removed in Alive's Bug 1096133 , so I don't think on master the root cause is Bug 1020917. NI Alive for his opinion. https://github.com/mozilla-b2g/gaia/commit/9b6e75137adb65f702ce1612506461a71fa891ec#diff-a97c5f79c7db2097a02a4dd5af48e806L67
Triage: Not blocking
Sorry I just forgot to leave the NI flag as I said.
Don't think this is a bug. The smart collection is an inline activity which is invoked by homescreen; so back to homescreen means you will see the top most window on homescreen. If you really don't want to see smart collection, it should winow.close() on visibilitychange. Not a system bug anyway.