Skip to content
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

desktop: Fix filesystem access dialog #18147

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Oct 2, 2024

This patch fixes the following two issues:

  1. On Windows the allowed path check was not always working, due to Windows paths being Windows paths, now paths are canonicalized before comparison.

  2. On some systems the dialog was not rendered when the main SWF wasn't loaded, and the dialog was not able to allow the main SWF. Now the dialog allows the SWF instantly when constructed.

That needs testing from @n0samu and @Lord-McSweeney, as I cannot reproduce these issues.

Fixes #18141, fixes #18142.

@kjarosh kjarosh added A-desktop Area: Desktop Application T-fix Type: Bug fix (in something that's supposed to work already) labels Oct 2, 2024
Copy link
Member

@torokati44 torokati44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code side LGTM - pending confirmation of fix from the issue reporters.

@n0samu
Copy link
Member

n0samu commented Oct 2, 2024

This does not fix #18141 for me 😕
However, it does fix #18142.

This patch fixes the following two issues:

1. On Windows the allowed path check was not always working, due to
   Windows paths being Windows paths, now paths are
   canonicalized before comparison.

2. On some systems the dialog was not rendered when the main SWF wasn't
   loaded, and the dialog was not able to allow the main SWF.
   Now the dialog allows the SWF instantly when constructed.
@kjarosh kjarosh merged commit c6ebd6a into ruffle-rs:master Oct 3, 2024
17 checks passed
@kjarosh kjarosh deleted the fs-dialog-fix branch October 3, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-desktop Area: Desktop Application T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary permission dialog when opening an SWF file Cannot run SWFs from the command line
4 participants