Closed Bug 1887736 Opened 1 year ago Closed 1 year ago

no longer possible to delete more than one bookmark separator

Categories

(Firefox :: Bookmarks & History, defect, P3)

defect

Tracking

()

VERIFIED FIXED
126 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox124 --- wontfix
firefox125 --- verified
firefox126 --- verified

People

(Reporter: soeren.hentzschel, Assigned: mak)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [sng])

Attachments

(2 files)

STR:

  1. Make sure that you have more than one bookmark separator.
  2. Open the library, make a right click on a bookmark separator and delete it.
  3. Repeat step 2.

Actual:

Removing the separator works for the first one, but not for the second.

Expected:

Removing the separator always work.

Flags: needinfo?(mak)

thanks, there may be a bug in how the fingerprint is calculated (I suspect guid is not the right property to use here and url is wallpapering the bug).

Assignee: nobody → mak
Status: NEW → ASSIGNED
Flags: needinfo?(mak)
Whiteboard: [sng]

nsINavHistoryResultNode.guid doesn't exist, so this always falls back to uris;
unfortunately separators don't have a uri.

:mak can you set a severity on this? is this something we are going to want to uplift to beta and possibly the planned dot release?

Flags: needinfo?(mak)

Yeah sorry, I don't think it's super common to delete multiple consecutive separators as separate operations, but I think it would be nice to fix it as it's a pretty safe code change.
The workaround is also a bit awkward, user must delete something else between one separator and the next one.

Severity: -- → S3
Flags: needinfo?(mak)
Priority: -- → P3
See Also: → 1887989
Duplicate of this bug: 1887989
See Also: 1887989
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/e9f94a7954e1 Fix bookmark removal signature to use the proper guid properties. r=daisuke,places-reviewers

Backed out for causing mochitests failures in test_bug549192.xhtml.

Flags: needinfo?(mak)

The failure is because pageGuid and bookmarkGuid, according to the idl, may return an empty string instead of null. It doesn't make a lot of sense, but I also don't want to take risks here changing that detail, as I'd like to uplift the fix.
I'll just use ||, instead of the nullish coalesce operator, that will handle empty strings correctly.

Flags: needinfo?(mak)
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/9c458764557d Fix bookmark removal signature to use the proper guid properties. r=daisuke,places-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

nsINavHistoryResultNode.guid doesn't exist, so this always falls back to uris;
unfortunately separators don't have a uri.

Original Revision: https://phabricator.services.mozilla.com/D205716

Attachment #9393713 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • Fix verified in Nightly: no
  • Steps to reproduce for manual QE testing: Steps are well explained in the bug opening comment, see also Bug 1887989.
  • Needs manual QE test: yes
  • Risk associated with taking this patch: low
  • User impact if declined: Removing multiple separators consecutively, or removing multiple bookmarks with the same uri silently fails
  • String changes made/needed: no
  • Is Android affected?: no
  • Explanation of risk level: Simple change with good test coverage
  • Code covered by automated testing: yes
Flags: qe-verify+
Flags: in-testsuite+
Attachment #9393713 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I was able to reproduce the issue on an affected Firefox Nightly build 126.0a1 20240326164915 on macOS 12.6.6.
Verified the issue as fixed on Firefox Nightly 126.0a1 build ID 20240328213634 / Firefox Beta 125.0b6 build ID 20240328143539, from Treeherder, on macOS 12.6.6, Windows 11 and Ubuntu 22.04.
Now it is possible to remove multiples bookmark separators.
I have also verified as fixed the scenarios specified in the duplicate https://bugzilla.mozilla.org/show_bug.cgi?id=1887989#c5 in all the above mentioned OSes.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: