Closed Bug 1748730 Opened 3 years ago Closed 3 years ago

Ensure overlay is removed whenever the screenshot UI is closed/cancelled

Categories

(Firefox :: Screenshots, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: sfoster, Assigned: niklas)

References

Details

Attachments

(1 file)

In the browser component implementation, the overlay is managed in the content process, while the main logic and UI are in the browser's parent/main process. So we need to be careful to ensure that whenever Screenshots is cancelled or that UI closed, the overlay is removed.

We should add tests for navigation in the tab being screenshot, as well as validating what we expect to happen when the active tab changes at each phase in the screenshot flow.

This implementation has landed, but I think we should add test coverage for the cases in comment #0 to close this bug.

We need to add some logic to keep the overlay and panel in sync when switching tabs. The panel is handled by the parent and the overlay is handled by the child so they can get out of sync currently.

Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Pushed by nbaumgardner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/878107275a58 The screenshots overlay and panel are now always in sync. r=sfoster
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: