Closed Bug 1948019 Opened 1 year ago Closed 2 months ago

"Forget About This Site" context menu option missing from Firefox View history

Categories

(Firefox :: Firefox View, defect, P2)

Firefox 137
defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox137 --- wontfix
firefox151 --- fixed

People

(Reporter: ke5trel, Assigned: rosemary.chukwuka.241793, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [fidefe-firefox-view][outreachy-sidebar-2026])

Attachments

(2 files)

STR:

  1. Visit about:firefoxview#history.
  2. Click the ellipses "..." for a page.

Expected:
"Forget About This Site" menu item appears like with history in Hamburger menu, Library (Ctrl+Shift+O) and old sidebar.

Actual:
Only "Delete from history" is available which clears individual pages but not entire sites.

See Also: → 1919475

The severity field is not set for this bug.
:sfoster, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sfoster)
Severity: -- → S3
Flags: needinfo?(sfoster)
Priority: -- → P2
Whiteboard: [fidefe-firefox-view]

To help Mozilla out with this bug, here's the steps:

  1. Comment here on the bug that you want to volunteer to help.
    This will tell others that you're working on the next steps.
  2. Download and build the Firefox source code
  3. Start working on this bug.
    • If you have any problems with this bug,
      please comment on this bug and set the needinfo flag for me.
      Also, you can find me and my teammates on the #sidebar channel on
      Element/Matrix
      most hours of most days.
  4. Build your change with mach build and test your change with
    mach test browser/components/firefoxview/tests/browser.
    Also check your changes for adherence to our style guidelines by using mach lint
  5. Submit the patch (including an automated test, if applicable) for review.
    Mark me as a reviewer so I'll get an email to come look at your code.
  6. After a series of reviews and changes to your patch,
    I'll mark it for checkin or push it to autoland.
    Your code will soon be shipping to Firefox users worldwide!
  7. ...now you get to think about what kind of bug you'd like to work on next.
    Let me know what you're interested in and I can help you find your next contribution.

Hi! I'm Rosemary Chukwuka, an Outreachy applicant. I'd like to work on this bug. Could you please assign it to me? I'm excited to contribute to Firefox

Hi! I'm Rosemary Chukwuka, an Outreachy applicant. I have submitted a patch for this bug to Phabricator:
https://phabricator.services.mozilla.com/D289065
Changes made:

Added forgetAboutThisSite() method to history.mjs
Added new panel-item to the context menu in panelListTemplate()

Please let me know if any changes are needed. Thank you!

Added "Forget About This Site" context menu option to Firefox View
history (history.mjs).

Changes:

  • Added forgetAboutThisSite() method to HistoryInView class
  • Added new panel-item to panelListTemplate() context menu

This mirrors the existing functionality in sidebar-page.mjs
(lines 171-188) as suggested in the bug comments.

Assignee: nobody → rosemary.chukwuka.241793
Status: NEW → ASSIGNED
Attachment #9556058 - Attachment description: WIP: Bug 1948019 - Add Forget About This Site option to Firefox View history context menu → Bug 1948019 - Add Forget About This Site option to Firefox View history context menu
Whiteboard: [fidefe-firefox-view] → [fidefe-firefox-view][outreachy-sidebar-2026]
Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/538fb948475a https://hg.mozilla.org/integration/autoland/rev/32727430f793 Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5728b324b0d6 https://hg.mozilla.org/integration/autoland/rev/b77a2ae11470 Revert "Bug 1948019 - Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson" for causing bc failures @ browser_firefoxview_general_telemetry

Backed out for causing bc failures

Flags: needinfo?(rosemary.chukwuka.241793)

Hi! Thank you for letting me know. I'm looking into the test failures and will work on a fix. Could you point me to what exactly failed so I can address it?
Best regards,
Rosemary Chukwuka

Flags: needinfo?(rosemary.chukwuka.241793)

NIing Nikki so she's aware of the backout and may assist

Flags: needinfo?(nsharpley)

Hi Kelly and Nikki! I've identified and fixed the issue. The forgetAboutThisSite function was missing the recordContextMenuTelemetry("forget-about-this-site", e) call, and there was no corresponding telemetry test. I've added both fixes and resubmitted D289065. Please let me know if any further changes are needed!
Best regards, Rosemary Chukwuka

Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ba58adebac84 https://hg.mozilla.org/integration/autoland/rev/2701ae150a9b Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a697e0a43116 https://hg.mozilla.org/integration/autoland/rev/54dbf39ec410 Revert "Bug 1948019 - Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson" for causing lint failures @firefoxview/history.mjs.

Backed out for causing lint failures @firefoxview/history.mjs.

Flags: needinfo?(rosemary.chukwuka.241793)

Hi! I saw the lint failure in history.mjs and I'm working on fixing it right now. Will resubmit shortly!
Best regards,
Rosemary Chukwuka

Flags: needinfo?(rosemary.chukwuka.241793)
Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/34e5a96fc388 https://hg.mozilla.org/integration/autoland/rev/c0c69134db50 Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/47f1a1c3db8d https://hg.mozilla.org/integration/autoland/rev/b605dca7757a Revert "Bug 1948019 - Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson" for causing bc failures @browser_firefoxview_general_telemetry.js.

Backed out for causing bc failures @browser_firefoxview_general_telemetry.js.

Flags: needinfo?(rosemary.chukwuka.241793)

Hi! I saw the backout. I'm looking into the telemetry test failure and will work on a fix. Could you share what exactly is failing in browser_firefoxview_general_telemetry.js?
Best regards, Rosemary Chukwuka

Flags: needinfo?(rosemary.chukwuka.241793)

Hi! I have fixed the browser_firefoxview_general_telemetry.js timeout by removing the duplicate context menu button click. Resubmitted D289065. Please let me know if any further changes are needed!
Best regards,
Rosemary

Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ada5be2eb911 https://hg.mozilla.org/integration/autoland/rev/7fda6c002440 Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/20516195b781 https://hg.mozilla.org/integration/autoland/rev/6857ba66dd5f Revert "Bug 1948019 - Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson" for causing bc failures @browser_firefoxview_general_telemetry.js.

Backed out for causing bc failures @browser_firefoxview_general_telemetry.js.

Flags: needinfo?(rosemary.chukwuka.241793)

Hi Nikki! I found the root cause of the test failure. Adding "Forget About This Site" as a new menu item shifted the indexes of all existing panel items. I have updated the tests:
openInNewWindowOption: panelItems[1] โ†’ panelItems[2]
openInPrivateWindowOption: panelItems[2] โ†’ panelItems[3]
Please let me know if any further changes are needed!
Best regards,
Rosemary Chukwuka

Flags: needinfo?(rosemary.chukwuka.241793)
Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/046c4068dc46 https://hg.mozilla.org/integration/autoland/rev/4cab04730758 Add Forget About This Site option to Firefox View history context menu r=nsharpley,fxview-reviewers,fluent-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Mentor: nsharpley
Flags: needinfo?(nsharpley)
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: