Closed Bug 1658262 Opened 4 years ago Closed 4 years ago

Print Preview doesn’t get closed/updated if navigating to a different webpage on the same tab

Categories

(Toolkit :: Printing, defect, P2)

Firefox 81
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox81 --- verified

People

(Reporter: emilghitta, Unassigned)

References

Details

(Whiteboard: [Fixed by 1653317])

Attachments

(1 file)

Attached image printPrev.gif

Affected versions

  • 81.0a1 (BuildId:20200804215246)

Affected platforms

  • Windows 10 64bit
  • macOS 10.14
  • Ubuntu 18.04 64bit

Preconditions

  • Ensure that the print.tab_modal.enabled pref is set to true

Steps to reproduce

  1. Launch Firefox.
  2. Access the following link
  3. Click on any link from the page to reach out to a new article within the same tab.
  4. Open the print preview.
  5. Click the back button in order to reach the previous article.

Expected result

  • The print preview closes (like in Chrome) or the page gets updated (in print preview) reflecting the current tab’s content.

Actual result

  • The print preview displays the first page (doesn’t update with the page currently displayed in the tab). If the user goes ahead and initiates a print job from the print preview it will print the current page (displayed inside the tab not inside the print preview).

Regression Range

  • I don’t think that this is a regression

Notes

  • For further information regarding this issue, please observe the attached screencast.
  • A workaround for this is to reopen the print preview.
  • [Suggested Severity] I think that S3 fits for this one.

Should we let people navigate the tab behind? I think, since the print dialog is a tab-modal, it should block everything that goes to the page behind do… (But then we get into problems with sites that auto-update, which we probably shouldn't prevent?)

(In reply to Blake Winton (:bwinton) (:☕️) from comment #1)

Should we let people navigate the tab behind? I think, since the print dialog is a tab-modal, it should block everything that goes to the page behind do… (But then we get into problems with sites that auto-update, which we probably shouldn't prevent?)

I think any user-initiated navigation should close the dialog. I assumed that opening the print dialog already suppresses page-initiated navigation - we already do this for other dialogs like alert(). We should be able to use the same machinery here.

Severity: -- → S2
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

There's also bug 1657506 about interacting with the page, you could keyboard focus into it too.

These are issues that I was hoping would be fixed by the move to TabDialogBox but that feature hasn't landed yet. We have bug 1653317 to switch to TabDialogBox but it could be time to start preventing these interactions rather than moving to TabDialogBox for 81.

Priority: -- → P2
Depends on: 1657508
Resolution: DUPLICATE → FIXED

(Whoops, the parent bug was re-opened.)

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Has STR: --- → yes

(Like the parent bug, this should also be fixed by bug 1653317 so removing the [print2020_v81] whiteboard tag for easier tracking.)

Whiteboard: [print2020_v81]

This issue is verified fixed using Firefox 81.0a1 (BuildId:20200820212107) on Windows 10 64bit, macOS 10.14 and Ubuntu 18.04 64bit.

Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Whiteboard: [Fixed by 1653317]
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: