SVG elements don't implement the click method

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1489848
gecko-commit: 3e54651540d7e2fb893de3c3a6b26d440fc63ac8
gecko-integration-branch: mozilla-inbound
gecko-reviewers: heycam
diff --git a/svg/linking/scripted/a-download-click.svg b/svg/linking/scripted/a-download-click.svg
index 406d0e6..b728603 100644
--- a/svg/linking/scripted/a-download-click.svg
+++ b/svg/linking/scripted/a-download-click.svg
@@ -22,7 +22,7 @@
             const link = frame.contentDocument.querySelector("#blob-url");
             link.href.baseVal = URL.createObjectURL(blob);
 
-            link.click();
+            link.dispatchEvent(new Event('click'));
 
             t.step_timeout(() => t.done(), 1000);
         }));
@@ -30,4 +30,4 @@
         root.appendChild(frame);
     }, "Clicking on an <a> element with a download attribute must not throw an exception");
   ]]></script>
-</svg>
\ No newline at end of file
+</svg>