Skip to content

fix(frontend): エラー画面で操作不能になることがあるのを修正#17533

Open
fruitriin wants to merge 4 commits into
misskey-dev:developfrom
fruitriin:fix/error-page-unhandled
Open

fix(frontend): エラー画面で操作不能になることがあるのを修正#17533
fruitriin wants to merge 4 commits into
misskey-dev:developfrom
fruitriin:fix/error-page-unhandled

Conversation

@fruitriin
Copy link
Copy Markdown
Contributor

@fruitriin fruitriin commented Jun 3, 2026

What

boot.js での renderError に突入したときのハンドリングをもうちょっとがんばる

Why

エラー画面で unhandled rejection が起きるとエラーが循環参照してUIスレッドをロックするから

fix #17532

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 3, 2026
@github-actions github-actions Bot added the packages/frontend Client side specific issue/PR label Jun 3, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.21%. Comparing base (e50603e) to head (51039d8).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #17533      +/-   ##
===========================================
- Coverage    24.93%   15.21%   -9.73%     
===========================================
  Files         1158      247     -911     
  Lines        39539    12360   -27179     
  Branches     11011     4196    -6815     
===========================================
- Hits          9858     1880    -7978     
+ Misses       23780     8203   -15577     
+ Partials      5901     2277    -3624     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fruitriin fruitriin force-pushed the fix/error-page-unhandled branch from 287bbe8 to 3bbf156 Compare June 3, 2026 04:24
Comment thread CHANGELOG.md Outdated
@github-project-automation github-project-automation Bot moved this from Todo to Approved in [実験中] 管理用 Jun 3, 2026
@kakkokari-gtyih kakkokari-gtyih changed the title fix: エラー画面で操作不能になることがあるのを修正 fix(frontend): エラー画面で操作不能になることがあるのを修正 Jun 3, 2026
@kakkokari-gtyih
Copy link
Copy Markdown
Member

kakkokari-gtyih commented Jun 3, 2026

エスケープ云々はスコープ外なので別にしても良い感

@syuilo
Copy link
Copy Markdown
Member

syuilo commented Jun 3, 2026

#17273 はinertで画面が覆われることが原因だからエラーが循環参照するというのは別の問題かしら

@syuilo
Copy link
Copy Markdown
Member

syuilo commented Jun 3, 2026

エラーの循環参照は手元では発生したことがないから再現手順あると嬉しいわね

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
@fruitriin
Copy link
Copy Markdown
Contributor Author

#17532 再現手順の載ったIssueはこっちだった

XSS対策のHTMLエスケープはこのPRの本来のスコープ (エラー画面の操作不能修正) 外の
変更だったため、別ブランチ (error-page-escape) に分離する。
@fruitriin
Copy link
Copy Markdown
Contributor Author

@syuilo @kakkokari-gtyih
エスケープをこのPRから除外しました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/frontend Client side specific issue/PR size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

エラー画面でほぼ操作不能になる

3 participants