duckduckgo / duckduckgo/Android

[Bug] "Find in page" incorrectly starts from '5/16' instead of '1/16' when the page is at the top

Open
#5,636 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs triage
Dominant language
Kotlin
Stars
4.8k
Forks
1.4k
Avg merge
2d 17h
Merged PRs (30d)
170

Description

Describe the bug

The search results display '5/16

https://github.com/user-attachments/assets/8f9a284e-167c-4117-8ad3-bf66ab89cda1

' as the initial match.

How to Reproduce
  1. Open the page you want to search, e.g., www.wikipedia.org.
  2. Tap the 'three-dot' menu button.
  3. Tap 'Find in page' button.
  4. Enter your search term or phrase in the search bar, e.g., 'h'.
Expected behavior

The search results should display '1/16' as the initial match, especially since the page is at the top without any scrolling.

Environment
- DDG App Version: 5.225.0 (52250000)
- Device: Galaxy S21 5G
- OS:Android 12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Find in page flow described on the DuckDuckGo Android app using the listed app version, Galaxy S21 5G, and Android 12, then inspect the search navigation behavior when the page is at the top. Done means the first search result displays as 1/16 rather than 5/16 for the reported example.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.