Closed
Bug 669199
Opened 14 years ago
Closed 13 years ago
Fennec "Enable Sync" checkbox is wrong
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox9 fixed, fennec9+)
VERIFIED
FIXED
Firefox 9
People
(Reporter: rnewman, Assigned: lucasr)
References
Details
Attachments
(1 file, 1 obsolete file)
13.20 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
All it does right now is log in and log out.
http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/sync.js#255
That's not a useful operation: on the next scheduled sync, Sync will just log in again, and then the checkbox (and Fennec's browser.sync.enabled pref!) will be misleading. Logging out won't (IIRC) stop the next sync.
If enabling or disabling Sync is a requirement, then we need to bake this into the Service interface properly. Right now this checkbox should be ripped out, because it's plain wrong.
Reporter | ||
Comment 1•14 years ago
|
||
CCing Fennec General in the hopes of getting an opinion.
Comment 2•14 years ago
|
||
(In reply to comment #1)
> CCing Fennec General in the hopes of getting an opinion.
Sync's Fennec UI is owned by the Mobile UI team, so moving this bug to the Fennec :: General component.
Component: Firefox Sync: UI → General
Product: Mozilla Services → Fennec
QA Contact: sync-ui → general
Version: unspecified → Trunk
Updated•14 years ago
|
Priority: -- → P1
![]() |
||
Comment 4•13 years ago
|
||
For the record: The checkbox reenables itself after unchecking.
Comment 5•13 years ago
|
||
(In reply to Archaeopteryx [:aryx] from comment #4)
> For the record: The checkbox reenables itself after unchecking.
If you're seeing this in recent nightly builds, it is probably bug 687298.
tracking-fennec: --- → ?
Comment 6•13 years ago
|
||
Madhava, I seem to recall that we were planning on removing the "enable sync" checkbox anyway as part of an upcoming UI change. Is that still planned, and is there a bug for it?
Keywords: uiwanted
Comment 7•13 years ago
|
||
Let's just make sure Sync is enabled by default and remove this checkbox altogether.
tracking-fennec: ? → 9+
Updated•13 years ago
|
Assignee: nobody → mbrubeck
Updated•13 years ago
|
Assignee: mbrubeck → lucasr.at.mozilla
Assignee | ||
Comment 8•13 years ago
|
||
Attachment #561744 -
Flags: review?(mark.finkle)
Comment 9•13 years ago
|
||
Comment on attachment 561744 [details] [diff] [review]
Remove checkbox to enable/disable sync from preferences UI
r+, but let's also remove all occurrences of "browser.sync.enabled" since we should be assuming it's always true now. "browser.sync.enabled" was a Fennec only, made up pref. Not part of the real Sync engine.
Attachment #561744 -
Flags: review?(mark.finkle) → review+
Comment 10•13 years ago
|
||
Comment on attachment 561744 [details] [diff] [review]
Remove checkbox to enable/disable sync from preferences UI
There's some more code that will need to be removed, including the references to the autosync checkbox in mobile/chrome/content/sync.js. Make sure we are not regressing bug 624552.
Attachment #561744 -
Flags: review+ → review?(mark.finkle)
Updated•13 years ago
|
Attachment #561744 -
Flags: review?(mark.finkle)
Comment 11•13 years ago
|
||
Lucas - Matt is referring to:
http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/sync.js#383
where we do a document.getElementById("sync" + foo)
and foo will be "autosync"
More locations:
http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/sync.js#404 (and any use of autosync variable)
http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/sync.js#260 (all of toggleSyncEnabled)
Assignee | ||
Comment 12•13 years ago
|
||
Here's a more complete patch removing everything related to enabling/disabling sync in Fennec. I've also ensured that we're not regressing on bug 624552.
Attachment #561744 -
Attachment is obsolete: true
Attachment #562130 -
Flags: review?(mbrubeck)
Comment 13•13 years ago
|
||
Comment on attachment 562130 [details] [diff] [review]
Remove ability to enable/disable sync from preferences UI
There's also the 'syncEnabled' variable in the 'observe' method which should go away: https://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/sync.js#410
Attachment #562130 -
Flags: feedback-
Assignee | ||
Comment 14•13 years ago
|
||
(In reply to Philipp von Weitershausen [:philikon] from comment #13)
> Comment on attachment 562130 [details] [diff] [review] [diff] [details] [review]
> Remove ability to enable/disable sync from preferences UI
>
> There's also the 'syncEnabled' variable in the 'observe' method which should
> go away:
> https://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/sync.
> js#410
My new patch removes it.
Comment 15•13 years ago
|
||
Comment on attachment 562130 [details] [diff] [review]
Remove ability to enable/disable sync from preferences UI
Nice!
Attachment #562130 -
Flags: review?(mbrubeck) → review+
Comment 16•13 years ago
|
||
Comment on attachment 562130 [details] [diff] [review]
Remove ability to enable/disable sync from preferences UI
Sorry, I must obviously have been blind. Great patch! (I wish diff -p would actually recognize JS methods and not print "var BrowserUI = {" like in this case.)
Attachment #562130 -
Flags: feedback-
Comment 17•13 years ago
|
||
Comment 18•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → Firefox 9
Updated•13 years ago
|
Flags: in-litmus?(fennec)
Comment 19•13 years ago
|
||
Verified fixed on:
Mozilla/5.0 (Android;Linux armv7l;rv:9.0a1)Gecko/20110927
Firefox/9.0a1 Fennec/9.0a1
Device: Acer ICONIA A500
OS: Android 3.1
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
status-firefox9:
--- → fixed
Comment 20•13 years ago
|
||
Test case added: https://litmus.mozilla.org/show_test.cgi?id=33517
Flags: in-litmus?(fennec) → in-litmus+
You need to log in
before you can comment on or make changes to this bug.
Description
•