How we built it

Event.isTrusted attribute

Event.isTrusted is an attribute that is true when the event was generated by a user action, and false when the event was created or modified by script, or dispatched via dispatchEvent.

Comments

Intended primarily for use by extensions, to determine if an event was dispatched by a script running in the main world.

Demo

Documentation

Specification

Established standard

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 46
  • Chrome for Android release 46
  • Android WebView release 46
  • Opera release 33
  • Opera for Android release 33

Consensus & Standardization

  • Shipped
  • Shipped
  • No public signals
  • No signals

Owners

Last updated on 2015-08-31