Page MenuHomePhabricator

Mobile edition should be served to users of Mobile firefox (including nightlies)
Closed, ResolvedPublic

Description

Author: dascher

Description:
Mozilla Firefox is soon going to be widely available in final for for Android and Maemo. Betas are available today (http://www.mozilla.com/en-US/m/beta), as well as nightly builds (https://wiki.mozilla.org/Mobile/Platforms/Android)

Currently, nightly builds of Firefox on Android get shown the standard site, whereas they should get the mobile edition (which is very nice by the way!)

See https://developer.mozilla.org/en/Gecko_user_agent_string_reference

for details on the UA sniffing if that's what you want to do. I'd recommend CSS media queries based on screen size if possible.

cheers.


Version: --
Severity: enhancement

Details

Reference
bz25932

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:21 PM
bzimport set Reference to bz25932.
bzimport added a subscriber: Unknown Object (MLST).

hcatlin wrote:

Does the site currently look ok in the browser? Can you post a screenshot?

UA:

Mozilla/5.0 ({OS FAMILY}; U; {OS VERSION} {CPU}; en-US; rv:{GECKO VERSION}) Gecko/{BUILDID} Firefox/{FIREFOX VERSION} Fennec/{FENNEC VERSION}

https://developer.mozilla.org/en/Mobile/Using_the_viewport_meta_tag_to_improve_the_mobile_browsing_experience

"For web developers, this means that 320px be full width in portrait mode at scale=1, on all of the above-mentioned handheld devices, and they may size their layouts and images accordingly. But remember that not all mobile devices are the same width; you should also make sure that your pages work well in landscape mode, and on larger devices like the iPad and Android tablets.

On 240-dpi screens, pages with initial-scale=1 will effectively be zoomed to 150% by both Fennec and Android WebKit. Their text will be smooth and crisp, but their bitmap images will probably not take advantage of the full screen resolution. To get sharper images on these screens, web developers may want to design images – or whole layouts – at 150% of their final size (or 200%, to support the rumored 320-dpi iPhone) and then scale them down using CSS or viewport properties."

What's tough about this is that both Android Tablets and Firefox on Android seem to have the same UA.

This appears to be done, in that Firefox/Android is sent to the mobile site. If further tweaks for tablets (if/when the user-agent updates fully) open a specific bug if there's not already?

  • Bug 29952 has been marked as a duplicate of this bug. ***