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)
Tracking
()
People
(Reporter: atrif, Assigned: sfoster)
References
(Blocks 1 open bug, Regressed 2 open bugs)
Details
(Whiteboard: [fidefe-splitview])
Attachments
(2 files)
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
- Create a Split View and use the Screenshot option on the left view.
Expected result
- The
Save full pageand theSave visiblebuttons are displayed on the left view.
Actual result
- The
Save full pageand theSave visiblebuttons are displayed on the right view.
Regression range
- New feature. Happens after bug 1986946 implementation.
Additional notes
- Attached a screenshot.
Updated•4 months ago
|
Updated•4 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
- The screenshots module clones a template and inserts it into
#tabbrowser-tabbox. - We give style to the insertion point and container for the panel contents
- The buttons are positioned and styled relative to their container in screenshots-buttons.css
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.
Updated•3 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
- 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
Backed out for causing bc failures @DOMLocalization.cpp.
- Backout link
- Push with failures
- Failure Log
- Failure Log @browser_test_moving_tab_to_new_window.js
| Assignee | ||
Comment 6•2 months ago
|
||
(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.
Comment 8•2 months ago
|
||
| bugherder | ||
| Reporter | ||
Comment 9•2 months ago
|
||
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.
Description
•