Closed Bug 573899 Opened 15 years ago Closed 15 years ago

Only Clients gets synced

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Mardak, Assigned: philikon)

References

Details

(Keywords: regression, Whiteboard: [weave1.4] )

Attachments

(1 file, 4 obsolete files)

Seems like other engines start syncing after a few restarts. Probably related to bug 572436.
Flags: blocking-fx-sync1.4+
Assignee: nobody → philipp
Attached patch v1 (obsolete) — Splinter Review
The problem occurs for me when the Sync add-on is added to a profile for the first time. It goes away on subsequent starts. I'm guessing we're racing add-on setup here. The attached patch fixes this problem by making the call to Weave.Service.onStartup async.
Attachment #453371 - Flags: review?(mconnor)
Attached patch v2 (obsolete) — Splinter Review
Even better, since Weave.Service.onStartup is now async, we can go through Weave.Svc in the overlays and don't have to be cautious about avoiding the 'Weave' namespace.
Attachment #453371 - Attachment is obsolete: true
Attachment #453378 - Flags: review?(mconnor)
Attachment #453371 - Flags: review?(mconnor)
Comment on attachment 453378 [details] [diff] [review] v2 A bunch of services tests are failing
Attachment #453378 - Flags: review-
Is there some way to do a chrome.manifest override for the default prefs so that we can just package them as part of prefs instead of setting them in js?
Attached patch fix up tests (obsolete) — Splinter Review
Fix up tests that depend on Weave.Service.onStartup being run.
Attachment #453511 - Flags: review?(mconnor)
Comment on attachment 453378 [details] [diff] [review] v2 Instead of changing the semantics of importing service.js, it would be more sensible to set the default preferences in an add-on specific component.
Attachment #453378 - Attachment is obsolete: true
Attachment #453378 - Flags: review?(mconnor)
Attachment #453511 - Attachment is obsolete: true
Attachment #453511 - Flags: review?(mconnor)
Hrm.. I was about to suggest that from the component, we could check if the pref isSet, and if not, set it to some default value. However, during setup, we might clear the prefbranch and kill the value from .startOver().
Comment on attachment 453745 [details] [diff] [review] Set default prefs in addon-specific component Hrm, hit Enter too soon... Anyway, this patch moves the default prefs from the overlay code to a separate, add-on specific component.
Attachment #453745 - Flags: review? → review?(mconnor)
(In reply to comment #7) > Hrm.. I was about to suggest that from the component, we could check if the > pref isSet, and if not, set it to some default value. However, during setup, we > might clear the prefbranch and kill the value from .startOver(). None of this is an issue I think since we're setting a *default* pref, not a user pref.
Please, add into glue case branch case SEAMONKEY_ID: engines = ["Form", "History", "Password"]; break;
The previous code has form history password and tabs for seamonkey: http://hg.mozilla.org/services/fx-sync/rev/e5bce5ae1712#l3.18
Apparently tab sync doesn't quite work yet in SeaMonkey (bug 567583) and it's unclear to me what other engines work and don't work, so I left it out for now. I'll be happy to put it back in, but perhaps it'd be better if the SeaMonkey folks would do it themselves?
Add case SEAMONKEY_ID as suggested by Igor (he confirmed that those three engines indeed work on SeaMonkey).
Attachment #453745 - Attachment is obsolete: true
Attachment #453801 - Flags: review?(mconnor)
Attachment #453745 - Flags: review?(mconnor)
Attachment #453801 - Flags: review?(mconnor) → review+
http://hg.mozilla.org/services/fx-sync/rev/177ed7233022 Setting default preferences from overlay code has proven to be too unreliable. Structurally it's also misplaced since it's neither UI nor library code. So instead set the default prefs in a separate, add-on specific component.
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: regression
Resolution: --- → FIXED
Target Milestone: --- → 1.4
Whiteboard: [weave1.4]
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: