Open
Bug 584771
Opened 14 years ago
Updated 2 years ago
Have applications initialize Sync at the appropriate time, rather than using implicit delayed initialization
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
NEW
People
(Reporter: philikon, Unassigned)
References
(Blocks 2 open bugs)
Details
Weave.js imports services.js 10 secs after final-ui-startup. It should leave it up to the application to do this.
Comment 1•14 years ago
|
||
As far as I can see, it now imports main.js:
https://hg.mozilla.org/services/services-central/file/5fb27adf75a9/services/sync/Weave.js#l67
Still stuff to do here?
Reporter | ||
Comment 2•14 years ago
|
||
Well, I still think that Weave.js component is bogus. The app should be responsible for starting up Sync when *it* wants to (e.g. on idle?). Having Sync start up at some stupid random interval is just, well, stupid.
Updated•14 years ago
|
Summary: Get rid of service.js import in Weave.js → remove automagic Sync initialization, require apps to init on their schedule
Comment 3•13 years ago
|
||
Unintended consequences: on Fennec, where we start up ALL THE DAMN TIME, we end up not syncing the link you just opened… because Sync isn't running yet. Mammoth fail.
Updated•13 years ago
|
Priority: -- → P2
Summary: remove automagic Sync initialization, require apps to init on their schedule → fix init to be sane and app-appropriate
Comment 4•12 years ago
|
||
Looks like this might get fixed soon.
Updated•12 years ago
|
Priority: P2 → --
Summary: fix init to be sane and app-appropriate → Have applications initialize Sync at the appropriate time, rather than using implicit delayed initialization
Comment 5•12 years ago
|
||
Somewhat related bug: bug 692420
Comment 6•12 years ago
|
||
Thanks, Gavin.
It does seem like a dep-aware execution queue would be a good solution to this… I'm going to mark that bug as a dependency, even if we end up doing the same thing differently.
Depends on: JSScheduleAPI
Assignee | ||
Updated•6 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•