Skip to content

[Windows] [Edge] Clear Browser Cache #3083

@N1k145

Description

@N1k145

Is your feature request related to a problem? Please describe.
Right now the Browser Dir for Edge is located inside the workspace/.metadata folder. In some situations the browser cache can get quite large, (couple 100MBs)

Describe the solution you'd like
On Application/Browser Shutdown the Cache should be cleared

Additional context
I tried, together with @HeikoKlare, a bit around and there is an API in the Edge Web View to clear the Browser Data on the ICoreWebView2Profile2

This Snippet seams to work:

package org.eclipse.swt.internal.ole.win32;

public class ICoreWebView2Profile2 extends ICoreWebView2Profile {

public ICoreWebView2Profile2(long address) {
	super(address);
}

public int ClearBrowsingDataAll(long[] value) {
	return COM.VtblCall(12, address, value);
}

}

But im currently unsure how to handle this on the Browser Object correctly, If there should be a new API or an implicit behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions