Changing a destination that was just used to the actual printer triggers a delay in Print/Save button update
Categories
(Toolkit :: Printing, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox83 | --- | wontfix |
firefox84 | --- | wontfix |
firefox85 | --- | verified |
People
(Reporter: asoncutean, Assigned: mstriemer)
References
(Blocks 1 open bug)
Details
(Keywords: regression, Whiteboard: [print2020_v85] [old-ui-])
Attachments
(4 files)
Affected versions
- 84.0a1
- 83.0b10
Affected platforms
- Windows 7
Steps to reproduce
- Launch Firefox
- Make sure print.tab_modal.enabled is set on true
- Hit CTRL + P on any page
- Select Save to pdf from destination
- Save the page to any desired location
- Hit CTRL + P again on the same page
- Change the destination to the actual printer
- Observe the Save button
Expected result
- The button is updated to Print instantly when the destination is changed
Actual result
- The button updates with several seconds delay, once the destination is set
Regression range
- First bad: 45f2cababf8a644bd542fe1aeff0426a06941adb
- Last good: 284e3c053bf57ee8f331b21a90751936ee604482
- Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=284e3c053bf57
ee8f331b21a90751936ee604482&tochange=45f2cababf8a644bd542fe1aeff0426a06941adb - Potential regressor: 1659624
Additional notes
- Not reproducible viceversa (from the actual printer to save to pdf)
- Reproducible with other options, but only when changing to the actual printer; confusing when the corresponding button is the same between the destination, for example when changing from Microsft XPS Document Writer to the actual printer, if quick enough user press the Print button but the save prompt appears instead
- fission.autostart and gfx.webrender.all set on true make no difference
- Manage to reproduce only on Windows 7 so far using a network printer
- The issue is not reproducible if Save to pdf is not actually used previously, just toggling the options has no delay in Print/Save update
Suggested severity
- S3
Updated•4 years ago
|
Comment 1•4 years ago
|
||
We should make the form disabled while the print settings are being loaded - perhaps leaving only the destination picker operable.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
When changing printers one of them could be slower than another. If you change
to a slow printer and back to an already loaded/fast printer then the slow
printer shouldn't overwrite the settings once it finally loads.
Example: Start print on PDF printer, switch to a physical printer and back to PDF. If
the physical printer had to be contacted to pull settings this operation could take
a few seconds, at which point the settings from the physical printer could overwrite
the PDF printer settings.
Assignee | ||
Comment 3•3 years ago
|
||
This removes all the change event listeners so that all the elements listen
for just the input event. Listening to both could cause two settings change
events to be dispatched and requires writing code to ignore change events
in many components.
Depends on D99135
Assignee | ||
Comment 4•3 years ago
|
||
When loading a printer's settings it can take a few seconds for physical printers. If
this happens then changes made while the settings are being fetched could be thrown
away. Disable the form while we're loading settings for a printer to avoid losing
settings changes.
Depends on D99136
Pushed by mstriemer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4542bcff02f3 Part 1: Don't update to new printer settings if printer has since changed r=sfoster https://hg.mozilla.org/integration/autoland/rev/66c31bb28425 Part 2: Only listen to input events in print dialog r=sfoster https://hg.mozilla.org/integration/autoland/rev/3d35212af423 Part 3: Disable print setting inputs while loading printer settings r=sfoster
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4542bcff02f3
https://hg.mozilla.org/mozilla-central/rev/66c31bb28425
https://hg.mozilla.org/mozilla-central/rev/3d35212af423
Reporter | ||
Comment 7•3 years ago
|
||
Verified fixed with Fx 85.0a1 (2020-12-11) on Windows 10 and Windows 7.
Description
•