title: How to trigger an ‘isTrusted=true’ click event using JavaScript?
body: <p>I'm trying to impersonate user clicks and mouse movements using a Chrome extension.</p>
  <p>For example:<br />
  In my content script there is a button click.</p>
  <pre class="lang-js prettyprint-override"><code>document.querySelector(&quot;SOME_SELECTOR&quot;).click();
  </code></pre>
  <p>This line triggers a click event with the following property:</p>
  <pre><code>MouseEvent {isTrusted: false}
  </code></pre>
  <p>How to trigger a MouseEvent where the isTrusted property will be true?</p>