Open Bug 1986474 Opened 1 month ago Updated 1 month ago

Bookmark Search Truncates Titles at 255 Characters

Categories

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

Firefox 142
defect

Tracking

()

Tracking Status
firefox-esr115 --- wontfix
firefox-esr128 --- wontfix
firefox-esr140 --- wontfix
firefox142 --- wontfix
firefox143 --- wontfix
firefox144 --- wontfix

People

(Reporter: musixmatch, Unassigned)

References

(Depends on 1 open bug, Regression)

Details

(Keywords: nightly-community, regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0

Steps to reproduce:

Firefox allows bookmark titles of 4096 characters length. I used library search, which clearly cuts search strings at 255 characters, an unexpected and apparently undocumented behaviour.

Example: Bookmark title "Test Bookmarksearch Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll Llanfairpwllgwyngyll 1234567890 12345678 FindMe" (256 characters).

Searching for "FindM" (up to character 255) returns the bookmark, but searching for "FindMe" (up to character 256) returns no results. This limitation is undocumented and restricts search functionality for long titles.

Actual results:

The bookmark search (via Library) only searches the first 255 characters of a bookmark title. For titles with 256+ characters, search terms beyond character 255 are not found.

Additional Info: Firefox extensions for "Advanced Library Search" exhibit the same behaviour, this may indicate an issue in the underlying API.

Expected results:

The Firefox library search should provide full search functionality for long titles. Thank you.

The Bugbug bot thinks this bug should belong to the 'Firefox::Bookmarks & History' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Bookmarks & History

I can reproduce this on Nightly144.0a1 Windows11.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Set release status flags based on info from the regressing bug 907001

:mak, since you are the author of the regressor, bug 907001, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

We limit the search to the first 255 characters for performance reasons. It may be in future that bug 1340487 would allow us to have full text searching of bookmark titles. However in the meantime this is low priority.

Also removing the regression flag, as this was an intentional choice, not a regression in terms of an accidentally introduced bug.

Severity: -- → S3
Depends on: 1340487
Flags: needinfo?(mak)
Priority: -- → P5
See Also: → 907001
You need to log in before you can comment on or make changes to this bug.