-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to configure Edge userdata directory via Display data #1548
Allow to configure Edge userdata directory via Display data #1548
Conversation
I'm not sure if workspace is the right place for user data of Edge browser that can be used on workspace free RCP applications. |
Test Results 483 files ±0 483 suites ±0 8m 26s ⏱️ +6s For more details on these failures, see this check. Results for commit 712bd2a. ± Comparison against base commit 6a2d73f. ♻️ This comment has been updated with latest results. |
I would rather propose to use the workspace directory whenever there is such a directory and in other cases use a different one (probably the ordinary user-data folder as used now). In addition, SWT should not depend on the concept of a "workspace URL". There should rather be some "custom edge data folder", "display-specific edge data folder" or the like instead. Also, we cannot replace the usage of the existing system property, because people may still want to use that opportunity (in particular in plain SWT applicationS). So what about using these values in decreasing preference:
|
I'm not sure what the edge user data directory is actually storing, but from OSGi perspective there is |
SWT should stay usable in non-OSGi environment too. |
864b5d0
to
f232fd7
Compare
bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java
Outdated
Show resolved
Hide resolved
As far as I understand the settings/property is setup by the one who creates the display, so at that point OSGI might or might not be used. Beside that, such thing can even be crafted in a way that is opaque for non-OSGi users, e.g with having an activator that initializes a static field, in non-OSGi env this will simply not happen and any default can be used instead. |
c211330
to
6509979
Compare
6509979
to
636b5e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HeikoKlare I extracted the method getDataDir(Display)
and pushed the changes.
41e12c2
to
27529f9
Compare
With this contribution, a custom userdata directory can provided to Edge browser via its Display for the separation of the usage of userdata directory per application by the webview2Environment. contributes to eclipse-platform#1013
27529f9
to
712bd2a
Compare
Test failures are unrelated and already documented: |
With this contribution, Edge browser uses the workspace directory for the userdata directory for the separation of the usage of userdata directory per workspace by the webview2Environment.
Depends on eclipse-platform/eclipse.platform.ui#2434
contributes to #1013