Closed Bug 747109 Opened 12 years ago Closed 12 years ago

"Clear Private Data" throws an error and fails to clear some data

Categories

(Firefox for Android Graveyard :: General, defect)

13 Branch
All
Android
defect
Not set
normal

Tracking

(blocking-fennec1.0 +)

VERIFIED FIXED
Firefox 14
Tracking Status
blocking-fennec1.0 --- +

People

(Reporter: mbrubeck, Assigned: mbrubeck)

Details

Attachments

(1 file)

Originally reported in bug 747067 comment 3.

Steps to reproduce:  Tap on "Clear Private Data" in the Fennec settings.

Expected results: No errors; session history and general.open_location.last_url are cleared.
Actual results: Session history and last_url pref are *not* cleared; the following error appears in the log:

E/GeckoConsole( 7288): Error sanitizing history: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: chrome://browser/content/sanitize.js :: <TOP_LEVEL> :: line 185"  data: no]

nsNavHistory::Init is returning an error, because it can't initialize the places database, because MOZ_ANDROID_HISTORY disables it.  Since we don't use the the history service in Fennec, we can just remove this code.  (Alternately, we could wrap it in a try/catch block in case so it will run if we ever re-enable Places in a future version.)

Nominating for blocking-fennec1.0 because this has a (minor) privacy impact and the fix just requires removing some unused and broken code.
Attachment #616681 - Flags: review?(mark.finkle)
Attachment #616681 - Attachment is patch: true
Attachment #616681 - Flags: review?(mark.finkle) → review+
blocking-fennec1.0: ? → +
https://hg.mozilla.org/mozilla-central/rev/e8e1b554c7f8
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
There are no errors in the console when I hit Clear private data. The session history is cleared. 

Marking this as verified fixed on: Firefox 15.0a1 (2012-05-20)
Device: LG Optimus 2X (Android 2.2.2)
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: