PoC: Browser based runtime - Mailing list pgadmin-hackers

From Dave Page
Subject PoC: Browser based runtime
Date
Msg-id CA+OCxoxsWkP3c6BdbqMkSWAASybehkJ9BMrhbbr29EZ+M2h_4g@mail.gmail.com
Whole thread Raw
Responses Re: PoC: Browser based runtime  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
I've been looking at various options for getting rid of QtWebEngine,
and had an idea that maybe we don't actually need any C++ code at all.

Attached is a rough PoC patch that implements such a setup. If running
with SERVER_MODE == True, things are as they are now, however, if
SERVER_MODE == False then:

- We enable key generation for client validation.

- A thread is started to monitor the server for startup completion.

- Once the server is responding, a browser is launched using selenium
and pointed at the server.

- The thread continues running, periodically checking the browser is
still present. If not, it kills the server.

Downsides:

- The user knows they're running in the browser
- chromedriver/geckodriver are required (geckodriver's licence may be an issue)
- The user must have a supported browser installed.

Questions:

- Maybe we could ship a pre-built minimal browser (one that is fast
and works well and always use that?
- If we do that, then maybe we can use whatever mechanism selenium
uses to tell the browser where to navigate, as it doesn't seem to use
the command line (thus, keeping the key hidden).

Thoughts?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Feature test regression failures
Next
From: Jonas Thelemann
Date:
Subject: Translations: Newline / Whitespace Fix