-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[GeckoView] Bundle the Firefox printing code in the viewer (bug 1810111) #16163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4ccaa77
to
fafcc8f
Compare
6b4e2e9
to
3eea0c1
Compare
3eea0c1
to
54aaa0d
Compare
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/09842f7fe593918/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/93876ed2dd470d9/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/93876ed2dd470d9/output.txt Total script time: 4.31 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/09842f7fe593918/output.txt Total script time: 16.08 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested locally and it doesn't work.
The printerContainer
is missing in viewer-geckoview.html
and in viewer-geckoview.js
.
I can share with you how I setup an android dev environment on windows 11 if you need.
When printing, Fenix is generating a pdf and then it's sent to whatever app to print it. |
D'oh, that's of course obvious in hindsight; didn't think about that :-)
Ah, that makes total sense! In that case this PR obviously isn't even in the correct direction, since none of this is necessary if we just call Given that I don't know anything about the Fenix platform-code, and it seemingly being written in Java (which I've not used for many years), I'm unfortunately not sure if I'll be able to fix this bug anytime soon. |
My plan was to merge this patch and try to be smarter later. |
54aaa0d
to
b5fc950
Compare
Sorry, I figured we should go directly for the "proper" solution. I've updated the patch to address #16163 (review), so now the DOM element should be found correctly. |
b5fc950
to
c0f4175
Compare
c0f4175
to
8276a82
Compare
@calixteman Ping, do we want to move forward with these changes? Should we perhaps also add a GeckoView toolbar-button for this, and if so could you please help find a suitable one? |
It was on my today todo-list :). |
30f04f0
to
1ea9118
Compare
So for now the
which isn't what we want when we've for example a filled form and especially if we've something to execute before printing. So for the moment, I'm waiting for Fenix people to know what we want to do. |
Landing something that doesn't work anyway seems kind of pointless. at least to me, so let's just wait until we actually know exactly how this should be integrated on the platform side. |
@Snuffleupagus, I want to merge this patch asap to fix pdf form printing on Android (bug 1842685). |
This may not be enough, on its own, to completely fix [bug 1810111](https://bugzilla.mozilla.org/show_bug.cgi?id=1810111) however it's impossible for printing to work in GeckoView without this patch.
1ea9118
to
e77c7f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thank you.
This may not be enough, on its own, to completely fix bug 1810111 however it's impossible for printing to work in GeckoView without this patch.