Closed Bug 1997929 Opened 4 months ago Closed 2 months ago

Save full page and Save visible buttons are displayed on the right view when the screenshot option is used on the left view

Categories

(Firefox :: Screenshots, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
149 Branch
Tracking Status
firefox146 --- disabled
firefox149 --- verified

People

(Reporter: atrif, Assigned: sfoster)

References

(Blocks 1 open bug, Regressed 2 open bugs)

Details

(Whiteboard: [fidefe-splitview])

Attachments

(2 files)

Attached image image.png

Found in

  • 146.0a1 (2025-11-02)

Affected versions

  • 146.0a1 (2025-11-02)

Tested platforms

  • Affected platforms: Ubuntu 24, Windows 11, macOS 26
  • Unaffected platforms: none

Preconditions

  • split view enabled
  • vertical tabs enabled
  • sidebar is collapsed

Steps to reproduce

  1. Create a Split View and use the Screenshot option on the left view.

Expected result

  • The Save full page and the Save visible buttons are displayed on the left view.

Actual result

  • The Save full page and the Save visible buttons are displayed on the right view.

Regression range

  • New feature. Happens after bug 1986946 implementation.

Additional notes

  • Attached a screenshot.
Severity: -- → S3
Component: Tabbed Browser → Screenshots
Priority: -- → P2

The same panel is reused for each tab, and is just shown/hidden as needed. So I guess we'll need to also adjust its position for the selected tab panel when we initially open it, and if a tab becomes part of a splitview - we'll need to listen for an event to respond to that.

Assignee: nobody → sfoster
Priority: P2 → P1
  • Clone the screenshots buttons panel template and insert into the tabpanel (deck-child).
  • Stash a reference in the browserScreenshotsState weakmap for quick retrieval
  • But also querySelector it from the tabpanels ancestor before giving up and making a new one
  • Always move the panel before showing it
  • Refactor ScreenshotsButtons to allow it to be move, recreated and reused.
  • Add a test for the splitview case
Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6e43c9a0ee39 https://hg.mozilla.org/integration/autoland/rev/d599928494f8 Move the Screenshots buttons panel into the browser's container when showing it. r=niklas,desktop-theme-reviewers,dao
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/81bbeba53645 https://hg.mozilla.org/integration/autoland/rev/3e04f487a023 Revert "Bug 1997929 - Move the Screenshots buttons panel into the browser's container when showing it. r=niklas,desktop-theme-reviewers,dao" for causing bc failures @DOMLocalization.cpp.

Backed out for causing bc failures @DOMLocalization.cpp.

Flags: needinfo?(sfoster)

(In reply to agoloman from comment #5)

Backed out for causing bc failures @DOMLocalization.cpp.

Thanks. I think I figured it out (as well as another intermittent.) Its queued to land again.

Flags: needinfo?(sfoster)
Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bc492b3012a4 https://hg.mozilla.org/integration/autoland/rev/0a5f990b57a7 Move the Screenshots buttons panel into the browser's container when showing it. r=niklas,desktop-theme-reviewers,dao
Regressions: 2012862
Regressions: 2012870
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch

Hello! The issue is verified fixed with Firefox 149.0a1 (2026-01-28 on Windows 11, macOS 26 and Ubuntu 24. The Screenshot buttons are now displayed inside the active view, and they are working as expected. Note that we encountered bug 2013290 when testing this, but it's not dependent on this issue.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c146] [S4][QA-4411] → [qa-ver-done-c149/b148][qa-found-in-c146] [S4][QA-4411]
Regressions: 2016109
Regressions: 2016446
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: