PoC: Browser based runtime

Поиск
Список
Период
Сортировка
От Dave Page
Тема PoC: Browser based runtime
Дата
Msg-id CA+OCxoxsWkP3c6BdbqMkSWAASybehkJ9BMrhbbr29EZ+M2h_4g@mail.gmail.com
обсуждение исходный текст
Ответы Re: PoC: Browser based runtime  (Dave Page <dpage@pgadmin.org>)
Список 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

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Feature test regression failures
Следующее
От: Jonas Thelemann
Дата:
Сообщение: Translations: Newline / Whitespace Fix