Closed
Bug 1380835
Opened 7 years ago
Closed 7 years ago
Don't flag queries that reference their containing folder and `excludeQueries` as cycles
Categories
(Firefox :: Sync, defect, P1)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
Firefox 56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: lina, Assigned: lina)
References
Details
Attachments
(1 file)
About Sync shows I have a cycle through "Recently Bookmarked", which is a query in the menu with the URL `place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1`. IIUC, `excludeQueries` means the query will exclude itself from the result, so there's no cycle.
Assignee | ||
Comment 1•7 years ago
|
||
(It should also probably include folder=MOBILE_BOOKMARKS, but that's another bug).
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → kit
Status: NEW → ASSIGNED
Priority: -- → P1
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8886459 [details] Bug 1380835 - Don't check queries with `excludeQueries` for cycles in the bookmark validator. https://reviewboard.mozilla.org/r/157244/#review162526 One minor concern but other than that, makes sense to me. ::: services/sync/modules/bookmark_validator.js:255 (Diff revision 1) > for (let entry of recordsByQueryId.values()) { > if (entry.type !== "query" && (!entry.bmkUri || !entry.bmkUri.startsWith(QUERY_PROTOCOL))) { > continue; > } > let params = new URLSearchParams(entry.bmkUri.slice(QUERY_PROTOCOL.length)); > + if (params.get("excludeQueries") === "1") { Does the equality check here match the other uses of excludeQueries (e.g. the code that actually filters them?)
Attachment #8886459 -
Flags: review?(tchiovoloni) → review+
Assignee | ||
Comment 4•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8886459 [details] Bug 1380835 - Don't check queries with `excludeQueries` for cycles in the bookmark validator. https://reviewboard.mozilla.org/r/157244/#review162526 > Does the equality check here match the other uses of excludeQueries (e.g. the code that actually filters them?) I added `"true"` as well, to match `nsNavHistoryQuery::ParseQueryBooleanString`. `AppendBoolKeyValueIfTrue` will always serialize true values as `=1`, but it's good to be thorough.
Comment hidden (mozreview-request) |
Pushed by kcambridge@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9158194b483 Don't check queries with `excludeQueries` for cycles in the bookmark validator. r=tcsc
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e9158194b483
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
You need to log in
before you can comment on or make changes to this bug.
Description
•