Skip to content

Conversation

HeikoKlare
Copy link
Contributor

The userdata directory for the Edge browser is currently placed as an immediate child of the workspace directory (if existing), thus mixing up with actual projects in the workspace. With this change, the directory is placed in the metadata folder of the SWT bundle within the workspace.

See #2434 (comment)

Copy link
Contributor

github-actions bot commented Oct 30, 2024

Test Results

 1 821 files  ±0   1 821 suites  ±0   1h 55m 25s ⏱️ + 5m 12s
 7 724 tests ±0   7 495 ✅  - 1  228 💤 ±0  1 ❌ +1 
24 333 runs  ±0  23 585 ✅  - 1  747 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit ec79aef. ± Comparison against base commit 1170414.

♻️ This comment has been updated with latest results.

@sratz
Copy link
Member

sratz commented Oct 30, 2024

Looks good in principle.

One more thought: Is this EBWebView directory platform-independet or could we potentially run into inconsistencies / problems in case Windows-on-ARM users migrate from win32.win32.x86_64 to win32.win32.aarch64 with the same workspace?

@HeikoKlare
Copy link
Contributor Author

One more thought: Is this EBWebView directory platform-independet or could we potentially run into inconsistencies / problems in case Windows-on-ARM users migrate from win32.win32.x86_64 to win32.win32.aarch64 with the same workspace?

Interesting question/scenario. The EBWebView folder is placed inside the .metadata/.plugins/org.eclipse.swt folder of the workspace. So this is independent of the platform (architecture) and I would expect this to also work in case of a migration. Do you agree?
{2CF1E943-F9C4-443C-83A2-D9BF528B8A9F}

I am not sure whether the data within that folder allows for migration between different systems/architectures, but that issue would at least be independent of where the folder is placed.

@HeikoKlare HeikoKlare marked this pull request as ready for review October 31, 2024 08:05
@HeikoKlare HeikoKlare force-pushed the edge-datadirectory-in-metadata branch from 97b092d to 13b6ba6 Compare October 31, 2024 08:05
@sratz
Copy link
Member

sratz commented Oct 31, 2024

Right, my thought was whether there is anything platform-specific inside that folder, and we should instead put it into the fragment directories
.metadata/.plugins/org.eclipse.swt.win32.win32.x86_64
.metadata/.plugins/org.eclipse.swt.win32.win32.aarch64

But that is probably overthinking the problem, since if we did not override this path and stick to the default path, it also would be a generic platform-independent directory.

So would the %AppData%\Local\Microsoft\Edge\User Data\ directory of a regular Edge browser for that matter.

Remaining question: Who is the 'owner' of that directory

  • Is it org.eclipse.ui.workbench because here we make the decision of where to put the Edge cache?
  • Is it org.eclipse.swt because SWT is what uses it?

@HeikoKlare
Copy link
Contributor Author

Remaining question: Who is the 'owner' of that directory

  • Is it org.eclipse.ui.workbench because here we make the decision of where to put the Edge cache?
  • Is it org.eclipse.swt because SWT is what uses it?

I am not sure whether there is a "correct" answer in the sense that there is some agreement, convention or the like that indisputably determines where to place it. I would go with the latter open (in org.eclipse.swt), because SWT contains and operates the browser, so I consider the browser user data to be metadata belonging to SWT. Putting it in org.eclipse.ui.workbench would feel a bit more "random" to me, because you could probably actually find a different place (i.e., bundle) in Eclipse UI where the directory could be determined. But I have no strong opinion on this, so if someone has valid arguments for another option, I will glady adapt the PR.

@HeikoKlare HeikoKlare force-pushed the edge-datadirectory-in-metadata branch from 13b6ba6 to fb08bc7 Compare November 1, 2024 16:48
The userdata directory for the Edge browser is currently placed as an
immediate child of the workspace directory (if existing), thus mixing up
with actual projects in the workspace. With this change, the directory
is placed in the metadata folder of the SWT bundle within the workspace.
@HeikoKlare HeikoKlare force-pushed the edge-datadirectory-in-metadata branch from fb08bc7 to ec79aef Compare November 1, 2024 17:59
@HeikoKlare
Copy link
Contributor Author

Failing test already documented: #370

@HeikoKlare HeikoKlare merged commit 117649f into eclipse-platform:master Nov 1, 2024
15 of 17 checks passed
@HeikoKlare HeikoKlare deleted the edge-datadirectory-in-metadata branch November 3, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants