6.0.0-beta1
9/8/25

[#12613] Horde_Browser: Detect stock N900 browser as mobile browser
Summary Horde_Browser: Detect stock N900 browser as mobile browser
Queue Horde Framework Packages
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 08/24/2013 (4398 days ago)
Due
Updated 08/26/2013 (4396 days ago)
Assigned
Resolved 08/26/2013 (4396 days ago)
Milestone
Patch Yes

History
08/26/2013 08:04:34 PM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (master):

commit 86fe16c21dd41f05ecf16346375c6ca2a2255c92
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Aug 26 13:25:01 2013 -0600

     [mms] Detect stock N900 browser as mobile browser (Request 
#12613; Thomas Jarosch <thomas.jarosch@intra2net.com>).

  framework/Browser/package.xml |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/86fe16c21dd41f05ecf16346375c6ca2a2255c92
08/26/2013 07:24:23 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
08/26/2013 07:22:57 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit ff183b6d4f3faa6f143e272d75a534a07d064898
Author: Thomas Jarosch <thomas.jarosch@intra2net.com>
Date:   Sun Aug 25 00:22:32 2013 +0200

     Detect stock N900 browser as mobile browser

     Transmitted user agent looks like this:

     "Mozilla/5.0 (X11; U; Linux armv7l; de-DE; rv:1.9.2.3pre) Gecko/20100723
      Firefox/3.5 Maemo Browser 1.7.4.8 RX-51 N900"

     Request #12613
     Signed-off-by: Michael M Slusarz <slusarz@horde.org>

  framework/Browser/lib/Horde/Browser.php |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/ff183b6d4f3faa6f143e272d75a534a07d064898
08/26/2013 07:08:43 PM Thomas Jarosch Comment #5 Reply to this comment
So your patch is the preferred way of fixing this?
For the moment, yes. We are probably tweaking this again when the new 
Sailfish devices finally arrive :)

08/26/2013 03:58:14 AM Michael Slusarz Comment #4
State ⇒ Feedback
Reply to this comment
So your patch is the preferred way of fixing this?
08/24/2013 11:52:56 PM Thomas Jarosch Comment #3 Reply to this comment
Wouldn't it make more sense to search for 'Maemo' instead?  That 
way, you are not tied to a specifc phone model.
Maemo has been dead after the N900.

The "successor" N9 identifies as webkit / Safari and is already detected.

Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) 
NokiaBrowser/8.5.0 Mobile Safari/534.13


Coming to think of it, the current detection for the N900 in 
Browser.php is probably bogus.
See:
http://developer.nokia.com/Community/Wiki/User-Agent_headers_for_Nokia_devices
08/24/2013 11:23:48 PM Michael Slusarz Comment #2 Reply to this comment
Wouldn't it make more sense to search for 'Maemo' instead?  That way, 
you are not tied to a specifc phone model.
08/24/2013 10:29:28 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Horde_Browser: Detect stock N900 browser as mobile browser
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: 0001-Detect-stock-N900-browser-as-mobile-browser.patch Download
State ⇒ New
Reply to this comment
Hi,

attached patch adds mobile browser detection for the stock N900 browser.

Transmitted user-agent:
"Mozilla/5.0 (X11; U; Linux armv7l; de-DE; rv:1.9.2.3pre) 
Gecko/20100723 Firefox/3.5 Maemo Browser 1.7.4.8 RX-51 N900"

Smartmobile view seems to work fine, I've played around with mail, 
contacts and the calendar app.

Thomas

Saved Queries