Re: Window.print() in geckoview

2020-03-02 Thread James Willcox
Hi Urs, On Mon, Mar 2, 2020 at 8:24 AM Urs Riggenbach < urs.riggenbach.ph...@gmail.com> wrote: > Is it possible to handle the downloads in the app and get access to the > downloadable file for upload? > > Does GeckoView provide some kind of Listener for downloads? > For downloads you can implem

Re: Window.print() in geckoview

2020-03-02 Thread Urs Riggenbach
Dear All, This is great, thank you James and Nicholas! I've folowed your suggestions and now have a WebExtension that works very well to overwrite window.print(). There is also the case that a website wants to download a PDF file for printing. In this case I need to catch that file, and upload i

Re: Window.print() in geckoview

2020-02-27 Thread James Willcox
On Thu, Feb 27, 2020 at 2:01 PM Urs Riggenbach < urs.riggenbach.ph...@gmail.com> wrote: > > > I would like to run Android app code when window.print() is run. Is this > best done in a WebExtension? Or is there a simple way to overwrite such > functions? > > Yeah, a Web Extension is best for this,

Re: Window.print() in geckoview

2020-02-27 Thread Nicholas Alexander
Hi Urs, On Thu, Feb 27, 2020 at 12:01 PM Urs Riggenbach < urs.riggenbach.ph...@gmail.com> wrote: > Hello dear community, > > I'm working on a project and am considering geckoview as it's just better > in every way over webview. > > I am looking for a way to log when the window.print() function is

Window.print() in geckoview

2020-02-27 Thread Urs Riggenbach
Hello dear community, I'm working on a project and am considering geckoview as it's just better in every way over webview. I am looking for a way to log when the window.print() function is executed by the user. As far as i can tell geckoview does nothing when window.print() is run. I would like