Prior to upgrading to SM 2.46, I have used the following manual workaround shown
on comment 7 at this Bugzilla bug record below to delete browser history but
preserve the most recent 30 days:

https://bugzilla.mozilla.org/show_bug.cgi?id=660646#c7

Using this expression:

Components.classes['@mozilla.org/browser/nav-history-service;1'].getService(Components.interfaces.nsIBrowserHistory).removeVisitsByTimeframe(0,
(new Date().setHours(0, 0, 0, 0) - (parseInt(prompt('Days of history to keep',
30)) - 1) * 24 * 60 * 60 * 1000) * 1000 - 1)

I just recently upgraded to SM 2.46 and found that using the expression I
mentioned above used in the SM error console's evaluation field to delete
browser history except the last 30 days, no longer works. The NUMBER OF DAYS
prompt that is supposed to appear with this expression no longer appears when
the expression is evaluated in the error console. I'm not sure if this problem
now have anything to do with the mentioned changes regarding the Javascript
debugger interface at this URL:

http://www.seamonkey-project.org/releases/seamonkey2.46/

and if so, what if any, is the workaround solution to execute the same
expression elsewhere in SM 2.46? This method has worked well for me up until now
and I'm guessing that the expression above just needs some update as some of the
elements the expression is referring to may now be invalid in SM 2.46. Thanks
for any advise from advance users / coders.
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to