diff --git a/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js b/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js index 203460a4eb44..80798e29ae95 100644 --- a/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js +++ b/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js @@ -37,7 +37,10 @@ async function testViewSource(hud, toolbox, text) { const onStyleEditorSelected = toolbox.once("styleeditor-selected"); - messageNode.querySelector(".frame-link-filename").click(); + EventUtils.sendMouseEvent( + { type: "click" }, + messageNode.querySelector(".frame-link-filename") + ); const panel = await onStyleEditorSelected; ok(