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

chore: remove UnresponsiveSuppressor altogether #35507

Merged
merged 5 commits into from Sep 8, 2022

Conversation

nornagon
Copy link
Member

Description of Change

I think the reason this is not necessary is because when the main thread is
blocked, as it is in the cases guarded by UnresponsiveSuppressor here, then the
main thread cannot be processing any input events from renderers, and as such
can't come to the conclusion that a renderer is unresponsive. When we unblock
the main thread (e.g. by closing the message box or file dialog), then the
renderer is no longer unresponsive, so no event is generated.

As a practical matter, I've experimented with a couple of these removals and
haven't been able to create a situation where an unresponsive event is in fact
generated. Perhaps @zcbenz could help me to repro what this was originally
intended to fix? Chrome's implementation of unresponsiveness checking may have
changed in the intervening time.

Checklist

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

Release Notes

Notes: none

@nornagon nornagon added no-backport semver/patch backwards-compatible bug fixes labels Aug 30, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 30, 2022
Base automatically changed from no-menu-unresponsive-suppressor to main August 31, 2022 17:25
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 31, 2022
Copy link
Member

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

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

The UnresponsiveSuppressor was needed because the remote module was implemented with synchronous IPC messages that would hang the renderer, now since remote module has been removed and it is now totally user's responsibility to avoid hanging the renderer, I think UnresponsiveSuppressor is good to go.

@nornagon nornagon merged commit a0dbae7 into main Sep 8, 2022
@nornagon nornagon deleted the no-unresponsive-suppressor branch September 8, 2022 22:49
@release-clerk
Copy link

release-clerk bot commented Sep 8, 2022

No Release Notes

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* chore: drop unresponsive suppressor for menu_mac

* also for views

* header

* chore: remove UnresponsiveSuppressor altogether
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants