[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1054919: kaccounts-providers: google authentication hang after username entry



Hi everyone!

Sorry for the late reply, but let me try to answer the questions which remain
unanswered.

On Sun, Oct 29, 2023 at 07:43:51PM +0100, Alexis Murzeau wrote:
> I'm not sure how Qt webkit works, but I guess it behaves like a old
> chrome browser. I don't know if it uses a different user agent, but
> maybe Google doesn't recognize that it doesn't support newer web stuff.

Qt WebKit does not identify itself like Chrome. It identifies itself like
AppleWebKit and Safari, which makes sense because Safari is the most known
browser based on WebKit engine.

The current Qt WebKit user agent is:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Qt/5.15.10 Version/10.0 Safari/602.1

The Qt/5.15.10 component may be replaced with name and version of the
application.

Indeed, this is an ancient version. I think 602.1 branch is from 2016.
However, changing it to a newer version would be lying.

Qt WebKit is not supported by upstream Qt since Qt 5.6, and the first
community fork is also dead now. There is another fork, but I won't call it
alive either.

> Qt 6 doesn't seem to have Qt webkit anymore, but QtWebEngine instead.
> I guess signon-ui should move to QtWebEngine instead but sadly upstream
> seems rather dead :(, the previous signon-ui release was more than 5
> years ago.

Yes, Qt WebKit does not support Qt 6, so the only choice is to migrate to
Qt WebEngine which is supported much better. I would recommend doing that
even if you stay on Qt 5.

Unlike Qt WebKit which is based on Apple WebKit, Qt WebEngine is based on
Chromium codebase.

Qt WebEngine user agents will look the following:

Qt 5.15:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.15 Chrome/87.0.4280.144 Safari/537.36

Qt 6.4:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.4.2 Chrome/102.0.5005.177 Safari/537.36

Qt 6.6:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.6.0 Chrome/112.0.5615.213 Safari/537.36

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: