This repository has been archived by the owner. It is now read-only.

per site useragent #399

Closed
Thra11 opened this Issue May 12, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@Thra11

Thra11 commented May 12, 2012

Allow the user to set a list of specific list of sites with associated useragents.

Rationale: Generally it's best to have the useragent set to what the browser actually is. However, some sites can display correctly in qupzilla, but are set to reject all but a limited set of useragents.

e.g. bbc iplayer in the uk seems to work fine in qupzilla, but only if the useragent is set to firefox, opera etc. Otherwise, it displays, "Sorry we do not support your device".

For sites such as this, it would be convenient to have qupzilla remember that this specific site needs to have useragent set to something different.

@pejakm

This comment has been minimized.

Show comment
Hide comment
@pejakm

pejakm May 12, 2012

Member

Agreed, but I'm not sure whether does qtwebkit support this.

Member

pejakm commented May 12, 2012

Agreed, but I'm not sure whether does qtwebkit support this.

@JHooverman

This comment has been minimized.

Show comment
Hide comment
@JHooverman

JHooverman May 13, 2012

Member

For me the question is, if we have benefits (e.g. in speed, security, layout) when accssing a web-site using the qupzilla user agent. Unfortunately I am not able to give the answer. If this is not the case, we should recommend to use the firefox user agent as a default setting.

Member

JHooverman commented May 13, 2012

For me the question is, if we have benefits (e.g. in speed, security, layout) when accssing a web-site using the qupzilla user agent. Unfortunately I am not able to give the answer. If this is not the case, we should recommend to use the firefox user agent as a default setting.

@nowrep

This comment has been minimized.

Show comment
Hide comment
@nowrep

nowrep May 13, 2012

Member

Of course we should use our own user agent as long as possible, because it's the only correct one.

Using Firefox user agent can also lead to issues that are not present with default user agent, because current versions of Firefox is supporting more features (html5, ...) than QtWebKit now. It may also completely break functionality of entire site.

Right now, for Facebook and Google, a "fake" user agent is used by default. It is user agent in this format:

Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2
%1 - OS
%2 - WebKit version (eg. 534.34)

As you can see, it is user agent of Chrome 10 with actual version of WebKit that is used.
Chrome 10 is originally using WebKit version 534.14 - 534.36, so it is very close to WebKit version in current QtWebKit release (which is 534.34 for QtWebKit 2.2).

I will make an option to change list of servers to send this fake user agent.

PS: If you want to test this user agent, there is example (for Linux):

Mozilla/5.0 (Linux) AppleWebKit/534.34 (KHTML, like Gecko) Chrome/10.0 Safari/534.34
Member

nowrep commented May 13, 2012

Of course we should use our own user agent as long as possible, because it's the only correct one.

Using Firefox user agent can also lead to issues that are not present with default user agent, because current versions of Firefox is supporting more features (html5, ...) than QtWebKit now. It may also completely break functionality of entire site.

Right now, for Facebook and Google, a "fake" user agent is used by default. It is user agent in this format:

Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2
%1 - OS
%2 - WebKit version (eg. 534.34)

As you can see, it is user agent of Chrome 10 with actual version of WebKit that is used.
Chrome 10 is originally using WebKit version 534.14 - 534.36, so it is very close to WebKit version in current QtWebKit release (which is 534.34 for QtWebKit 2.2).

I will make an option to change list of servers to send this fake user agent.

PS: If you want to test this user agent, there is example (for Linux):

Mozilla/5.0 (Linux) AppleWebKit/534.34 (KHTML, like Gecko) Chrome/10.0 Safari/534.34

@nowrep nowrep closed this in e517b9e Aug 17, 2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.