Closed Bug 843485 Opened 13 years ago Closed 13 years ago

[Statusbar] can't toggle wifi button from second time

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: leo.bugzilla.gaia, Assigned: leo.bugzilla.gaia)

Details

Attachments

(1 file)

1. Title : [Statusbar] can't toggle wifi button from second time 2. Precondition : Bring down the statusbar from homescreen and turn on/off wifi once. 3. Tester's Action : Try turning on/off wifi again. 4. Detailed Symptom (ENG.) : It simply does not do anything. 5. Expected : Wifi should be turned on/off when toggled. 6.Reproducibility: Y 1)Frequency Rate : 100% And the strangest thing is, once 'airplane mode' is turned on/off. Then the wifi button starts working from second time.
OS: Windows XP → Gonk (Firefox OS)
Hardware: x86 → ARM
Assignee: nobody → leo.bugzilla.gaia
Attached file pull request url —
Attachment #716417 - Flags: review?(timdream)
Comment on attachment 716417 [details] pull request url redirect review
Attachment #716417 - Flags: review?(timdream) → review?(ehung)
Comment on attachment 716417 [details] pull request url Sorry, I can't reproduce the problem before applying your patch. Could you please provide your Gaia version?
Attachment #716417 - Flags: review?(ehung)
Keywords: qawanted
Whiteboard: q
Whiteboard: q
The Gaia version is 04e3e923bdae0773b0133ffa4958831b7124bf7a. Somehow I can't reproduce the problem in different Gaia version. Anyhow, the problem was that it was changing 'self.wifi.dataset.enabled' variable when the wifi button is toggled while the self.wifi.dataset.initializing variable was still true.
Please understand that I am setting the review flag again to draw attention to this. Just by looking at the codes, doesn't it make sense to have this fix? In case, the wifi button is pressed again before the self.wifi.dataset.enabled or self.wifi.dataset.disabled event is triggered.
Attachment #716417 - Flags: review?(ehung)
(In reply to leo.bugzilla.gaia from comment #5) > Just by looking at the codes, doesn't it make sense to have this fix? In > case, the wifi button is pressed again before the self.wifi.dataset.enabled > or self.wifi.dataset.disabled event is triggered. The `self.wifi.dataset.initializing` intends to prevent clicking the button twice or more before the `self.wifi.dataset.enabled` or `self.wifi.dataset.disabled` event is triggered. That's why I commented on Github and said: "The check here seems to be always false, because both the wifi toggles (in System/Settings app) are disabled at this moment, so the user can't change WIFI status now."
Tested w/ different version. I cannot reproduce this problem. Marked as WFM and close it. Please reopen it if it happens again. <!-- Mercurial-Information: <project name="releases/mozilla-b2g18" path="gecko" remote="hgmozillaorg" revision="d9278721eea1"/> --> <project name="gecko.git" path="gecko" remote="mozillaorg" revision="9306ad2157bb28da16e6e0442e7867a6cba76711"/> <!-- Mercurial-Information: <project name="integration/gaia-v1-train" path="gaia" remote="hgmozillaorg" revision="b02c8ad97ab8"/> --> <project name="gaia.git" path="gaia" remote="mozillaorg" revision="7636cc575be4a71fdd04879ccaf0109cf4f4a355"/>
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: qawanted
Resolution: --- → WORKSFORME
Comment on attachment 716417 [details] pull request url clear review request because we can't reproduce the problem.
Attachment #716417 - Flags: review?(ehung)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: