Closed Bug 121730 Opened 23 years ago Closed 20 years ago

Add number of entries actually removed from sHistory when using PurgeHistory()

Categories

(Core Graveyard :: Embedding: APIs, enhancement)

x86
Windows NT
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: depman1, Assigned: timeless)

References

()

Details

Attachments

(1 file)

currently, PurgeHistory() takes a request for number of entries to be removed
from session history. But if the notification is set to false for the purge
history listener, there is nothing passed back to PurgeHistory() to indicate
that no entries were removed. The user only gets a message that x number of
entries were requested for removal.

To see this:
1) Set notification to PR_FALSE in nsISHistoryListener::OnHistoryPurge(). In
TestEmbed, it's in BrowserImplHistoryLstnr.cpp.
2) Compile and Run TestEmbed from bin directory.
3) From Test menu, add the history listener.
4) Enter a couple of urls.
5) From Interfaces > nsISHistory menu, select Purge History. 
Result: It will indicate 3 entries requested for removal from session history
(both from the history lstnr and PurgeHistory() methods).
Expected: Indicate that 0 entries were removed. A return variable would need to
be passed back to PurgeHistory(). So if the notification flag is TRUE, then it
would indicate 3 were removed.
QA Contact: mdunn → depstein
Status: NEW → ASSIGNED
Target Milestone: --- → Future
QA Contact: depstein → carosendahl
This bug needs to be reassigned.
Assignee: radha → timeless
Attachment #154959 - Flags: superreview?(bzbarsky)
Attachment #154959 - Flags: review?(bzbarsky)
Comment on attachment 154959 [details] [diff] [review]
provide indication that purgehistory was vetod

Sure, this is reasonable.  r+sr=bzbarsky.
Attachment #154959 - Flags: superreview?(bzbarsky)
Attachment #154959 - Flags: superreview+
Attachment #154959 - Flags: review?(bzbarsky)
Attachment #154959 - Flags: review+
mozilla/xpfe/components/shistory/public/nsISHistory.idl 	1.14
mozilla/xpfe/components/shistory/src/nsSHistory.cpp 	1.65
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: