Closed Bug 1113439 Opened 10 years ago Closed 9 years ago

[System] Sometimes, the "Website Permission" screen shows the Back and Front Camera radio buttons twice

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.0 unaffected, b2g-v2.1 unaffected, b2g-v2.2 affected)

RESOLVED DUPLICATE of bug 1144784
Tracking Status
b2g-v2.0 --- unaffected
b2g-v2.1 --- unaffected
b2g-v2.2 --- affected

People

(Reporter: fmuyumba, Assigned: amac)

Details

(Keywords: regression, Whiteboard: [2.2-exploratory-2])

Attachments

(2 files)

Description:
At times, the Back and Front Camera radio buttons are shown twice on the "Website Permission" screen
   
Repro Steps:
1) Update a Flame device to BuildID: 20141218040201
2) Launch the Loop App
3) Tap on the (+) button
4) Tap on "Conversation" button
5) Tap on any contact
6) Tap on the "Call" button
7) Tap on "New Room"
8) Tap on any message
9) Tap on "Join the conversation" 
  
Actual:
Back and front Camera radio buttons are shown twice
  
Expected: 
Back and Front Camera radio buttons are NOT shown twice

Environmental Variables:
Device: Flame 2.2 Master (319mb)(Kitkat Base)(Full Flash)
BuildID: 20141218040201
Gaia: 58734e8a48157f99d5b733412b600c2e04c954fe
Gecko: 5c7a6294b82a
Gonk: e5c6b275d77ca95fb0f2051c3d2242e6e0d0e442
Version: 37.0a1 
Firmware: V188-1
User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0

  
Repro frequency:2/20
See attached: screenshot, logcat
Flags: needinfo?(dharris)
Attached image 2014-12-18-11-51-03.png
This issue does NOT repro on the Flame 2.1 (319mb)(Kitkat Base)(Full Flash) and  Flame 2.0 (319mb)(Kitkat Base)(Full Flash)

Result:
Back and Front Camera radio buttons are NOT shown twice on the "Website Permission" screen

Environmental Variables:
Device: Flame 2.1 (319mb)(Kitkat Base)(Full Flash)
Build ID: 20141218001205
Gaia: 14315733e2d265a42f9ab02d1aba191789870f70
Gecko: ddecea83ce6e
Gonk: e5c6b275d77ca95fb0f2051c3d2242e6e0d0e442
Version: 34.0 
Firmware Version: v188-1
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0

-----------------------------------------------------------------------------------------------------------------

Environmental Variables:
Device: Flame 2.0 (319mb)(Kitkat Base)(Full Flash)
Build ID: 20141218000204
Gaia: d04710d5d643eeff5a6493aef92a1af672a2769c
Gecko: decf1ee4464e
Gonk: e5c6b275d77ca95fb0f2051c3d2242e6e0d0e442
Version: 32.0 
Firmware Version: v188-1
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0

NOTE:
I tested them 15 times and could NOT repro the issue. Going by the fact that the repro rate is very low on the Flame 2.2 Master (319mb)(Kitkat Base)(Full Flash), I doubt if these are affected
QA Whiteboard: [QAnalyst-Triage?]
Waiting to see if this bug is valid before triaging, due to it being tested on the most recent version of loop.
Flags: needinfo?(oteo)
It's a valid,
We didn't detect it as the 1.1 and 1.1.1 (under development) Loop versions are initially planned to be landed on 2.0 FxOS but for future versions on 2.2 we need to fix this.

Antonio, can you have a look at it after your Holidays? Thanks a lot
Flags: needinfo?(oteo) → needinfo?(amac.bug)
Sure thing. I'll take a look when I'm back.
Assignee: nobody → amac.bug
Flags: needinfo?(amac.bug)
Judging by the screenshot and my own tests, this seems like the system app isn't (wasn't?) clearing the permission screen correctly. If you check the screenshot, there seem to be two permission requests... on one hand it says that Smart Collections is requesting the location, and on the other hand that loop is requesting access to a camera. If the clearing isn't working correctly, then it stands to reason that the second time the permission is requested it'll show the options duplicated.

In any case, this looks more like a system bug (since the permission request screen lives in the system app) and I couldn't repro this anyway. I tried opening first the smart collection to see if the screen was cleared correctly and apparently it was. Is this still failing?
Flags: needinfo?(fmuyumba)
After checking the code on permission_manager.js, I believe there's a case where this might still happen. When two or more permission requests are queued, then cleanDialog is not called between dialogs (strangely enough it's called before knowing if the dialog will be shown or queued though). I still haven't been able to actually reproduce this though.
Changing the name and reassigning this to another component, since this is not a Loop bug, but a System bug.
Component: Gaia::Loop → Gaia::System
Summary: [Loop] Sometimes, the "Website Permission" screen shows the Back and Front Camera radio buttons twice → [System] Sometimes, the "Website Permission" screen shows the Back and Front Camera radio buttons twice
I ran 20 tests on Flame 2.2 Master (319mb)(Kitkat Base)(Full Flash) and was NOT able to repro the issue

Result:
The Back and Front Camera radio buttons are NOT shown twice on the "Website Permission" screen

Environmental Variables:
Device: Flame 2.2 Master (319mb)(Kitkat Base)(Full Flash)
Build ID: 20141229010215
Gaia: bdedbaf9f18a43c091ede770407d68d38582fe29
Gecko: 8850aa0f5332
Gonk: a814b2e2dfdda7140cb3a357617dc4fbb1435e76
Version: 37.0a1
Firmware Version: v188-1
User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
Flags: needinfo?(fmuyumba)
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(dharris)
I think this was solved at bug 1144784. Please reopen if it still happens.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: