Closed
Bug 1131414
Opened 9 years ago
Closed 9 years ago
Change sync UI to pretend there is a "reading list" engine
Categories
(Firefox :: Sync, defect, P1)
Firefox
Sync
Tracking
()
People
(Reporter: markh, Assigned: markh)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
5.44 KB,
patch
|
rnewman
:
review+
rnewman
:
feedback+
|
Details | Diff | Splinter Review |
17.80 KB,
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
There are a couple of places where we list the "sync engines" in the UI. We need to add "reading list" to this even though it will not be implemented as a real sync engine.
Flags: qe-verify-
Flags: firefox-backlog+
Comment 1•9 years ago
|
||
I had not realised we listed this anywhere other than the Sync pane in preferences... will we need any strings other than what I mentioned in bug 1129288 comment 5?
Flags: needinfo?(mhammond)
Assignee | ||
Comment 2•9 years ago
|
||
(In reply to Blair McBride [:Unfocused] (I don't read bugmail - needinfo? me!) from comment #1) > I had not realised we listed this anywhere other than the Sync pane in > preferences... will we need any strings other than what I mentioned in bug > 1129288 comment 5? AFAIK, that's it!
Flags: needinfo?(mhammond)
Updated•9 years ago
|
Priority: -- → P1
Updated•9 years ago
|
Assignee: nobody → mhammond
Status: NEW → ASSIGNED
Iteration: --- → 39.2 - 23 Mar
Assignee | ||
Comment 3•9 years ago
|
||
This is roughly the minimum we can do today to "disable" sync if none of its engines are enabled, and I think roughly reflects what Richard and I chatted about in IRC. It adds a new pref for the global state of Sync. Service.enabled is now a getter that reflects the state of the pref. The pref has a default of true and is only set to false by the UI bits (in part 2). I also needed to add one more check for the enabled state as enginesync.js threw when .enabled was false, which I suspect is simply due to it being rarely tested that way. Note that we *do* still need to initialize the identity object even when disabled as browserid_identity has magic we need but can't reasonably refactor in time for reading-list.
Attachment #8575817 -
Flags: feedback?(rnewman)
Assignee | ||
Comment 4•9 years ago
|
||
Hopefully somewhat obvious - new checkboxes for the "reading list" engine, which is hidden by default and only shown when both the browser.readinglist.enabled pref is true and FxA sync is used. Note that the dialog-based prefs changes are not complete yet, which should be simple to fix, but I think it's still worth getting early feedback.
Attachment #8575818 -
Flags: feedback?(adw)
Updated•9 years ago
|
Attachment #8575818 -
Flags: feedback?(adw) → feedback+
Comment 5•9 years ago
|
||
Comment on attachment 8575817 [details] [diff] [review] 0006-Bug-1131414-part-1-add-a-pref-to-indicate-if-sync-is.patch Review of attachment 8575817 [details] [diff] [review]: ----------------------------------------------------------------- ::: services/sync/modules/service.js @@ +305,5 @@ > return false; > }, > > + // The global "enabled" state comes from prefs, and will be set to false > + // whenever the UI that exposes what to Sync finds all Sync engines disabled. First "sync" should be lowercase.
Attachment #8575817 -
Flags: feedback?(rnewman) → feedback+
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8575817 [details] [diff] [review] 0006-Bug-1131414-part-1-add-a-pref-to-indicate-if-sync-is.patch Review of attachment 8575817 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the feedback, and I think this is ready to roll, so requesting review (and please assume I'll fix that typo)
Assignee | ||
Updated•9 years ago
|
Attachment #8575817 -
Flags: review?(rnewman)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8575818 [details] [diff] [review] 0007-Bug-1131414-part-2-add-the-reading-list-engine-to-Sy.patch Thanks Drew!
Attachment #8575818 -
Flags: review?(adw)
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8575818 [details] [diff] [review] 0007-Bug-1131414-part-2-add-the-reading-list-engine-to-Sy.patch Ack, sorry, getting ahead of myself - I need to address those XXX comments.
Attachment #8575818 -
Flags: review?(adw)
Assignee | ||
Comment 9•9 years ago
|
||
Same patch as before, but with the RL engine's checkbox in the correct place.
Attachment #8575818 -
Attachment is obsolete: true
Attachment #8578320 -
Flags: review?(adw)
Comment 10•9 years ago
|
||
Comment on attachment 8575817 [details] [diff] [review] 0006-Bug-1131414-part-1-add-a-pref-to-indicate-if-sync-is.patch Review of attachment 8575817 [details] [diff] [review]: ----------------------------------------------------------------- See the nit comment from the feedback. Otherwise, if it works, FEEL GOOD.
Attachment #8575817 -
Flags: review?(rnewman) → review+
Comment 11•9 years ago
|
||
Comment on attachment 8578320 [details] [diff] [review] 0006-Bug-1131414-part-2-add-the-reading-list-engine-to-Sy.patch Review of attachment 8578320 [details] [diff] [review]: ----------------------------------------------------------------- It looks like the XXX comment in onPreferenceChanged is still there, but r+ with that addressed however you think it should be.
Attachment #8578320 -
Flags: review?(adw) → review+
Assignee | ||
Comment 12•9 years ago
|
||
Thanks for the review, but I had to make significant changes to the dialog-based prefs, due to them being "instant apply" on Mac and "modal" on Windows (and preferences.xml doesn't really support that). So I just hook up a preference observer, and take the action whenever the dialog gets around to actually setting the prefs. Given these changes I think it's work an additional look over.
Attachment #8578320 -
Attachment is obsolete: true
Attachment #8579520 -
Flags: review?(adw)
Comment 13•9 years ago
|
||
Comment on attachment 8579520 [details] [diff] [review] 0006-Bug-1131414-part-2-add-the-reading-list-engine-to-Sy.patch Review of attachment 8579520 [details] [diff] [review]: ----------------------------------------------------------------- Looks fine to me! Will be nice when we don't have to worry about the dialog-based prefs anymore...
Attachment #8579520 -
Flags: review?(adw) → review+
Assignee | ||
Comment 14•9 years ago
|
||
remote: https://hg.mozilla.org/integration/fx-team/rev/933b795a1fc1 remote: https://hg.mozilla.org/integration/fx-team/rev/ac91a79c4cab
https://hg.mozilla.org/mozilla-central/rev/933b795a1fc1 https://hg.mozilla.org/mozilla-central/rev/ac91a79c4cab
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Comment 16•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/bf356118c79e https://hg.mozilla.org/releases/mozilla-aurora/rev/395fa1ecf377
status-firefox38:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•