From 1484f174eacb079209c92482d5d9fb360c00c09a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 5 Aug 2024 17:31:22 -0700 Subject: [PATCH] fuzzer web ui: fail scrolling into view gracefully --- lib/fuzzer/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fuzzer/main.js b/lib/fuzzer/main.js index 773cdfe902..ce02276f98 100644 --- a/lib/fuzzer/main.js +++ b/lib/fuzzer/main.js @@ -214,7 +214,7 @@ // Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work. requestAnimationFrame(function() { const slDom = document.getElementById("l" + sourceLocationIndex); - slDom.scrollIntoView({ + if (slDom != null) slDom.scrollIntoView({ behavior: "smooth", block: "center", });