Skip to content

Deswer60871/IsTrusted-event-Debugger-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IsTrusted event Debugger API

Dispatch event.isTrusted === true with Debugger API Chrome.

This example was used as a reference: https://developer.chrome.com/extensions/samples#search:debugger

  • Click the extension icon to enable debugger;
  • Click 't' to dispatch trusted 'mousedown' and 'mouseup' events;
  • Click 'r' to dispatch regular javascript events.

You can see that clicking 't' results in isTrusted===true; You can also see that dispatching a trusted event via debugger might take around 2ms, while dispatching a regular event takes 0ms.

About

Dispatch event.isTrusted === true with Debugger API Chrome

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%