Closed
Bug 989704
Opened 11 years ago
Closed 10 years ago
"visible to all' was disabled after turn off bluetooth and turn on again
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(blocking-b2g:2.0M+, b2g-v1.3T affected, b2g-v1.4 affected, b2g-v2.0 affected, b2g-v2.0M affected)
RESOLVED
INVALID
blocking-b2g | 2.0M+ |
People
(Reporter: angelc04, Assigned: GaryChen)
References
Details
(Whiteboard: [sprd295223])
Attachments
(2 files)
84.65 KB,
text/x-log
|
Details | |
900 bytes,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce
---------------------------------------------------------------------------
1. Launch Settings
2. Go to Settings-> Bluetooth
3. Enable Bluetooth and also enable "Visible to all"
4. Turn off Bluetooth
5. Enable bluetooth again
--〉You will notice that "Visible to all" was disabled.
[expected] we should also enable "Visible to all" if user enabled this setting before.
Test build
----------------------------------------------------------------------------
Gaia 14ef4fcdf9199f04f7678755c917dc77f51e13ba
Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/b574a7967338
BuildID 20140329004002
Version 28.1
ro.build.version.incremental=70
ro.build.date=Fri Mar 28 06:17:40 CST 2014
Reporter | ||
Comment 1•11 years ago
|
||
Attached adb log. test starts: 03-30 15:35:56.600
This looks like Settings UI behaviors. ni Arthur.
Hi Arthur,
Is this preferable UX behavior?
Flags: needinfo?(shuang) → needinfo?(arthur.chen)
Though debug with nightly, I found that the root cause of the problem are as follows: (the code is in gaia/apps/settings/js/bluetooth.js)
1. when open the bluthtooth, will change the 'bluetooth.enabled' settings, and fire the settings.addObserver method.
2. in settings.adObserver method will call gDeviceList.update method, in this method the visible to all checkbox value will get from the settings "bluetooth.visible"., if visible to all checkbox is true last time, and now is also this status: checked status.
3. there are also a EventListener "adapteradded" in this file, when it fired, will call initDefaultAdapter method and futher call gDeviceInfo.initWithAdapter method.
4. In the gDeviceInfo.initWithAdapter method, the code are
visibleCheckBox.checked = defaultAdapter.discoverable;
becase is defaultAdapter.discoverable is false, the visible to all checkbox change to unchecked.
And this bug happend.
Attachment #8447061 -
Flags: review?(ejchen)
Comment 5•11 years ago
|
||
Hi yon.ren,
thanks for your patch first, but because there is no nominating flag on this patch, can you try to get 1.3t+ first if you really want to land this patch ? Thanks for the help !
After doing so, please feel free to set r? flag to us again !
thanks !!
Flags: needinfo?(styang)
Flags: needinfo?(arthur.chen)
Updated•11 years ago
|
Attachment #8447061 -
Flags: review?(ejchen)
Comment 6•11 years ago
|
||
1.3t+ please.
status-b2g-v1.3T:
--- → affected
status-b2g-v1.4:
--- → affected
Flags: needinfo?(wchang)
Flags: needinfo?(ryang)
Comment 7•11 years ago
|
||
Echoing Shawn's comment, I suspect this is preferable UX?
Flags: needinfo?(wchang) → needinfo?(ofeng)
Comment 8•11 years ago
|
||
From UX POV, "Visible to all" should not change states after turning off and then turning on BT.
Flags: needinfo?(ofeng)
Comment 9•11 years ago
|
||
Although the builds from v1.3 to master all keep the bluetooth visibility state after toggling bluetooth, IMHO which does not make sense to me as it is regarding privacy issues.
Comment 10•11 years ago
|
||
Joe, could you please take a look on this, and decide if we would like to plus this one?
Looks like we already have a patch and need a reviewer. Thanks.
Flags: needinfo?(ryang)
Comment 12•11 years ago
|
||
This is the expected behavior. Nominate to master for the fix.
blocking-b2g: 1.4? → 2.1?
Reporter | ||
Updated•11 years ago
|
Summary: [tarako] "visible to all' was disabled after turn off bluetooth and turn on again → [tarako][dolphin]"visible to all' was disabled after turn off bluetooth and turn on again
Comment 13•10 years ago
|
||
2.1 behaves as described by reporter, so clearing 2.1? flag.
blocking-b2g: 2.1? → ---
[Blocking Requested - why for this release]:
blocking-b2g: --- → 2.1?
(In reply to Arthur Chen [:arthurcc] (PTO 9/17 ~ 9/23) from comment #9)
> Although the builds from v1.3 to master all keep the bluetooth visibility
> state after toggling bluetooth, IMHO which does not make sense to me as it
> is regarding privacy issues.
It seems that I did not notice this comment. This is huge! I think this bug is a privacy issue and need to be resolved, being visible makes attackers track and footprint user appearance, this is why most of OS has this visibility protection.
I don't think this issue is acceptable.
Blocks: 1066235
Remove tarako/dolphin tag, it's a general issue.
Summary: [tarako][dolphin]"visible to all' was disabled after turn off bluetooth and turn on again → "visible to all' was disabled after turn off bluetooth and turn on again
Comment 17•10 years ago
|
||
We're evaluating this in triage, and are not clear.
It seems the expected behavior in comment #0 would be a privacy issue. Behavior of "visible to all" is often only temporary and requires explicit user action to enable *each time*.
However, did the nature of the bug change? Can you clarify exactly what the STR and privacy issue are?
Flags: needinfo?(shuang)
Ok, maybe "privacy" is not correct wording. Bluetooth visibility usually is disabled by default.
Right now, even Bluetooth visibility disabled, when you turn off bluetooth and turn on bluetooth. Being visible makes attackers track and footprint user appearance, this is why most of OS has this visibility protection, it's just most well-known and basic Bluetooth security mechanism.
Flags: needinfo?(shuang)
STR:
1. Turn on Bluetooth (right now visibility is enabled automatically)
2. Disable Visibility
3. Turn off/turn on again
4. Visibility is enabled automatically
User doesn't change Visibility setting, but system automatically enabled it.
I'm sorry this is different bug as I mentioned in Comment 19 and it's different from Comment#0, sorry about it.
blocking-b2g: 2.1? → ---
Comment 21•10 years ago
|
||
Hi Evelyn, This bug is also found in Woodduck. Could you please review the patch and see whether we can fix in master?
Updated•10 years ago
|
status-b2g-v2.0:
--- → affected
status-b2g-v2.0M:
--- → affected
Comment 22•10 years ago
|
||
Hi Hubert, QAwanted for Flame 2.0. Thanks!
Assignee | ||
Comment 24•10 years ago
|
||
Hi Young,
Since v2.0+ and we need to fit our schedule, so I take it first if you really want to finish this patch please feel free to take it back.
Thanks.
Assignee: nobody → gchen
Flags: needinfo?(gchen) → needinfo?(yong.ren)
Comment 25•10 years ago
|
||
(In reply to GaryChen [:GaryChen][:PYChen][:陳柏宇] from comment #24)
> Hi Young,
> Since v2.0+ and we need to fit our schedule, so I take it first if you
> really want to finish this patch please feel free to take it back.
> Thanks.
I have no require to finish it, Help yourself please.
Flags: needinfo?(yong.ren)
Comment 26•10 years ago
|
||
This could be reproduced on Flame v2.0.
== Build Information - Flame ==
Gaia-Rev 94638b51a5a5d513e26247e9b207aa54e7bb0568
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/bc9e3fa37e63
Build ID 20141008160201
Version 32.0
Device Name flame
FW-Release 4.4.2
FW-Incremental 27
FW-Date Thu Sep 4 14:59:02 CST 2014
Bootloader L1TC10011800
Assignee | ||
Comment 27•10 years ago
|
||
Hi all,
After investigating, it is by design.
Please refer to below link, settings will close bluetooth visibility automatically after 2mins for security concern.
https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/bluetooth.js#L194
We all agree this design let user confuse but we won't improve this issue in this phase, on the other hand our UX team need more time to investigate. So I will filed another bug for tracking and close it first.
Thanks.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(ehung)
Resolution: --- → INVALID
Assignee | ||
Comment 28•10 years ago
|
||
follow up bug 1080427.
You need to log in
before you can comment on or make changes to this bug.
Description
•