Closed Bug 2028730 Opened 4 months ago Closed 4 months ago

Hide dismiss autofill menu item in private browsing mode

Categories

(Firefox :: Address Bar, task, P1)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

The adaptive autofill result menu currently shows a "Dismiss" option in PBM.

Since dismissals write a block timestamp to the Places database (which persists across sessions) but re-integration isn't enabled for PBM (nor backspace blocking), it doesn't make sense to offer this action in private browsing. The "Remove from history" option should still appear for non-origin adaptive URL results, since that action is available for regular history results in private browsing.

See Also: → 2019651

This patch passes isPrivate from the query context to getResultCommands() in
the autofill provider and suppresses the dismiss_autofill command when in
a private browsing context. If no commands remain (e.g. for origin results
in PBM), the provider returns undefined so no menu button is shown.

Assignee: nobody → jteow
Attachment #9563435 - Attachment description: WIP: - Bug 2028730 - Hide dismiss autofill menu item in private browsing mode - r?mak! → Bug 2028730 - Hide dismiss autofill menu item in private browsing mode - r?mak!
Status: NEW → ASSIGNED
Pushed by jteow@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9e1dbd865514 https://hg.mozilla.org/integration/autoland/rev/296f03dabfe4 Hide dismiss autofill menu item in private browsing mode - r=urlbar-reviewers,mak
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
QA Whiteboard: [search] [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: