Trợ giúp! Tôi sử dụng GeckoFx-Windows-10.0-0.6 cho trình duyệt và xulrunner-10.0.en-US.win32. (Visual Studio 2010 C#) mọi thứ hoạt động tốt. Nhưng tôi cần phải xóa tất cả lịch sử như ở Firefox: Tools >> Options >> Privacygecko xóa lịch sử bộ nhớ cache và cookie
tôi thấy cookie sẽ như thế nào rõ ràng hơn Gecko.CookieManager.RemoveAll();
Làm thế nào rõ ràng bộ nhớ cache, file tạm và lịch sử?!
Và khi tôi khởi tạo Gecko.Xpcom
tôi không thể xóa thư mục "Gecko.Xpcom.ProfileDirectory"
(nơi bộ nhớ cache và cookie) vì lý do hiển nhiên. Gecko.Xpcom.Shutdown()
không giúp
Tôi tìm thấy một cách để làm sạch các tập tin cookie qua javascript:
var cookieManager = Components.classes["@mozilla.org/cookiemanager;1"].getService(Components.interfaces.nsICookieManager); cookieManager.removeAll();
Làm thế nào ngay cuộc gọi này JS trong C#?