Closed Bug 1149799 Opened 9 years ago Closed 9 years ago

Move "Sanitize:ClearHistory" message handler out of GeckoApp

Categories

(Firefox for Android Graveyard :: Settings and Preferences, defect)

ARM
Android
defect
Not set
minor

Tracking

(firefox40 fixed)

RESOLVED FIXED
Firefox 40
Tracking Status
firefox40 --- fixed

People

(Reporter: AndyP, Assigned: AndyP)

Details

Attachments

(1 file)

As requested[1] this is a follow-up bug to move the "Sanitize:ClearHistory" message handler out of GeckoApp.

[1]https://bugzilla.mozilla.org/show_bug.cgi?id=1139379#c14
Assignee: nobody → drag
Did you have any specific helper class in mind or would you like it to be moved to BrowserApp?
Flags: needinfo?(margaret.leibovic)
(In reply to Andy Pusch [:AndyP] from comment #1)
> Did you have any specific helper class in mind or would you like it to be
> moved to BrowserApp?

Sorry for the delay here! I think moving this into BrowserApp would be a good start. But I want to double check to make sure we don't need this for shared GeckoApp implementations...

mfinkle, do we include browser db logic with GeckoView? Would this be necessary for things like visited link coloring?

I also see bookmarks logic in GeckoApp that should probably move into BrowserApp if we don't use it for anything more general.
Flags: needinfo?(margaret.leibovic) → needinfo?(mark.finkle)
(In reply to :Margaret Leibovic from comment #2)

> mfinkle, do we include browser db logic with GeckoView? Would this be
> necessary for things like visited link coloring?
> 
> I also see bookmarks logic in GeckoApp that should probably move into
> BrowserApp if we don't use it for anything more general.

It's a hodge-podge right now. Link coloring should work in GeckoView, but GeckoView has no history DB!

Moving "Sanitize:ClearHistory" to BrowserApp seems like a safe move though. GeckoView-based apps should handle clearing data in an app-specific way, not a GeckoView way.
Flags: needinfo?(mark.finkle)
I've moved "Sanitize:ClearHistory" to BrowserApp and declared the handleClearHistory method private.

try submission: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c59df87aeff9
Attachment #8591927 - Flags: review?(margaret.leibovic)
Comment on attachment 8591927 [details] [diff] [review]
bug1149799_moveClearHistoryMessageHandler.diff

Review of attachment 8591927 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me! I trust that you also manually tested that clearing history still works :)
Attachment #8591927 - Flags: review?(margaret.leibovic) → review+
(In reply to :Margaret Leibovic from comment #5)
> Comment on attachment 8591927 [details] [diff] [review]
> bug1149799_moveClearHistoryMessageHandler.diff
> 
> Review of attachment 8591927 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Looks good to me! I trust that you also manually tested that clearing
> history still works :)

Yes I have tested clearing search history and browsing history both separated and together. :)
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/0ec8fdc017f8
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
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: