Skip to content

Fixed a bug that Chronos crashes on closing tabs just after zooming#386

Merged
kenhys merged 1 commit into
masterfrom
fix-bug-crash-on-closing-tabs-after-zooming
Jun 10, 2026
Merged

Fixed a bug that Chronos crashes on closing tabs just after zooming#386
kenhys merged 1 commit into
masterfrom
fix-bug-crash-on-closing-tabs-after-zooming

Conversation

@HashidaTKS

@HashidaTKS HashidaTKS commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:

#384

What this PR does / why we need it:

If we close a tab within a certain period (approximately 2 seconds in the test environment) after a ZoomLevel change (like Ctrl + +), Chronos will crash. To work around this, close operations are blocked for a fixed duration after the last ZoomLevel change.

This bug was introduced by #385 .

How to verify the fixed issue:

The steps to verify:

  • Change zoom level by Ctrl + +
  • Close a tab immediately
    • Confirm that the tab closing is delayed for at least 2 seconds
    • Confirm that the tab is closed after the above defer seconds.
    • Confirm that Chronos does not crash.

Added a logic to defer closing tabs after zooming.
@HashidaTKS HashidaTKS force-pushed the fix-bug-crash-on-closing-tabs-after-zooming branch from ab66dbb to afb51d8 Compare June 9, 2026 09:14
@HashidaTKS HashidaTKS requested a review from kenhys June 10, 2026 08:05

@kenhys kenhys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

confirmed.

LGTM.

@kenhys kenhys merged commit 4d15573 into master Jun 10, 2026
2 of 3 checks passed
@kenhys kenhys deleted the fix-bug-crash-on-closing-tabs-after-zooming branch June 10, 2026 08:46
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