Closed
Bug 586094
Opened 14 years ago
Closed 14 years ago
Enabling Sync regresses Ts on all platforms.
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: mconnor, Assigned: mconnor)
References
Details
Attachments
(2 files)
13.15 KB,
patch
|
Details | Diff | Splinter Review | |
9.28 KB,
patch
|
Dolske
:
review+
beltzner
:
approval2.0+
|
Details | Diff | Splinter Review |
Fennec doesn't have this, so it looks like Firefox is importing things too early. This patch appears to fix the issue, still needs a bit of cleanup. We'll be pushing this to Try with Talos coverage and getting results ASAP.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → mconnor
Assignee | ||
Comment 1•14 years ago
|
||
* Cull gSyncUI.init down to just weave:service:ready and set up the rest of the UI when that fires. * Default to no "Connect" label in the statusbar until we init the UI (so we don't always show Connect for 5-10 seconds) * Don't init via browserGlue, just let the Weave.js auto-import happen. ** In browserglue, listen for weave:service:ready and delay autoconnect appropriately. (We should probably subtract whatever delay Weave.js introduces) The previous version mostly nailed Ts back to where it started, this version should get us there (or close enough). Waiting on try to prove that, but we should be good to go tomorrow once this has review.
Attachment #465111 -
Flags: review?(dolske)
Comment 2•14 years ago
|
||
Comment on attachment 465111 [details] [diff] [review] v1 >+ Services.obs.addObserver(this, "weave:service:ready", true); ... >+ obs.forEach(function(topic) { >+ Services.obs.addObserver(self, topic, true); >+ }); One "hmmm" -- I thought adding weak-reference observers didn't work unless you explicitly added a nsISupportsWeakReference QI. But I guess since there's no QI at all here, you get the xpconnect "yes this object supports all interfaces!" magic, and in turn the weakref-for-js-objects magic also works.
Attachment #465111 -
Flags: review?(dolske) → review+
Assignee | ||
Comment 3•14 years ago
|
||
I did in fact add that, and the nsIObserver QI, rather than relying on magic!
Comment 4•14 years ago
|
||
Comment on attachment 465111 [details] [diff] [review] v1 a=beltzner
Attachment #465111 -
Flags: approval2.0+
Comment 5•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/6b5c4e509001
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•14 years ago
|
||
Still have a small regression on Ts/WinXP bug 587036 filed to track that.
You need to log in
before you can comment on or make changes to this bug.
Description
•