Closed Bug 718615 Opened 12 years ago Closed 12 years ago

'Clear history' is broken

Categories

(Firefox for Android Graveyard :: General, defect, P1)

ARM
Android
defect

Tracking

(firefox11 affected, firefox12 affected, firefox13 verified, fennec11+)

VERIFIED FIXED
Firefox 13
Tracking Status
firefox11 --- affected
firefox12 --- affected
firefox13 --- verified
fennec 11+ ---

People

(Reporter: pretzer, Assigned: lucasr)

References

Details

(Keywords: regression)

Attachments

(3 files)

Attached image Screenshot of the issue
'Clear history' seems to be broken. 

STR:
1. Clear your history from the prefs menu 
2. Make sure the history and top sites list is empty 
3. Visit a site you had in your history before you cleared it 

Expected:
The visited site should show up once inside the history and the top sites lists. 

Actual:
The visited site shows up twice inside the history and top sites lists. 

If you repeat the steps, each time the list will grow by one more history item. See Screenshot...
Nice catch.

I see multiple transactions for a given URI. I tried slashdot.org, and I see it listed three times.

--
Samsung Nexus S (Android 4.0.3)
Mozilla/5.0 (Android; Linux armv7l; rv:12.0a1) Gecko/20120117 Firefox/12.0a1 Fennec/12.0a1
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Looks like a serious regression most likely caused by local DB. Setting P1.
Assignee: nobody → lucasr.at.mozilla
Priority: -- → P1
tracking-fennec: --- → ?
tracking-fennec: ? → 11+
We should fix for Fx11, but not blocking beta 1
Attachment #595801 - Flags: review?(blassey.bugs) → review+
Comment on attachment 595801 [details] [diff] [review]
Fix history visit update when dealing with deleted entries

[Approval Request Comment]
Regression caused by (bug #): none
User impact if declined: Clear history causes duplicate entries in history
Testing completed (on m-c, etc.): locally
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: none
Attachment #595801 - Flags: approval-mozilla-beta?
Attachment #595801 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/091270ee3f13
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
The patch did indeed fix the issue, thanks! No new duplicate entries appear in the latest nightly build, after clearing history.
But the old duplicate entries, that have pilled up during testing, appear again when visiting one of those sites. Is this intended? I can imagine you don't want to add code just for that, so is there another way to clear those old duplicates?
(In reply to pretzer from comment #9)
> The patch did indeed fix the issue, thanks! No new duplicate entries appear
> in the latest nightly build, after clearing history.
> But the old duplicate entries, that have pilled up during testing, appear
> again when visiting one of those sites. Is this intended? I can imagine you
> don't want to add code just for that, so is there another way to clear those
> old duplicates?

The only way I can think of is to clear the data of Fennec app (from Android settings), which is non-ideal :-/
(In reply to Lucas Rocha (:lucasr) from comment #10)
> The only way I can think of is to clear the data of Fennec app (from Android
> settings), which is non-ideal :-/

That worked, thanks!
Nightly 13.0a1 (2012-02-21)
Device: Samsung Nexus S - Android 2.3.6

Marking as verified fixed on Nightly. If bug won't be fixed on Aurora and Beta, please close bug.
Comment on attachment 595801 [details] [diff] [review]
Fix history visit update when dealing with deleted entries

[Triage Comment]
Mobile only - approved for Aurora 12 and Beta 11.
Attachment #595801 - Flags: approval-mozilla-beta?
Attachment #595801 - Flags: approval-mozilla-beta+
Attachment #595801 - Flags: approval-mozilla-aurora?
Attachment #595801 - Flags: approval-mozilla-aurora+
Comment on attachment 595801 [details] [diff] [review]
Fix history visit update when dealing with deleted entries

Clearing approval for Aurora 12 and Beta 11 because we are not currently planning a Native Fennec release of these versions.  If this changes in the future, we will likely do a mass uplift of all native fennec changes.  For now, let's get these bugs off the channel triage radar.

[Filter on the string "mbrubeck-bugspam" if you want to delete all of these emails at once.]
Attachment #595801 - Flags: approval-mozilla-beta+
Attachment #595801 - Flags: approval-mozilla-aurora+
Marking bug as Verified Fixed based on Comments 12 and 14.
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: