Closed Bug 1669207 Opened 4 years ago Closed 4 years ago

New UI has saved invalid margins to prefs, causing print preview to become completely disabled and unusable

Categories

(Toolkit :: Printing, defect, P1)

defect

Tracking

()

VERIFIED FIXED
83 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox81 --- unaffected
firefox82 --- wontfix
firefox83 --- verified

People

(Reporter: julienw, Assigned: emmamalysz)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [print2020_v83][old-ui-])

Attachments

(2 files)

STR:

  1. Set some margin values to a negative value (eg: set to -1)
  2. Try to print preview.

=> The print preview is all disabled, without any clear information about how to resolve the issue.

Only when opening the "more settings" dropdown that the user can see the margin is invalid, and can resolve it.

Component: Printing: Setup → Printing
Product: Core → Toolkit

BTW I also that believe the "Printer" select shouldn't be disabled. Indeed the bogus values are per-printer and so we should be able to change the printer. Especially in this case I was interested in the feature "save as PDF" but couldn't even select it.

(In reply to Julien Wajsberg [:julienw] from comment #0)

  1. Set some margin values to a negative value (eg: set to -1)

Did you do this by setting them in about:config, or some other way?

(In reply to Julien Wajsberg [:julienw] from comment #1)

BTW I also that believe the "Printer" select shouldn't be disabled.

Can you report that as a separate bug?

(In reply to Jonathan Watt [:jwatt] from comment #2)

(In reply to Julien Wajsberg [:julienw] from comment #0)

  1. Set some margin values to a negative value (eg: set to -1)

Did you do this by setting them in about:config, or some other way?

No I get these weird values without setting them manually. I mozregressed and found that the last patch in bug 1663503 got me these values (I commented there too).

(In reply to Julien Wajsberg [:julienw] from comment #1)

BTW I also that believe the "Printer" select shouldn't be disabled.

Can you report that as a separate bug?

Sure, I filed bug 1669225.

Ah, thanks. And thanks for filing that other bug.

Summary: The print preview is all disabled without other message when margin values are invalid → New UI has saved invalid margins to prefs, causing print preview to become completely disabled and unusable
Priority: -- → P1
Whiteboard: [print2020_v82][old-ui-]
Regressed by: 1663503
Has Regression Range: --- → yes
Assignee: nobody → emalysz

If margins are manually set to negative entries or if the selected printer
had bad values, we need to correctly reset the pref value to valid default
margins.

FWIW in bug 1669370 I've landed a patch to reject obviously bad setting in platform code when reading them from prefs (i.e. under initPrintSettingsFromPrefs()).

Set release status flags based on info from the regressing bug 1663503

Whiteboard: [print2020_v82][old-ui-] → [print2020_v83][old-ui-]
Pushed by emalysz@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/91b417dc72dc ensure margins are initialized with valid settings r=sfoster
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Flags: qe-verify+

I am unable to save invalid margins using the french 83.0b2 build across-platforms. Confirming the fix.

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

Attachment

General

Created:
Updated:
Size: