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

WebExtension #39

Open
xmorave2 opened this Issue Feb 24, 2017 · 31 comments

Comments

Projects
None yet
@xmorave2
Contributor

xmorave2 commented Feb 24, 2017

Hello,
as you probably know, Firefox is going to make changes in extension system, so only webextension could run in firefox - is it even possible to make jsprintsetup as webextension?

https://blog.mozilla.org/addons/2017/02/16/the-road-to-firefox-57-compatibility-milestones/

@eleclerc85

This comment has been minimized.

Show comment
Hide comment
@eleclerc85

eleclerc85 Jun 10, 2017

I'm looking foward to this me too!

eleclerc85 commented Jun 10, 2017

I'm looking foward to this me too!

@mitkola

This comment has been minimized.

Show comment
Hide comment
@mitkola

mitkola Aug 1, 2017

Contributor

To implement jsPrintSetup as Webextension there is need for extending Webextension API.
I have made propose for new API and I'm waiting for review.
https://github.com/edabg/web-ext-experiment-printservice
https://bugzilla.mozilla.org/show_bug.cgi?id=1385827
With current API, there is no possible implementation of jsPrintSetup as Webextension.

Contributor

mitkola commented Aug 1, 2017

To implement jsPrintSetup as Webextension there is need for extending Webextension API.
I have made propose for new API and I'm waiting for review.
https://github.com/edabg/web-ext-experiment-printservice
https://bugzilla.mozilla.org/show_bug.cgi?id=1385827
With current API, there is no possible implementation of jsPrintSetup as Webextension.

@xmorave2

This comment has been minimized.

Show comment
Hide comment
@xmorave2

xmorave2 Aug 1, 2017

Contributor

Thank you @mitkola for your work! Hope Mozilla will add neede API soon, Great job!

Contributor

xmorave2 commented Aug 1, 2017

Thank you @mitkola for your work! Hope Mozilla will add neede API soon, Great job!

@eleclerc85

This comment has been minimized.

Show comment
Hide comment
@eleclerc85

eleclerc85 Aug 19, 2017

Thx to mitkola for giving his time to the community.

eleclerc85 commented Aug 19, 2017

Thx to mitkola for giving his time to the community.

@marcobottignoleatlas

This comment has been minimized.

Show comment
Hide comment
@marcobottignoleatlas

marcobottignoleatlas Oct 27, 2017

Sorry for my insistence, the development of webextension will or will not be known? I wonder why otherwise we have to think of another solution.
Sorry for my English, but Google is helping me ;-)

marcobottignoleatlas commented Oct 27, 2017

Sorry for my insistence, the development of webextension will or will not be known? I wonder why otherwise we have to think of another solution.
Sorry for my English, but Google is helping me ;-)

@mitkola

This comment has been minimized.

Show comment
Hide comment
@mitkola

mitkola Oct 27, 2017

Contributor

We are waiting mentor to help us in landing proposed changes in FF first.
https://bugzilla.mozilla.org/show_bug.cgi?id=1385827
After this jsPrintSetup WE will be done.

Contributor

mitkola commented Oct 27, 2017

We are waiting mentor to help us in landing proposed changes in FF first.
https://bugzilla.mozilla.org/show_bug.cgi?id=1385827
After this jsPrintSetup WE will be done.

@MacGritsch

This comment has been minimized.

Show comment
Hide comment
@MacGritsch

MacGritsch Nov 15, 2017

Feel free to add a comment on https://bugzilla.mozilla.org/show_bug.cgi?id=1385827 so that they see that many people need that feature.

Thank you!

MacGritsch commented Nov 15, 2017

Feel free to add a comment on https://bugzilla.mozilla.org/show_bug.cgi?id=1385827 so that they see that many people need that feature.

Thank you!

@gainup

This comment has been minimized.

Show comment
Hide comment
@gainup

gainup Nov 16, 2017

That's all. They blocked it.

gainup commented Nov 16, 2017

That's all. They blocked it.

@NtH0

This comment has been minimized.

Show comment
Hide comment
@NtH0

NtH0 Nov 17, 2017

That's all. They blocked it.

The comments, not the ticket (yet).

