Code: Select all
var browserHistory = Cc["@mozilla.org/browser/nav-history-service;1"]
.getService(Ci.nsIBrowserHistory);
Code: Select all
// clear one
var now = Date.now();
browserHistory.removeVisitsByTimeframe(now - (60000 * 60), now);
And it just does nothing, no errors, no warnigs, no logs. I have no idea why this code doesn't clear the history, please help.