Print dialog should not display the SVG output option when printing to a file

VERIFIED FIXED in mozilla1.9.3a2

Status

()

Core
Widget: Gtk
VERIFIED FIXED
7 years ago
7 years ago

People

(Reporter: glandium, Assigned: glandium)

Tracking

({verified1.9.2})

Trunk
mozilla1.9.3a2
All
Linux
verified1.9.2
Points:
---

Firefox Tracking Flags

(status1.9.2 .2-fixed, status1.9.1 .9-fixed)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

7 years ago
Created attachment 426894 [details] [diff] [review]
Patch

Until bug 525998 is actually addressed, all currently released branches should force disabling the svg output option.
(Assignee)

Updated

7 years ago
Attachment #426894 - Attachment is patch: true
Attachment #426894 - Attachment mime type: application/octet-stream → text/plain
Attachment #426894 - Flags: review?(karlt)
Attachment #426894 - Flags: approval1.9.2.2?
Attachment #426894 - Flags: approval1.9.1.9?
(Assignee)

Comment 1

7 years ago
Created attachment 426895 [details] [diff] [review]
Patch

Hum... without unrelated changes this time
Assignee: nobody → mh+mozilla
Attachment #426894 - Attachment is obsolete: true
Attachment #426895 - Flags: review?
Attachment #426895 - Flags: approval1.9.2.2?
Attachment #426895 - Flags: approval1.9.1.9?
Attachment #426894 - Flags: review?(karlt)
Attachment #426894 - Flags: approval1.9.2.2?
Attachment #426894 - Flags: approval1.9.1.9?
(Assignee)

Updated

7 years ago
Attachment #426895 - Flags: review? → review?(karlt)
Comment on attachment 426895 [details] [diff] [review]
Patch

Please wait for review(s) to be completed before requesting branch approval.
Attachment #426895 - Flags: approval1.9.2.2?
Attachment #426895 - Flags: approval1.9.1.9?
Comment on attachment 426895 [details] [diff] [review]
Patch

Looks good, thanks.
Attachment #426895 - Flags: review?(karlt) → review+
Let's get this in on mozilla-central.
Keywords: checkin-needed
Whiteboard: [checkin m-c]
Status: NEW → ASSIGNED
Version: 1.9.2 Branch → unspecified
http://hg.mozilla.org/mozilla-central/rev/b40f96c3d2ec
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a2
Keywords: checkin-needed
Whiteboard: [checkin m-c]
(Assignee)

Comment 6

7 years ago
Flags have completely changed, what is the one for approval on branches, now ?

Comment 7

7 years ago
"approval1.9.2.2" for Firefox 3.6.2 and "approval1.9.1.9" for Firefox 3.5.9 on https://bugzilla.mozilla.org/attachment.cgi?id=426895&action=edit, I guess.

See https://wiki.mozilla.org/Releases/Flags on the various multi-state flags.
(Assignee)

Comment 8

7 years ago
Comment on attachment 426895 [details] [diff] [review]
Patch

D'oh, I was looking for these flags at the wrong place...
Attachment #426895 - Flags: approval1.9.2.2?
Attachment #426895 - Flags: approval1.9.1.9?
Looks safe enough to approve, but how does adding postscript flags turn off SVG output?
(Assignee)

Comment 10

7 years ago
Because it's unfortunately how this thing works. There is not even a flag for SVG, so you can't support, e.g. ps and svg but not pdf...

See http://git.gnome.org/browse/gtk+/tree/modules/printbackends/file/gtkprintbackendfile.c#n594
That's even how the flags are documented:
"If neither GTK_PRINT_CAPABILITY_GENERATE_PDF  nor GTK_PRINT_CAPABILITY_GENERATE_PS  is specified, GTK+ assumes that all formats are supported."

Currently Mozilla only supports PDF and PS so it makes sense to explicitly specify these.
http://hg.mozilla.org/mozilla-central/annotate/ab74c935e321/widget/src/gtk2/nsDeviceContextSpecG.cpp#l478
Attachment #426895 - Flags: approval1.9.2.2?
Attachment #426895 - Flags: approval1.9.2.2+
Attachment #426895 - Flags: approval1.9.1.9?
Attachment #426895 - Flags: approval1.9.1.9+
Comment on attachment 426895 [details] [diff] [review]
Patch

Approved for 1.9.1.9 and 1.9.2.2, a=dveditz for release-drivers
(Assignee)

Updated

7 years ago
Keywords: checkin-needed
Whiteboard: [needs 1.9.0 landing][needs 1.9.1 landing]
(Assignee)

Updated

7 years ago
Whiteboard: [needs 1.9.0 landing][needs 1.9.1 landing] → [needs 1.9.1 landing][needs 1.9.2 landing]

Comment 13

7 years ago
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/b0ff8632d5ce
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/8c44b703f64a
status1.9.1: --- → .9-fixed
status1.9.2: --- → .2-fixed

Updated

7 years ago
Keywords: checkin-needed
Whiteboard: [needs 1.9.1 landing][needs 1.9.2 landing]
As given by Karl on IRC the problem here were the missing flags. If no flags are set, the dialog simply offers all possible output formats.

Verified fixed on 1.9.2 with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2

Also works on trunk with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4pre) Gecko/20100322 Minefield/3.7a4pre
Status: RESOLVED → VERIFIED
Keywords: verified1.9.2
Summary: Print dialog should not display the svg output option → Print dialog should not display the SVG output option when printing to a file
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.