NtH0 commented Nov 17, 2017

That's all. They blocked it.

The comments, not the ticket (yet).

@survtur

This comment has been minimized.

Show comment
Hide comment
@survtur

survtur Nov 17, 2017

Look's like i'll need to use older version of firefox....

survtur commented Nov 17, 2017

Look's like i'll need to use older version of firefox....

@balping

This comment has been minimized.

Show comment
Hide comment
@balping

balping Nov 18, 2017

You can still vote on the issue.

balping commented Nov 18, 2017

You can still vote on the issue.

@survtur

This comment has been minimized.

Show comment
Hide comment
@survtur

survtur Nov 19, 2017

@balping
No, I can't.

Restrict Comments: true
You are not allowed to make an additional comment on this bug.

survtur commented Nov 19, 2017

@balping
No, I can't.

Restrict Comments: true
You are not allowed to make an additional comment on this bug.

@balping

This comment has been minimized.

Show comment
Hide comment
@balping

balping Nov 23, 2017

Yes, you can. At the top, in the details box.

balping commented Nov 23, 2017

Yes, you can. At the top, in the details box.

@MacGritsch

This comment has been minimized.

Show comment
Hide comment
@mbarakaja

This comment has been minimized.

Show comment
Hide comment
@mbarakaja

mbarakaja Nov 23, 2017

Is unbelievable that Mozilla is starting to support more complex stuff like Virtual Reality, but they do not provide decent printer API. I now that the average browser users do not print often in the web, but a wide printing support should be an standard a long time ago.

Meanwhile, the ticket just have 9 votes so far. We need to make more noise people.

mbarakaja commented Nov 23, 2017

Is unbelievable that Mozilla is starting to support more complex stuff like Virtual Reality, but they do not provide decent printer API. I now that the average browser users do not print often in the web, but a wide printing support should be an standard a long time ago.

Meanwhile, the ticket just have 9 votes so far. We need to make more noise people.

@gainup

This comment has been minimized.

Show comment
Hide comment
@gainup

gainup Nov 23, 2017

I don't think that this problem will be solved soon. Unfortunately I must find other solution. Almost sure will have to buy native application and rewrite a lot of code. Moreover, I doubt that disabling applications and copy everything from Chrome will increase Firefox market share.

gainup commented Nov 23, 2017

I don't think that this problem will be solved soon. Unfortunately I must find other solution. Almost sure will have to buy native application and rewrite a lot of code. Moreover, I doubt that disabling applications and copy everything from Chrome will increase Firefox market share.

@TomatoJoe

This comment has been minimized.

Show comment
Hide comment
@TomatoJoe

TomatoJoe Nov 24, 2017

@mbarakaja

I now that the average browser users do not print often in the web.

You may be surprised. Business users will be printing quite a lot, not only to paper for things like Postage labels and invoices, but to PDF for Tax records.

Is unbelievable that Mozilla is starting to support more complex stuff like Virtual Reality, but they do not provide decent printer API

As a business owner, I found that Mozilla, in particular, Firefox is the ONLY browser that could fulfil our requirements for printing. This assumption that "no body prints these days" is bollocks. And to take on what I call the "Apple mentality" of only supporting only the needs of the majority will see business users move away. I too am astounded that there are NO web browsers out there that can accurately handle printing tasks without failing in at least one area. And that gos for operating systems equally. OSX is unusable in this regard.
We include code in our html pages to automatically pop up the Print Dialog box, it save so much time.

TomatoJoe commented Nov 24, 2017

@mbarakaja

I now that the average browser users do not print often in the web.

You may be surprised. Business users will be printing quite a lot, not only to paper for things like Postage labels and invoices, but to PDF for Tax records.

Is unbelievable that Mozilla is starting to support more complex stuff like Virtual Reality, but they do not provide decent printer API

As a business owner, I found that Mozilla, in particular, Firefox is the ONLY browser that could fulfil our requirements for printing. This assumption that "no body prints these days" is bollocks. And to take on what I call the "Apple mentality" of only supporting only the needs of the majority will see business users move away. I too am astounded that there are NO web browsers out there that can accurately handle printing tasks without failing in at least one area. And that gos for operating systems equally. OSX is unusable in this regard.
We include code in our html pages to automatically pop up the Print Dialog box, it save so much time.

