ArmLightweightBrowser

Differences between revisions 3 and 9 (spanning 6 versions)
Revision 3 as of 2009-11-05 19:29:23
Size: 3085
Editor: pool-71-255-20-33
Comment:
Revision 9 as of 2010-01-29 10:23:45
Size: 5826
Editor: g224090217
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * '''Contributors''': Paul Larson, David Sugar  * '''Contributors''': Paul Larson, David Sugar, Alexander Sack
Line 10: Line 10:
Mozilla Firefox is a fairly heavy web browser and suffers from less than optimal performance on ARM due to issues such as cache size. Lighter-weight web browsers should be investigated, and a more appropriate one should be picked as a default for ARM based releases. Mozilla Firefox is a fairly heavy web browser and suffers from less than optimal performance on ARM due to issues such as cache size. While trying to optimize the firefox performance even further this cycle, a lightweight browser that has potential to replace firefox feature for ARM based releases will be selected and evaluated. Standard-compliance is essential, along with support for modern browser user experiences such as tabbed browsing, form fill-in, extensions, media playback, Java support, etc. For these reasons, a consensus emerged at UDS in favor of Chromium.
Line 14: Line 14:
This section should include a paragraph describing the end-user impact of this change. It is meant to be included in the release notes of the first release in which it is implemented. (Not all of these will actually be included in the release notes, at the release manager's discretion; but writing them is a useful exercise.) Variant A: To improve the user experience, the Ubuntu Netbook Edition for ARM now ships Google Chromium as a desktop browser. An ARM optimized firefox is still available from software center.
Line 16: Line 16:
It is mandatory. Variant B: firefox is still the default browser and comes with optimized performance by moving to the optimized armv7 instruction set.
Line 20: Line 20:
There are performance issues using Firefox on arm hardware. This blueprint is a question as well as a goal to try and find a lighter wight browser, perhaps based on webkit. There were reports about performance issues during Karmic cycle for firefox. Chromium Browser appears to be a promising candidate as it was designed from ground up with security, speed and size in mind; however, firefox will still be a major player, and hence this spec also defines actions to optimize firefox as much as possible for arm.
Line 24: Line 24:
Browsing is an essential user experience. This blueprint addresses issues which detract from that experience on small cache arm processors when using Firefox (Karmic).
Line 26: Line 28:
That we can find an alternative that will still satisfy user needs including access to media (plugins) and flash, as well as being sufficiently standards-compliant and capable. That we can find an alternative that will still satisfy user needs including access to media (plugins), Java, flash (as it becomes available for Arm), as well as being sufficiently standards-compliant and meeting user expectations of a modern web browser.

That the Firefox user experience is too poor on ARM and cannot be easily fixed.
Line 30: Line 34:
You can have subsections that better describe specific parts of the issue. We will package Chromium for main and add it to the UNE seed. On top we will try to optimize firefox by making use of thumb2 and by optimizing the firefox build even further.
Line 34: Line 38:
This is a seed spec from the perspective of implementation. If an alternate browser is acceptable and chosen, it would mean changing the seed.  * We need to package Chromium in main and built it successfully for armv7 for Lucid.
 * we need to evaluate chromium and file/drive bugs upstream for issues encountered
   * ensure that as many errors in testsuite get fixed
   * ensure that we have a good runtime experience on a arm UNE desktop
   * ensure that most important plugins work (flash, totem, java, etc.)
 * Benchmark Firefox and Chromium and prepare a comparsion of both options
 * Decide whether we are comfortable to move to chromium
 * adjust the UNE seeds based on the outcome of above items.
Line 38: Line 49:
Should cover changes required to the UI, or specific UI that is required to implement this Not applicable.
Line 42: Line 53:
Code changes should include an overview of what needs to change, and in some cases even the specific details. There may be a patch needed for armv7. If so I am sure upstream adoption will not be a problem.
Line 46: Line 57:
It is presumed several options will emerge in discussions during UDS, and each will be tested from the above criteria as well as for performance on ARM. Actual implementation is minimal. A few days may be spent optimizing and re-building Firefox.

This may require up to several weeks to build, test, then commit changes to make this happen.

=== Risks ===

After optimizing Firefox and building Chromium we may not find as great a difference in user experience as anticipated. Worst case we simply continue using Firefox.
Line 50: Line 67:
There is a question about migrating user bookmarks which might be stored in Firefox. The user can export bookmarks from Firefox to migrate to Chromium. Stored account passwords and other aspects cannot be migrated easy, however.
Line 54: Line 71:
It's important that we are able to test new features, and demonstrate them to users. Use this section to describe a short plan that anybody can follow that demonstrates the feature is working. This can then be used during testing, and to show off after release. Please add an entry to http://testcases.qa.ubuntu.com/Coverage/NewFeatures for tracking test coverage.

This need not be added or completed until the specification is nearing beta.
We need to test Chromium on Arm side by side with Firefox to see how well this solves the performance issues we are addressing before committing to change the seed.
Line 60: Line 75:
This should highlight any issues that should be addressed in further specifications, and not problems with the specification itself; since any specification with problems cannot be approved. There is no UbuntuOne bookmark integration for Chromium at this time.


== Benchmark results ==

=== javascript engine ===

=== startup time ===
Line 64: Line 86:
Use this section to take notes during the BoF; if you keep it in the approved spec, use it for summarising what was discussed and note any options that were rejected. '''From UDS:'''

Why does firefox perform poorly on ARM and what should we do about it?

 * small cache on arm processors
 * memory usage
 * availability of plugins
 * usability (some plugins do not match certain environments such as touchscreens)

Can firefox be optimized for Ubuntu and/or ARM enough to compensate for performance issues?

 * Firefox replacements must support (in order of priority):
  * quick on ARM
  * UNR/touchscreen/small screen/scrolling
  * Good/Fast support for JavaScript
  * support for Flash
  * good extension support (unless it causes more problems)
  * Java

'''Considerations'''
 * memory usage and performance, what happens when opening lots of instances, lots of tabs, etc
 * Responsive upstream

'''Issues'''
 * which webkit, google vs ubuntu libwebkit?
 
'''Review'''
 * midori frustrating to use at times
 * epiphany limited but works, functional
   * uses webkit
   * "works" but limited by comparison to firefox
 * Konquerer - khtml, huge kde dependencies
 * Chromium
   * different user experience from firefox
   * is fast & gtk based
   * uses considerably less memory
   * Theming issues
   
'''Notes'''
 * can we improve/optimize firefox/xulrunner? Is there significant improvement gains even possible?
  * opinion not significant opportunity

'''ACTIONS'''
 * Determine the status of Java applets [and JIT?] on ARM Cortex-A8
 * Chromium on Arm performance
 * Chromium build issues on armv7
 * Mobile team to initially package Chromium
 * investigate with desktop team and security team who will own it, and how to handle updates
 * upload to archive (Michael Casadevall)
 * investigate test suite on arm
 * benchmarking over multiple browsers over all supported platforms

Summary

Mozilla Firefox is a fairly heavy web browser and suffers from less than optimal performance on ARM due to issues such as cache size. While trying to optimize the firefox performance even further this cycle, a lightweight browser that has potential to replace firefox feature for ARM based releases will be selected and evaluated. Standard-compliance is essential, along with support for modern browser user experiences such as tabbed browsing, form fill-in, extensions, media playback, Java support, etc. For these reasons, a consensus emerged at UDS in favor of Chromium.

Release Note

Variant A: To improve the user experience, the Ubuntu Netbook Edition for ARM now ships Google Chromium as a desktop browser. An ARM optimized firefox is still available from software center.

Variant B: firefox is still the default browser and comes with optimized performance by moving to the optimized armv7 instruction set.

Rationale

There were reports about performance issues during Karmic cycle for firefox. Chromium Browser appears to be a promising candidate as it was designed from ground up with security, speed and size in mind; however, firefox will still be a major player, and hence this spec also defines actions to optimize firefox as much as possible for arm.

User stories

Browsing is an essential user experience. This blueprint addresses issues which detract from that experience on small cache arm processors when using Firefox (Karmic).

Assumptions

That we can find an alternative that will still satisfy user needs including access to media (plugins), Java, flash (as it becomes available for Arm), as well as being sufficiently standards-compliant and meeting user expectations of a modern web browser.

That the Firefox user experience is too poor on ARM and cannot be easily fixed.

Design

We will package Chromium for main and add it to the UNE seed. On top we will try to optimize firefox by making use of thumb2 and by optimizing the firefox build even further.

Implementation

  • We need to package Chromium in main and built it successfully for armv7 for Lucid.
  • we need to evaluate chromium and file/drive bugs upstream for issues encountered
    • ensure that as many errors in testsuite get fixed
    • ensure that we have a good runtime experience on a arm UNE desktop
    • ensure that most important plugins work (flash, totem, java, etc.)
  • Benchmark Firefox and Chromium and prepare a comparsion of both options
  • Decide whether we are comfortable to move to chromium
  • adjust the UNE seeds based on the outcome of above items.

UI Changes

Not applicable.

Code Changes

There may be a patch needed for armv7. If so I am sure upstream adoption will not be a problem.

Effort

A few days may be spent optimizing and re-building Firefox.

This may require up to several weeks to build, test, then commit changes to make this happen.

Risks

After optimizing Firefox and building Chromium we may not find as great a difference in user experience as anticipated. Worst case we simply continue using Firefox.

Migration

The user can export bookmarks from Firefox to migrate to Chromium. Stored account passwords and other aspects cannot be migrated easy, however.

Test/Demo Plan

We need to test Chromium on Arm side by side with Firefox to see how well this solves the performance issues we are addressing before committing to change the seed.

Unresolved issues

There is no UbuntuOne bookmark integration for Chromium at this time.

Benchmark results

javascript engine

startup time

BoF agenda and discussion

From UDS:

Why does firefox perform poorly on ARM and what should we do about it?

  • small cache on arm processors
  • memory usage
  • availability of plugins
  • usability (some plugins do not match certain environments such as touchscreens)

Can firefox be optimized for Ubuntu and/or ARM enough to compensate for performance issues?

  • Firefox replacements must support (in order of priority):
    • quick on ARM
    • UNR/touchscreen/small screen/scrolling
    • Good/Fast support for JavaScript

    • support for Flash
    • good extension support (unless it causes more problems)
    • Java

Considerations

  • memory usage and performance, what happens when opening lots of instances, lots of tabs, etc
  • Responsive upstream

Issues

  • which webkit, google vs ubuntu libwebkit?

Review

  • midori frustrating to use at times
  • epiphany limited but works, functional
    • uses webkit
    • "works" but limited by comparison to firefox
  • Konquerer - khtml, huge kde dependencies
  • Chromium
    • different user experience from firefox
    • is fast & gtk based

    • uses considerably less memory
    • Theming issues

Notes

  • can we improve/optimize firefox/xulrunner? Is there significant improvement gains even possible?
    • opinion not significant opportunity

ACTIONS

  • Determine the status of Java applets [and JIT?] on ARM Cortex-A8
  • Chromium on Arm performance
  • Chromium build issues on armv7
  • Mobile team to initially package Chromium
  • investigate with desktop team and security team who will own it, and how to handle updates
  • upload to archive (Michael Casadevall)
  • investigate test suite on arm
  • benchmarking over multiple browsers over all supported platforms


CategorySpec

Specs/ArmLightweightBrowser (last edited 2010-01-29 10:23:45 by g224090217)