Skip to content

Conversation

@KKoukiou
Copy link
Contributor

@KKoukiou KKoukiou commented Mar 11, 2025

Frontend tracebacks shown in Bugzilla lacked source maps, as window.onerror does not display errors with applied source maps. To address this, integrate the stacktrace-js library to improve the readability of reported frontend exceptions.

With this commit we have proper tracebacks:

Screenshot 2025-12-23 at 14-32-02 Enter A Bug For The Fedora Product Screenshot 2025-12-23 at 14-11-55 Anaconda Web UI

@KKoukiou KKoukiou requested a review from adamkankovsky March 11, 2025 11:42
@KKoukiou KKoukiou force-pushed the js-crashes-in-description branch from cf15c5c to 2ffe381 Compare March 13, 2025 10:30
@KKoukiou KKoukiou changed the title Enhance Frontend Exception Reporting Enhance frontend exception reporting Mar 13, 2025
@KKoukiou KKoukiou force-pushed the js-crashes-in-description branch from 2ffe381 to a300c05 Compare June 3, 2025 12:16
@KKoukiou KKoukiou force-pushed the js-crashes-in-description branch 2 times, most recently from 2b916ff to 2b12351 Compare June 3, 2025 13:48
@KKoukiou
Copy link
Contributor Author

@bruno-fs Obviously after holiday - I would appreciate a second look.

@bruno-fs
Copy link
Contributor

bruno-fs commented Jan 2, 2026

Looks good! My only concern is if the stacktrace is too big and the url size exceeds the size allowed by the browser - or if bugzilla has some size limitation as well.

@KKoukiou
Copy link
Contributor Author

KKoukiou commented Jan 5, 2026

Looks good! My only concern is if the stacktrace is too big and the url size exceeds the size allowed by the browser - or if bugzilla has some size limitation as well.

Good point, I will investigate the current limitations.

@KKoukiou
Copy link
Contributor Author

KKoukiou commented Jan 7, 2026

I need to rebase this

- Simplify getDerivedStateFromError to only set error flag to avoid
  overwriting front end exceptions as backend ones
- Remove redundant componentDidCatch method
- Combine window.onerror and window.onunhandledexception handlers
Frontend tracebacks shown in Bugzilla lacked source maps, as
window.onerror does not display errors with applied source maps. To
address this, integrate the stacktrace-js library to improve the
readability of reported frontend exceptions.
@KKoukiou KKoukiou force-pushed the js-crashes-in-description branch from 18412f0 to 5e63ffd Compare January 7, 2026 14:39
@KKoukiou KKoukiou merged commit 88ba4e5 into rhinstaller:main Jan 7, 2026
14 checks passed
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