@J-N-K

This comment has been minimized.

Show comment
Hide comment
@J-N-K

J-N-K Dec 5, 2017

@gainup, I don't think this will be solved anytime. The last statement in the mozilla bug is quite clear: if you need something like that, go away.

J-N-K commented Dec 5, 2017

@gainup, I don't think this will be solved anytime. The last statement in the mozilla bug is quite clear: if you need something like that, go away.

@black23

This comment has been minimized.

Show comment
Hide comment
@black23

black23 Dec 9, 2017

It can be solved by Native_messaging. What do You think @mitkola about it?
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging

black23 commented Dec 9, 2017

It can be solved by Native_messaging. What do You think @mitkola about it?
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging

@balping

This comment has been minimized.

Show comment
Hide comment
@balping

balping Dec 9, 2017

Good luck on writing a program that renders html as firefox would and is able to create proper postscript/pdf files with headers and margins as required. Then good luck on providing and maintaining binaries for windows, mac and gnu/linux. And then good luck convincing clients why they should install a whole separate program just to have nice headers on a printed sheet.

It's certainly not impossible just a bit unnecessarily overcomplicated.

balping commented Dec 9, 2017

Good luck on writing a program that renders html as firefox would and is able to create proper postscript/pdf files with headers and margins as required. Then good luck on providing and maintaining binaries for windows, mac and gnu/linux. And then good luck convincing clients why they should install a whole separate program just to have nice headers on a printed sheet.

It's certainly not impossible just a bit unnecessarily overcomplicated.

@mbarakaja

This comment has been minimized.

Show comment
Hide comment
@mbarakaja

mbarakaja Dec 9, 2017

@black23, as far I understand, JSPrintSetup, is not responsible of rendering the content to be sent to a given printer, this is still managed by the browser.

So, in order to implement features like silent printing (bypassing the browser implementation), the native application must have to manage the rendering by it self.

So the question is, How do you send the content (a BLOB file, raw text, etc) using just Native messaging? The Mozilla documentation says that just serializable JSON messages can be sent in and out between browser extension and a native application.

mbarakaja commented Dec 9, 2017

@black23, as far I understand, JSPrintSetup, is not responsible of rendering the content to be sent to a given printer, this is still managed by the browser.

So, in order to implement features like silent printing (bypassing the browser implementation), the native application must have to manage the rendering by it self.

So the question is, How do you send the content (a BLOB file, raw text, etc) using just Native messaging? The Mozilla documentation says that just serializable JSON messages can be sent in and out between browser extension and a native application.

@MacGritsch

This comment has been minimized.

Show comment
Hide comment
@MacGritsch

MacGritsch Dec 10, 2017

Yea I have already developed an extension with native messaging and have tried to solve the printing problem this way. So first you need thir-party framework to render the html page and second you need a thir-party applicaton to print that pdf. And you have to install all that apps on the client machines (and place entries in the registry (facepalm)). And thats only for one platform - if you have to support all platforms on which FF runs then good bye
I think my clients stay on the ESR-version and when that is outdated, thy keep it and go online with another, save browser. So FF loses marketshare. If they want so...

MacGritsch commented Dec 10, 2017

Yea I have already developed an extension with native messaging and have tried to solve the printing problem this way. So first you need thir-party framework to render the html page and second you need a thir-party applicaton to print that pdf. And you have to install all that apps on the client machines (and place entries in the registry (facepalm)). And thats only for one platform - if you have to support all platforms on which FF runs then good bye
I think my clients stay on the ESR-version and when that is outdated, thy keep it and go online with another, save browser. So FF loses marketshare. If they want so...

@balping

This comment has been minimized.

Show comment
Hide comment
@balping

balping Dec 10, 2017

As far as I know, no other browser supports this feature, so ff doesn't necessarily loose market share, just the chance to stand out a bit. When ESR enters quantum (in March 2018), I think I'll switch to server-side pdf rendering.

balping commented Dec 10, 2017

