`Maximum call stack size exceeded` error when clicking "Show unchanged lines" in MR diff of large file
Summary
When clicking the "Show unchanged lines" in an MR diff for a large file, the browser hangs.
In Chrome, I get a Maximum call stack size exceeded
error in the console.
In Firefox, I get a "A web page is slowing down your browser" message. If I repeatedly click "Wait", the script will eventually finish and all lines will be shown as expected.
Steps to reproduce
- Navigate to gitlab-com/www-gitlab-com!48634 (diffs, comment 341831446)
- Click the first "Show unchanged lines" link (the one above the diff with the ↑)
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com.
Edited by Nathan Friend