Last Comment Bug 643032 - Fennec network status listener is started on device boot
: Fennec network status listener is started on device boot
[has patch]
: polish
Product: Core
Classification: Components
Component: Widget: Android (show other bugs)
: Trunk
: All Android
-- minor (vote)
: mozilla6
Assigned To: Matt Brubeck (:mbrubeck)
: Jim Chen [:jchen] [:darchons]
Depends on: 655997
  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:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

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

Description User image 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 User image Matt Brubeck (:mbrubeck) 2011-05-09 11:44:08 PDT
Created attachment 531094 [details] [diff] [review]

This patch registers/unregisters the listener on Resume/Pause, just like the stock Android Browser app does.
Comment 2 User image Matt Brubeck (:mbrubeck) 2011-05-09 13:03:54 PDT

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