Closed Bug 1746559 Opened 2 years ago Closed 2 years ago

firefox can't print with xdg desktop portal kde

Categories

(Core :: Widget: Gtk, defect)

Firefox 95
defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- fixed

People

(Reporter: pmargeti34, Assigned: emilio, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached file about:support

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Steps to reproduce:

I'm using KDE so I enabled widget.use-xdg-desktop-portal in about:config to use KDE file picker with firefox. With this setting on, printing is impossible from firefox

I tried to print a:

  1. webpage
  2. single image
  3. pdf

Actual results:

Nothing. It didn't print.

Expected results:

It printed.

The Bugbug bot thinks this bug should belong to the 'Core::Printing: Output' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Printing: Output
Product: Firefox → Core

The severity field is not set for this bug.
:emilio, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Huh, it works here both on X11 and Wayland (on Fedora 35, Firefox Nightly). To be clear this is the "Save to PDF" printer, right? Do you have any other print-related setting that could allow us to repro this?

Component: Printing: Output → Widget: Gtk
Flags: needinfo?(emilio) → needinfo?(pmargeti34)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)

Huh, it works here both on X11 and Wayland (on Fedora 35, Firefox Nightly). To be clear this is the "Save to PDF" printer, right? Do you have any other print-related setting that could allow us to repro this?

It's not a save to pdf printer, it's an actual, physical printer. Epson L3110 inkjet to be specific.

Flags: needinfo?(pmargeti34)

Ah! I see, sorry I assumed this was about the file picker. Bug 1688720 introduced printing code that depended on this pref. Presumably we don't need to do that when not running under flatpak?

Flags: needinfo?(jhorak)
Flags: needinfo?(emilio)
Regressed by: 1688720
Has Regression Range: --- → yes

This allows to test and enable the different portals separately. Make
the print portal work only when actually running under flatpak by
default, given it needs more work as per the regressing bug.

And while at it fix a minor leak and some typos in that code.

Assignee: nobody → emilio

There's no reason for that function to live in the GIOService interface.

The patches were accidentally submitted in the wrong order but I fixed that in phabricator.

Flags: needinfo?(emilio)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a369193ad77f
Simplify widget portal code. r=jhorak
https://hg.mozilla.org/integration/autoland/rev/7bb002b6b870
Split flatpak portal prefs. r=jhorak
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch

Any chance this could get backported to 96? This is a pretty big defect.

Unfortunately we've already built the RCs for 96, so it's too late to uplift there. We can leave it on the radar for a point release should the opportunity arise, however.

QA Whiteboard: [qa-97b-p2]
Flags: needinfo?(vlad.lucaci)
See Also: → 1516290

As the current esr version will be around for some time, I did a minimal patch that fixes the issue by avoiding to use portal features for printing (which actually restores the behavior of previous esr versions). This patch has been tested on top of the current debian packages (91.5.0) and works just fine.
And the very same patch also applies cleanly on the current esr version of thunderbird where printing also doesn't work when using portal to get native dialogs and the like.

I was not able to reproduce the issue on Ubuntu 20.4 using build 95.0a1(2021-10-30) and 97.0a1(2021-12-16) also I used the settings from description, but I do not have an actual printer.
Could you confirm if the issue is still reproducing on latest Beta 97.0? Thank you.

Flags: needinfo?(pmargeti34)

(In reply to Monica Chiorean from comment #14)

I was not able to reproduce the issue on Ubuntu 20.4 using build 95.0a1(2021-10-30) and 97.0a1(2021-12-16) also I used the settings from description, but I do not have an actual printer.
Could you confirm if the issue is still reproducing on latest Beta 97.0? Thank you.

I'm afraid I can't help you, I'm using stable releases only.

Flags: needinfo?(pmargeti34)
No longer regressed by: 1688720
Regressed by: 1688720

Hello,

I have attempted to reproduce this issue with the STR provided in description and did not succeed.

STR were performed on KDE Neon as well as Ubuntu 20 using the affected build 97.0a1(20211216163155) as well as the latest Nightly 101.0a1(20220414092955) .

If you have access to this OS and configuration, please let us know if this issue still occurs.
Thank you.

Flags: needinfo?(vlad.lucaci) → needinfo?(pmargeti34)

(In reply to Vlad Lucaci, QA (:vlucaci) from comment #16)

Hello,

I have attempted to reproduce this issue with the STR provided in description and did not succeed.

STR were performed on KDE Neon as well as Ubuntu 20 using the affected build 97.0a1(20211216163155) as well as the latest Nightly 101.0a1(20220414092955) .

If you have access to this OS and configuration, please let us know if this issue still occurs.
Thank you.

I'm sorry, I don't have access to this OS and configuration. I am unable to help you.

Flags: needinfo?(pmargeti34)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: