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

fix: unclosable webxdc apps (beforeunload) #4728

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Mar 3, 2025

Closes #4726.

Here is an example of an app that uses beforeunload:

2025-03-03-3k6vhkaU0E.mp4

@WofWca WofWca force-pushed the wofwca/fix-unclosable-webxdc branch from 182beb8 to 38dbf0b Compare March 3, 2025 10:06
@WofWca WofWca added webxdc Runtime: Electron Issue affecting the electron runtime specifically labels Mar 3, 2025
Copy link
Member

@ralphtheninja ralphtheninja left a comment

Choose a reason for hiding this comment

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

Reviewed by testing. Works fine!

image

@WofWca WofWca merged commit e722175 into main Mar 3, 2025
11 checks passed
@WofWca WofWca deleted the wofwca/fix-unclosable-webxdc branch March 3, 2025 14:35
@link2xt
Copy link
Collaborator

link2xt commented Mar 3, 2025

Now when I close realtime editor, it asks "Close app?" but closes regardless of whether I click "Cancel" or "Close Window".

@WofWca
Copy link
Collaborator Author

WofWca commented Mar 4, 2025

Ahhh. Thanks for testing, @link2xt! I'll take care of it.

WofWca added a commit that referenced this pull request Mar 4, 2025
The bug was introduced in e722175
(#4728).

[The Editor app](https://codeberg.org/webxdc/editor),
when getting closed, would always cause the "Close app?"
dialog to get shown to the user, but it's not intentional,
because the app would close regardless of what the user picks.

See the code comments for more info.
WofWca added a commit that referenced this pull request Mar 4, 2025
The bug was introduced in e722175
(#4728).

[The Editor app](https://codeberg.org/webxdc/editor),
when getting closed, would always cause the "Close app?"
dialog to get shown to the user, but it's not intentional,
because the app would close regardless of what the user picks.

See the code comments for more info.
WofWca added a commit that referenced this pull request Mar 12, 2025
The bug was introduced in e722175
(#4728).

[The Editor app](https://codeberg.org/webxdc/editor),
when getting closed, would always cause the "Close app?"
dialog to get shown to the user, but it's not intentional,
because the app would close regardless of what the user picks.

See the code comments for more info.
WofWca added a commit that referenced this pull request Mar 12, 2025
The bug was introduced in e722175
(#4728).

[The Editor app](https://codeberg.org/webxdc/editor),
when getting closed, would always cause the "Close app?"
dialog to get shown to the user, but it's not intentional,
because the app would close regardless of what the user picks.

See the code comments for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Runtime: Electron Issue affecting the electron runtime specifically webxdc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intercept beforeunload set by .xdc
3 participants