Last Comment Bug 643032 - Fennec network status listener is started on device boot
: Fennec network status listener is started on device boot
Status: RESOLVED FIXED
[has patch]
: polish
Product: Core
Classification: Components
Component: Widget: Android (show other bugs)
: Trunk
: All Android
: -- minor (vote)
: mozilla6
Assigned To: Matt Brubeck (:mbrubeck)
:
Mentors:
Depends on: 655997
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-18 16:20 PDT by Matt Brubeck (:mbrubeck)
Modified: 2011-05-10 09:10 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
patch (5.98 KB, patch)
2011-05-09 11:44 PDT, Matt Brubeck (:mbrubeck)
blassey.bugs: review+
Details | Diff | Review

Description Matt Brubeck (:mbrubeck) 2011-03-18 16:20:04 PDT
Our AndroidManifest.xml registers a listener for network status changes. Android runs this listener whether the browser is running or not, whenever there is a network status change (including during device boot).

This takes up a small amount of RAM (less than 4 MB Pss), and also makes it appear that Firefox is launching itself during boot.  If there's an easy way to avoid this, we might want to do it to reduce footprint and prevent confusion.
Comment 1 Matt Brubeck (:mbrubeck) 2011-05-09 11:44:08 PDT
Created attachment 531094 [details] [diff] [review]
patch

This patch registers/unregisters the listener on Resume/Pause, just like the stock Android Browser app does.
Comment 2 Matt Brubeck (:mbrubeck) 2011-05-09 13:03:54 PDT
http://hg.mozilla.org/mozilla-central/rev/33992b8ef80e

Note You need to log in before you can comment on or make changes to this bug.