As far as I know, no other browser supports this feature, so ff doesn't necessarily loose market share, just the chance to stand out a bit. When ESR enters quantum (in March 2018), I think I'll switch to server-side pdf rendering.

@MacGritsch

This comment has been minimized.

Show comment
Hide comment
@MacGritsch

MacGritsch Dec 10, 2017

I think I'll switch to server-side pdf rendering.

Thats also my plan, but then also an application is needed to print that PDfs :-/

MacGritsch commented Dec 10, 2017

I think I'll switch to server-side pdf rendering.

Thats also my plan, but then also an application is needed to print that PDfs :-/

@black23

This comment has been minimized.

Show comment
Hide comment
@black23

black23 Dec 10, 2017

Thank You all for explanation about Native_messaging.
I've found "solution" thru Native_messaging on forum and it was propably directly from Mozilla guys. But I agree that can't solve our problem. I really don't uderstand Mozilla developers because they stoped debate about silence printig due security. It could be handled by user confirmation about printing without promt, for example.
ESR is just short time solution. PDF rendering isn't work best for every application, especially if you print just simple receipts.

black23 commented Dec 10, 2017

Thank You all for explanation about Native_messaging.
I've found "solution" thru Native_messaging on forum and it was propably directly from Mozilla guys. But I agree that can't solve our problem. I really don't uderstand Mozilla developers because they stoped debate about silence printig due security. It could be handled by user confirmation about printing without promt, for example.
ESR is just short time solution. PDF rendering isn't work best for every application, especially if you print just simple receipts.

@balping

This comment has been minimized.

Show comment
Hide comment
@balping

balping Dec 10, 2017

I came across wkhtmltopdf. Maybe it could be used for the rendering part.

It's possible to contol margins and header/footer text.

balping commented Dec 10, 2017

I came across wkhtmltopdf. Maybe it could be used for the rendering part.

It's possible to contol margins and header/footer text.

@kelemenbalazs

This comment has been minimized.

Show comment
Hide comment
@kelemenbalazs

kelemenbalazs Mar 13, 2018

Any solution so far? After quantum, you are not able to use the extension? Please, this is a too useful extension to throw it away. I would like to use, but I also have to take care of security, so I cannot stay at FF 56.0 because of the extension incompatibility.

kelemenbalazs commented Mar 13, 2018

Any solution so far? After quantum, you are not able to use the extension? Please, this is a too useful extension to throw it away. I would like to use, but I also have to take care of security, so I cannot stay at FF 56.0 because of the extension incompatibility.

@gainup

This comment has been minimized.

Show comment
Hide comment
@gainup

gainup Mar 13, 2018

Any solution so far? After quantum, you are not able to use the extension? Please, this is a too useful extension to throw it away. I would like to use, but I also have to take care of security, so I cannot stay at FF 56.0 because of the extension incompatibility.

I've ordered native application on Windows for the printing purposes. It accepts data from the extension in json format, renders it and sends html page to printer.

gainup commented Mar 13, 2018

Any solution so far? After quantum, you are not able to use the extension? Please, this is a too useful extension to throw it away. I would like to use, but I also have to take care of security, so I cannot stay at FF 56.0 because of the extension incompatibility.

I've ordered native application on Windows for the printing purposes. It accepts data from the extension in json format, renders it and sends html page to printer.

@dynostatic

This comment has been minimized.

Show comment
Hide comment
@dynostatic

dynostatic Mar 21, 2018

@gainup What native application are you working with? I'm interested in trying something similar.

dynostatic commented Mar 21, 2018

@gainup What native application are you working with? I'm interested in trying something similar.

@iwasingh

This comment has been minimized.

Show comment
Hide comment
@iwasingh

iwasingh Apr 29, 2018

Any updates? For now, the only solution is to use an older version of Firefox, am i right?

iwasingh commented Apr 29, 2018

Any updates? For now, the only solution is to use an older version of Firefox, am i right?

@mayankmrc3

This comment has been minimized.

Show comment
Hide comment
@mayankmrc3

mayankmrc3 May 31, 2018

Any good news for JSprint?

mayankmrc3 commented May 31, 2018

Any good news for JSprint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment