At.FF.Krems.FullscreenBrowser.WindowManager.ClearBrowserCache C# (CSharp) Method

ClearBrowserCache() public method

Clears the browser cache.
public ClearBrowserCache ( ) : void
return void
        public void ClearBrowserCache()
        {
            var historyManager = Xpcom.GetService<nsIBrowserHistory>(Contracts.NavHistoryService);
            historyManager = Xpcom.QueryInterface<nsIBrowserHistory>(historyManager);
            historyManager.RemoveAllPages();

            ImageCache.ClearCache(true);
            ImageCache.ClearCache(false);
            CacheService.Clear(new CacheStoragePolicy());
        }