Closed
Bug 1317096
Opened 8 years ago
Closed 8 years ago
Bookmarks view no longer correctly shows desktop bookmarks
Categories
(Firefox for iOS :: Sync, defect, P1)
Tracking
()
VERIFIED
FIXED
Iteration:
1.9
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
(Keywords: regression, Whiteboard: [MobileAS])
Attachments
(1 file)
* Install Fx 6 beta.
* Sign in to Sync.
* Sync bookmarks.
You'll notice that all of your desktop bookmarks made it into the DB: if you type part of the URL or title, you'll see them in the suggestions, complete with star. That means they're in the buffer.
You won't, however, see them in the bookmarks list.
On my iPad, I see "Desktop Bookmarks" containing one folder, "Mobile Bookmarks", which includes my server-side mobile bookmarks.
On my iPhone, I see just the empty state.
I think I've been seeing this on iPad since before Bug 1278262, so I haven't had any luck using `git log` to find potential culprits.
Assignee | ||
Updated•8 years ago
|
Keywords: regression
Updated•8 years ago
|
Updated•8 years ago
|
Assignee: nobody → sleroux
Status: NEW → ASSIGNED
status-fxios-v6.0:
--- → affected
Whiteboard: [MobileAS]
Comment 1•8 years ago
|
||
I haven't been able to reproduce this on the simulator/device. Is there any additional steps or does it happen randomly?
Flags: needinfo?(rnewman)
Assignee | ||
Comment 2•8 years ago
|
||
It might be related to my bookmark data. Want me to investigate?
Flags: needinfo?(rnewman)
Comment 3•8 years ago
|
||
Sure if you're able to repro on your device!
Assignee | ||
Comment 4•8 years ago
|
||
2016-11-17 09:28:57.493 [Debug] [SQLiteBookmarksModel.swift:842] modelFactory > Using local+mirror bookmark factory.
2016-11-17 09:28:57.494 [Debug] [SQLiteBookmarksModel.swift:120] modelForRoot() > Getting model for root.
2016-11-17 09:28:57.501 [Debug] [SQLiteBookmarksModel.swift:208] onlyMobile() > No desktop bookmarks. Only showing mobile.
Well, that'll be why.
Assignee | ||
Comment 5•8 years ago
|
||
The reason is that while the buffer contains plenty of bookmarks, it doesn't contain the structure for the four roots:
sqlite> SELECT COUNT(*) FROM bookmarksBuffer;
COUNT(*)
----------
2316
sqlite> SELECT COUNT(*) FROM bookmarksBufferStructure;
COUNT(*)
----------
1789
sqlite> SELECT EXISTS(SELECT 1 FROM bookmarksBufferStructure WHERE parent IN ('menu________', 'toolbar_____', 'unfiled_____', 'mobile______'));
EXISTS(SELECT 1 FROM bookmarksBufferStructure WHERE parent IN ('menu________', 'toolbar_____', 'unfiled_____', 'mobile______'))
---------------------------------------------------------------------------------------------
0
so hasOnlyUnmergedRemoteBookmarks returns 'no', and we use local+mirror.
Assignee | ||
Comment 6•8 years ago
|
||
And here's the root cause:
2016-11-17 10:18:30.531 [Warning] [BookmarkPayload.swift:500] isValid() > Not the places root and missing parent name.
2016-11-17 10:18:30.543 [Warning] [Record.swift:59] fromEnvelope(_:payloadFactory:) > Invalid payload {
"title" : "Bookmarks Toolbar",
"description" : "Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar",
"id" : "toolbar",
"children" : [
"uZJ-SgK5kgE2",
"8RPb1N8Ozaf0",
"ZFI_J-9ihosn",
"B8WxDqcMMQqf",
"nE_IBTKMGA1c",
"5ZO9vzgNn6I8",
"MOi2WFUAYBQJ",
"slf34ON7SOO-",
"5nx3XFeVbGH3",
"loX7JRkZ19Xx",
"63_yHk-4W3lY",
"vq-xRNJKJ_21",
"BZPgOt-0LSjt",
"H4VaXmepqAK2"
],
"parentid" : "places",
"type" : "folder"
}.
Assignee | ||
Comment 7•8 years ago
|
||
Assignee: sleroux → rnewman
Attachment #8811850 -
Flags: review?(sleroux)
Assignee | ||
Updated•8 years ago
|
Component: Home screen → Sync
Comment 8•8 years ago
|
||
Comment on attachment 8811850 [details] [review]
Workaround.
LGTM!
Attachment #8811850 -
Flags: review?(sleroux) → review+
Assignee | ||
Comment 9•8 years ago
|
||
master: 79c6e2a
Steph, could you uplift as you're cutting new betas?
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(sleroux)
Resolution: --- → FIXED
Whiteboard: [MobileAS] → [MobileAS][needsuplift]
Comment 10•8 years ago
|
||
Yup - I'm just about to release b4 but I can make a new one tomorrow.
Flags: needinfo?(sleroux)
Comment 12•8 years ago
|
||
Verifying as fix on 6.0b5. The desktop bookmarks are correctly displayed.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•