[PATCH] User iPhone user agent to get mobile content

39 views
Skip to first unread message

Simon Hausmann

unread,
Aug 10, 2012, 2:06:53 AM8/10/12
to snowsh...@googlegroups.com
---
src/mobile/qml/SnowshoeWebView.qml | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/mobile/qml/SnowshoeWebView.qml b/src/mobile/qml/SnowshoeWebView.qml
index 89aaf10..eb753bb 100644
--- a/src/mobile/qml/SnowshoeWebView.qml
+++ b/src/mobile/qml/SnowshoeWebView.qml
@@ -53,6 +53,7 @@ Item {

experimental.preferredMinimumContentsWidth: 980
experimental.devicePixelRatio: 1.5
+ experimental.userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3"

onLoadingChanged: {
if (webView.url == "about:blank")
--
1.7.11.2.249.g31c7954

forg...@gmail.com

unread,
Aug 10, 2012, 12:00:06 PM8/10/12
to snowsh...@googlegroups.com

If it's better than whatever we are using as the default one, then R=me. =)


Thanks for the patch!

Jesus

forg...@gmail.com

unread,
Aug 10, 2012, 12:01:47 PM8/10/12
to snowsh...@googlegroups.com

Btw, I'm out of the office until monday, so someone else needs to land this.

Alexis Menard

unread,
Aug 12, 2012, 8:20:46 PM8/12/12
to snowsh...@googlegroups.com
On Fri, Aug 10, 2012 at 1:01 PM, <forg...@gmail.com> wrote:
> Btw, I'm out of the office until monday, so someone else needs to land this.
>
>
> On 10/08/12 13:00 forg...@gmail.com wrote:
>
> If it's better than whatever we are using as the default one, then R=me. =)

Simon can push I believe.

>
>
> Thanks for the patch!
>
> Jesus
>
>
> On 10/08/12 03:06 Simon Hausmann wrote:
>
> ---
> src/mobile/qml/SnowshoeWebView.qml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mobile/qml/SnowshoeWebView.qml
> b/src/mobile/qml/SnowshoeWebView.qml
> index 89aaf10..eb753bb 100644
> --- a/src/mobile/qml/SnowshoeWebView.qml
> +++ b/src/mobile/qml/SnowshoeWebView.qml
> @@ -53,6 +53,7 @@ Item {
>
> experimental.preferredMinimumContentsWidth: 980
> experimental.devicePixelRatio: 1.5
> + experimental.userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac
> OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334
> Safari/7534.48.3"
>
> onLoadingChanged: {
> if (webView.url == "about:blank")
> --
> 1.7.11.2.249.g31c7954
>
>
>
>



--
Alexis Menard (darktears)
Software Engineer
openBossa @ INdT - Instituto Nokia de Tecnologia
Reply all
Reply to author
Forward
0 new messages