Closed Bug 1846085 Opened 2 years ago Closed 2 years ago

Treat "how to" as one word when matching prefixes for Pocket suggestions

Categories

(Firefox :: Address Bar, task, P1)

task

Tracking

()

VERIFIED FIXED
118 Branch
Tracking Status
firefox117 --- verified
firefox118 --- verified

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f68a898090ef Treat "how to" as one word when matching prefixes for Pocket suggestions. r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

STR for QA

  1. Set browser.urlbar.pocket.featureGate = true to enable Pocket suggestions and browser.urlbar.bestMatch.enabled = true to enable best match
  2. Type "how" and verify a low-confidence Pocket suggestion appears with the keyword "how scientists discovered helium" (It should not be a keyword that starts with "how to")
  3. Continue typing "how t" (no "o" at the end) and verify no suggestion appears whose keyword starts with "how to"
  4. Finish typing "how to" and verify a low-confidence suggestion appears with a keyword that starts with "how to"

These are all the low-confidence keywords that start with "how to". After you finish typing "how to", you should be able to trigger each of them by continuing to type them:

how to take a picture of the moon
how to enjoy being single
how to wash your face
how to be grateful
how to keep your cool
how to manage your anger at work
how to manage your anger (this one might not trigger since it starts with the same text as the previous one)
how to be happy when everyone else's life looks perfect
how to do market research
how to set business goals
how to experience yellowstone in every season

These are the high-confidence keywords that start with "how to". You should have to type each full keyword in order to trigger it, no prefix matching:

how to fix childcare
how to fix child care
how to get clearer skin
how to get clearer skin
how to recognize burnout
how to recover from burnout
how to prevent burnout
how to recognize burnout
how to regulate emotions
how to regulate emotions adults
how to process your feelings
how to feel your feelings
how to make friends as adults
how to make friends as an adult
how to make friends
how to make new friends
how to keep friends
how to maintain friendships
how to improve mental health
how to start a business
how to travel when it's so expensive
how to rewire habits
how to change habits
how to change my habits
how to break habits
how to break bad habits
how to manage zoom brain
Flags: qe-verify+
Flags: in-testsuite+

Comment on attachment 9346331 [details]
Bug 1846085 - Treat "how to" as one word when matching prefixes for Pocket suggestions.

Beta/Release Uplift Approval Request

  • User impact if declined: This is required for the Pocket suggestions feature we intend to ship as an experiment in 117.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Please see previous comment
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small change that only affects Pocket suggestions in the urlbar, which are preffed off by default. Has a test.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9346331 - Flags: approval-mozilla-beta?
QA Whiteboard: [qa-triaged]

We verified this issue on the latest Firefox Nightly 118.0a1 (Build ID: 20230803094549) on Windows 10 x64, macOS 12.6.1, and Ubuntu 20.04 x64.

  • a low- confidence Pocket suggestion is displayed when typing “how” inside the Address Bar (for the "how scientists discovered helium" keyword);
  • there is no Pocket suggestion displayed when typing the “how t” text in the Address Bar;
  • a low- confidence Pocket suggestion is displayed when typing “how to” inside the Address Bar (for the "how to make a salad" keyword);
  • the low-confidence keywords that start with “how to” are displayed when continuing to type the rest of the keyword

E.g.
“how to t” displays the result for the “how to talk to kids about climate change”
“how to take” displays the result for the “how to take a picture of the moon”
“how to e” displays the result for the “how to enjoy being single” etc.

  • the high-confidence keywords that start with “how to” are displayed only when typing the complete keyword

E.g.
“how to fix childcare”
“how to recognize burnout”
“how to change habits” etc.

Comment on attachment 9346331 [details]
Bug 1846085 - Treat "how to" as one word when matching prefixes for Pocket suggestions.

Approved for 117.0b3.

Attachment #9346331 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

We verified this issue on the latest Firefox Beta 117.0b3 (Build ID: 20230803180221) on Windows 10 x64, macOS 12.6.1, and Ubuntu 20.04 x64.

  • a low- confidence Pocket suggestion is displayed when typing “how” inside the Address Bar (for the "how scientists discovered helium" keyword);
  • there is no Pocket suggestion displayed when typing the “how t” text in the Address Bar;
  • a low- confidence Pocket suggestion is displayed when typing “how to” inside the Address Bar (for the "how to make a salad" keyword);
  • the low-confidence keywords that start with “how to” are displayed when continuing to type the rest of the keyword

E.g.
“how to t” displays the result for the “how to talk to kids about climate change”
“how to take” displays the result for the “how to take a picture of the moon”
“how to e” displays the result for the “how to enjoy being single” etc.

  • the high-confidence keywords that start with “how to” are displayed only when typing the complete keyword

E.g.
“how to fix childcare”
“how to recognize burnout”
“how to change habits” etc.

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: