Closed Bug 1662939 Opened 4 years ago Closed 4 years ago

Wait for print preview to be initialized before printing or opening system dialog

Categories

(Toolkit :: Printing, task, P1)

task

Tracking

()

VERIFIED FIXED
82 Branch
Tracking Status
firefox82 --- fixed
firefox84 --- verified
firefox85 --- verified

People

(Reporter: emmamalysz, Assigned: emmamalysz, NeedInfo)

Details

(Whiteboard: [print2020_v82][old-ui-])

Attachments

(1 file)

When the print preview is loading, the user should not be able to print the page. It looks like this may have intermittent problems. The user should also not be able to click on the "open with system dialog" link, as it will populate with incorrect settings (such as only being able to print 1 blank page).

These should be disabled/unclickable until the "rendering" attribute is removed https://searchfox.org/mozilla-central/source/toolkit/components/printing/content/print.js#454

For reference, https://fr.wikipedia.org/wiki/Gr%C3%A8ce is a page that takes a while to render.

Whiteboard: [print2020_v81]
Whiteboard: [print2020_v81] → [print2020_v81][old-ui-]
Whiteboard: [print2020_v81][old-ui-] → [print2020_v82][old-ui-]
Priority: P2 → P1

ni? shorlander and going to hold off until he decides on how we should proceed with the system dialog portion

Flags: needinfo?(shorlander)
Assignee: nobody → emalysz
Status: NEW → ASSIGNED
Attachment #9174564 - Attachment description: Bug 1662939, hide system dialog link and disable print button when rendering → Bug 1662939, disable form if user prints or opens system dialog when preview is rendering.
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e4d6a8242c68
disable form if user prints or opens system dialog when preview is rendering. r=mstriemer
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Flags: qe-verify+

Hello,

I have tried to verify this issue in 82.0(20201012131351) and 83.0a1(20201013094053) with macOS 10.15.7, Ubuntu 18.04 and Win10x64, and the buttons can still be interacted with while the print preview is loading.

The only instance where the Cancel and Print buttons are greyed out and cannot be interacted with, is when selecting "print using the system dialog" button , while the preview is loading.

Flags: needinfo?(emalysz)

Sorry, Vlad. We decided on a different approach, so I updated the bug summary.

The user should be able to interact with the cancel/print/system dialog buttons while the preview is loading. If the user clicks on the print/save button or the system dialog button, the form should then be disabled. We wait for the preview to finish rendering, and then we complete the action.

Flags: needinfo?(emalysz)
Summary: Disable print button and system dialog link when the print preview is rendering → Wait for print preview to be initialized before printing or opening system dialog

Confirming the above behavior on 84.0b2(20201117192430) and 85.0a1(20201118215158). Verified using Ubuntu 20.04, macOS 10.15.7 and Win10x64.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: