[Qtwebengine] How to change user agent?

Fabian Bernhard fbernhard at gmail.com
Tue Jan 21 15:53:45 CET 2014


Hi Pierre

Many of the WebRTC websites including ours use Google's adapter.js [0] to
>> set up the peer connection
>
>
> I know, it was actually almost the biggest obstacle to getting
> WebRTC-powered apps working, that's why the patch I pointed to does change
> our default user agent slightly [1].
>
> [1]
> https://codereview.qt-project.org/#patch,sidebyside,75125,1,src/core/web_engine_context.cpp
>
>
Changing the user agent this way works, I don't have Javascript errors
anymore.

I have other issues [0], i.e. I can't get WebRTC working yet. I will
investigate and post new questions in a separate thread.

Thanks for your assistance!

Regards,

Fabian


[0] Warnings and error:

[0121/154659:WARNING:resource_bundle.cc(269)] locale_file_path.empty()

2014-01-21 15:46:59.866 QtWebEngineProcess[99752:507] Internals of
CFAllocator not known; out-of-memory failures via CFAllocator will not
result in termination. http://crbug.com/45650

[0121/154659:WARNING:resource_bundle.cc(269)] locale_file_path.empty()
[0121/154659:ERROR:renderer_main.cc(227)] Running without renderer sandbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20140121/9536eaa9/attachment.html>


More information about the QtWebEngine mailing list