maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   N900 BBC.co.uk display (https://talk.maemo.org/showthread.php?t=82245)

ziggadebo 2012-02-10 21:46

N900 BBC.co.uk display
 
hi,

can anyone tell me why the stock browser can't display

www.bbc.co.uk webpage correctly. Ever since they launched their new look site the main page doesn't load properly, the sport section on the right always cuts off and you can only see the first few characters of each headline.

Is there a solution to display it properly, I dont want to use the cut down phone version of the site.

Thanks

knuthf 2012-02-10 23:02

Re: N900 BBC.co.uk display
 
The problem is with BBC.

It also happens on other sites, that redirect you to some customised site - e.g. www.bbc.co.uk takes you to www.bbc.com/mobile/i/ - if you use the "macuco" browser on the N900 that emulates the iPhone browser.

Try first with your PC and see where it takes you. The N900 use the same browser as any other laptop running Linux such as Firefox/Iceweasel and Opera. The page that is shown is the same as the laptop and not the one made for the iPhone.

With the N900 you have the choice of two worlds: behave as any other computer, but keep it in the pocket, or mimick the iPhone with its short-comings and constraints. I suggest you make BBC aware of their problem and ask that "ClickIt" studies this site for a technology update.

But it is no problem with the N900.:cool:

demolition 2012-02-11 00:19

Re: N900 BBC.co.uk display
 
2 Attachment(s)
Actually, on seeing the Opera interpretation of this site, I'm inclined to think it's microB & the CSS. Note: when the page loads slowly (usually b/c of excessive content per page) the page looks ok until microB implements all the layout commands. Therefore, either Opera doesn't implement the layout in its entirity (possible) or microB over- or under- implements the layout. Which I wonder?

My guess: the problem is Partly the BBC. (and partly microB).

If anyone reading this is using Fennec, please advise as to whether the right hand side is trimmed (as per microB). Screenshots of website attached. If Fennec gets it correct, perhaps it's another case to port non-UI elements to microB?

microB UA string:
Mozilla/5.0 (X11; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Images below
Top: MicroB. Bottom. Opera[/B] (11.5).
I have No idea why these images are different sizes - both Ctrl + Shift + P.

sixwheeledbeast 2012-02-11 00:47

Re: N900 BBC.co.uk display
 
Quote:

Originally Posted by demolition (Post 1163364)
If anyone reading this is using Fennec, please advise as to whether the right hand side is trimmed (as per microB).

Nope, page shows perfect for me on Fennec 7.01

sixwheeledbeast 2012-02-11 00:57

Re: N900 BBC.co.uk display
 
Also just checked using Default and Desktop Firefox agents, works the same.
Obviously "If-fone" agent takes you to the cut down mobile site.

demolition 2012-02-11 00:59

Re: N900 BBC.co.uk display
 
Quote:

Originally Posted by sixwheeledbeast (Post 1163373)
Nope, page shows perfect for me on Fennec 7.01

So looks like we (collectively) need to think of how to port things like the CSS interpreter, the JS engine, etc. to microB. Perhaps a topic for Brainstorm very soon?

mr_jrt 2012-02-11 13:55

Re: N900 BBC.co.uk display
 
One of the developer angels we have here was considering reimplementing the closed source browser ui (as it had few external dependencies on other closed components) so we could update the microb engine. It'll be in the IRC logs form last year if you care to search back for info.

knuthf 2012-02-11 20:10

Re: N900 BBC.co.uk display
 
The "Brainstorming" that is needed is in BBC.

Completely bought and paid for by Apple.
So much for "impartial reporting".

I would suggest that sites that want to support mobile phone, does so by making a button that you can use. I have used my phone for browsing since 1996 and that the release one device with a tiny minority marketshare creates so much havoc is insane. We use just standard regular browser on a tiny screen. We concluded in 2000 that 7" was too small for browsing, and made a iPad with a 13" screen and the main comment was "Make it on a larger screen and we will buy it..." - so a 17" device was made. But can BBC know if the screen is 4" or 17" - by every device sends an identification code?

Take to your senses BBC: fit a button for 4" devices, 7" and maybe for 17" and larger..... We can "zoom in" - have done so for 15 years.

Opera has the capability to report in as you choose - as IE, Safari, Firefox etc. I can ask them to amend iPhone.

knuthf 2012-02-11 20:12

Re: N900 BBC.co.uk display
 
Opera will render differently, and optimise on showing as much as possible. They can do this because it is so simpe to zoom.

demolition 2012-02-12 01:15

Re: N900 BBC.co.uk display
 
Quote:

Originally Posted by mr_jrt (Post 1163510)
One of the developer angels we have here was considering reimplementing the closed source browser ui (as it had few external dependencies on other closed components) so we could update the microb engine. It'll be in the IRC logs form last year if you care to search back for info.

Thanks mr_jrt. I quite like microB's UI. If everything else could be / had to be replaced, it'd be fine. It's the 'moving' parts that need reviewing (e.g. the -moz prefix is required for microB even though it's not proper). I can even put up with the poor text reflow, if that's a part of the UI, not the layout-engine.

I'll see if I can dig it out of the logs. I think the browser engine is OSS but don't know what can be replaced without breaking dependency trees - or really how to go about it. 'browserd' is now OSS, which seemed like a breakthrough when released. Probably good for making web clients more easily?

Quote:

Originally Posted by knuthf (Post 1163603)
The "Brainstorming" that is needed is in BBC...

MicroB is 2008/'9 technology so considering how to update its inner workings might be worthwhile, wouldn't it? Someone correct me if I'm wrong - microB was designed with the intention being able to view the web like one does from a desktop computer, but on the go i.e. the perfect hybrid. Most of the time, it's amazing.

One of the troubles is the that client width (i.e. device width) is just not sufficient to cope with some desktop sites. This does not simply mean zoom - e.g. even on TMO it's evident: the smileys to the right of the message-entry box are obscured by the right hand column. Yet, equivalent mobile sites display poorly because microB is not a typical mobile browser like the N9's Qt/Webkit one (which, AFAIK, is almost the same as the iPhonne's, incidentally). The fact the the BBC site and many others don't display as intended is a combination of
- these sites' over ambitious layout vs. client size,
- these sites treat microB as an obscure mobile browser thus do not even attempt to display their content (try opening iplayer site without changing UA string),
- xul-1.9 layout engine being increasingly long in the tooth for the newest mobile and desktop sites so will have increasing number of layout problems.

Quote:

But can BBC know if the screen is 4" or 17" - by every device sends an identification code?
The BBC and other lazy web developers use the UA string to detect what device you're browsing from. I suggest playing them at their own game by using the programme "Hide User Agent"; the only caveat is some sites demand a valid UA string so you'll need to use something like the one I posted above. I believe most N900 users want a near desktop browsing experience on the device, so microB is the best option. The best of both worlds would be to allow users to run the browser in either mobile mode or desktop mode - perhaps something to consider adding in?

demolition 2012-02-17 14:00

Re: N900 BBC.co.uk display
 
1 Attachment(s)
Below is a screenshot of the BBC homepage running on Fennec 7 (UA string: Mozilla/5.0 (Maemo; Linux armv7l; rv:7.0.1) Gecko/20120205 Firefox/7.0.1 Fennec/7.0.1).If you poke about a bit with Fennec, it can be made to play flash content (apparently flashplugin can cause crashes though). Version 7 also supports WebM; though the playback is in fact quite patchy because it seems to force 360p, which is too much for stock kernel.

I tried these strings in the settings UI for Hide User Agent, which affects microB only:
1. Desktop equivalent to microB: Mozilla/5.0 (X11; U; Linux armv7l; en-US; rv:1.9.2.3) Gecko/20100423 Debian/5.04 (lenny) Firefox/3.6.3)
2. Fennec (as above): Mozilla/5.0 (Maemo; Linux armv7l; rv:7.0.1) Gecko/20120205 Firefox/7.0.1 Fennec/7.0.1)

