Closed Bug 486042 Opened 15 years ago Closed 15 years ago

"Load this bookmark in the sidebar" status not synced

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: grenavitar, Assigned: mishail.mishail)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Build Identifier: 

The "Load this bookmark in the sidebar" option for every bookmark in Firefox is not being synced by Weave resulting in it having to be manually set on every client.  This mainly affects applets like Google Talk gadget which encourage users to open them in the sidebar.

Reproducible: Always

Steps to Reproduce:
1. Mark a bookmark as "Load this bookmark in the sidebar" in client one
2. Download from cloud to client two
3. Open bookmark in client
Actual Results:  
The bookmark will open as a full page.

Expected Results:  
The bookmark should open in the sidebar
Summary typo fix s/snyced/synced
Summary: "Load this bookmark in the sidebar" status not snyced → "Load this bookmark in the sidebar" status not synced
Attachment #371212 - Flags: review?(thunder)
Comment on attachment 371212 [details] [diff] [review]
check for "bookmarkProperties/loadInSidebar" annotation

Will not sync changes if we'll clear a checkmark
Attachment #371212 - Attachment is obsolete: true
Attachment #371212 - Flags: review?(thunder)
Attached patch v2 patch (obsolete) — Splinter Review
Hope that will work
Attachment #371226 - Flags: review?(thunder)
Also, the condition in BMT_onItemChanged shall be chaged to:


>    // ignore annotations except for the ones that we sync
>    if (isAnno && (property != "livemark/feedURI" ||
>		   property != "livemark/siteURI" ||
>		   property != "microsummary/generatorURI")
>           &&
>           property != "bookmarkProperties/loadInSidebar")
>	return;
(In reply to comment #5)
New version of the patch
Attachment #371226 - Attachment is obsolete: true
Attachment #371401 - Flags: review?(thunder)
Attachment #371226 - Flags: review?(thunder)
Target Milestone: -- → 0.4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #371401 - Flags: review?(thunder) → review?(edilee)
Component: Weave → General
Product: Mozilla Labs → Weave
QA Contact: weave → general
The patch has been bitrotted by a number of landings from the dependency, but I'll update the patch for those.
Depends on: 488142, 488182, 488190
Comment on attachment 371401 [details] [diff] [review]
v3 pacth. With changes in BookmarksTracker

>@@ -206,16 +206,22 @@ BookmarksStore.prototype = {
>+        this._ans.setItemAnnotation(newId, "bookmarkProperties/loadInSidebar",
>+                                    1, 0,
Places sets the annotation to true instead of 1, so we should follow that even though places only checks for "hasAnnotation."

>@@ -471,16 +488,24 @@ BookmarksStore.prototype = {
>+  _isLoadInSidebar: function BStore__isLoadInSidebar(id) {
>+    try {
>+      return this._ans.itemHasAnnotation(id, "bookmarkProperties/loadInSidebar");
No need to wrap this in a try/catch.

>@@ -714,17 +740,19 @@ BookmarksTracker.prototype = {
>     // ignore annotations except for the ones that we sync
>     if (isAnno && (property != "livemark/feedURI" ||
> 		   property != "livemark/siteURI" ||
>-		   property != "microsummary/generatorURI"))
>+		   property != "microsummary/generatorURI")
>+           &&
>+           property != "bookmarkProperties/loadInSidebar")
Why not follow the existing pattern? We can clean this up with an array check, but we might want to store some non-local array of annotations to track.
Attachment #371401 - Flags: review?(edilee) → review+
http://hg.mozilla.org/labs/weave/rev/f96307ab1900

Thanks!
Assignee: nobody → mishail.mishail
Status: NEW → RESOLVED
Closed: 15 years ago
Component: General → Sync
QA Contact: general → sync
Resolution: --- → FIXED
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: