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: corrupted title of alert dialog #32434

Merged
merged 1 commit into from Jan 13, 2022

Conversation

babatakao
Copy link
Contributor

Description of Change

Fixes #30223.

Fix the issue that the alert() dialog title is corrupted. The same issue happens with showMessageBox API if no title is explicitly given.

The lifetime of app_name was inside the if block. Thus, config.pszWindowTitle referenced already freed memory.

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes

Release Notes

Notes: Fix an issue that the alert() dialog title is corrupted.

@welcome
Copy link

welcome bot commented Jan 12, 2022

💖 Thanks for opening this pull request! 💖

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 12, 2022
@zcbenz zcbenz changed the title fix: Corrupted title of alert dialog #30223 fix: corrupted title of alert dialog Jan 13, 2022
@zcbenz zcbenz added semver/patch backwards-compatible bug fixes target/14-x-y labels Jan 13, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 13, 2022
@jkleinsc jkleinsc merged commit f75a274 into electron:main Jan 13, 2022
@welcome
Copy link

welcome bot commented Jan 13, 2022

Congrats on merging your first pull request! 🎉🎉🎉

@release-clerk
Copy link

release-clerk bot commented Jan 13, 2022

Release Notes Persisted

Fix an issue that the alert() dialog title is corrupted.

@trop
Copy link
Contributor

trop bot commented Jan 13, 2022

I have automatically backported this PR to "14-x-y", please check out #32467

@trop
Copy link
Contributor

trop bot commented Jan 13, 2022

I have automatically backported this PR to "15-x-y", please check out #32468

@trop
Copy link
Contributor

trop bot commented Jan 13, 2022

I have automatically backported this PR to "17-x-y", please check out #32469

@trop
Copy link
Contributor

trop bot commented Jan 13, 2022

I have automatically backported this PR to "16-x-y", please check out #32470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Window alert()/prompt() dialog titles corrupted
3 participants