Some events can provide information on the user activities, see, for example, https://github.com/polcak/jsrestrictor/issues/135, or, https://pagure.io/JShelter/webextension/blob/c305e08e0419bb4e59afdd58fc42660437176b0e/f/common/wrappingS-IDLE.js#_37. We need to implement a mechanism that removes events that we do not want to propagate to page scripts and possibly modify the events.
Adding event listeners to captuiring phase of window object and other affected objects might work.
window
Log in to comment on this ticket.