Neither made a difference so it must be the layout engine using out of date terms. I'm going to try to "drop-in" Fennec's Gecko/XUL-runner into the microB directory. Hopefully the phone won't die, because of all the underlying OS stuff that depends on the browser, so I'll be able to report back some useful results...

Aside:
Fennec 7 is quite good. Unfortunately, its UI is not designed for devices (a) that have hardware keyboards, (b) whose screens are high dpi resistive or (c) that don't have a lot of RAM - i.e. the N900! Forms and media-playback aren't reliable but general browsing is good. Sometimes if you need to view things and neither microB nor Opera can handle it, Fennec is worth a try.

kureyon 2012-02-18 02:16

Re: N900 BBC.co.uk display
 
Quote:

Originally Posted by knuthf (Post 1163603)
Completely bought and paid for by Apple.

Since when did Microsoft sell the BBC to Apple? ;)

I have just checked www.bbc.co.uk on linux desktop firefox (3.6.x) and microb, and for all intents and purposes the layout is near identical. And I don't get redirected to the mobile site when using microb.

The only difference between desktop firefox and microb is that with the latter I get some text "IN ASSOCIATION WITH" at various places in the page where presumably some advert should be shown but is not. As I have adblocker on firefox I don't even see that text.

ziggadebo 2012-03-03 15:04

Re: N900 BBC.co.uk display
 
the bbc site is now showing properly using microb, i've not changed or updated anything so im guessing they've made a change?

Happy days.

macey 2012-10-07 14:08

Re: N900 BBC.co.uk display
 
Quote:

Originally Posted by ziggadebo (Post 1173657)
the bbc site is now showing properly using microb, i've not changed or updated anything so im guessing they've made a change?

Happy days.


I still get redirected to http:/m.bbc.co.uk every time I try to access
www.bbc.co.uk.
I am using the "stock" browser on my N900's. Same issue
with both of them. Is there any way around this?


All times are GMT. The time now is 02:54.

vBulletin® Version 3.8.8