flattr / flattr-extension

Flattr web extension - monetize your content effortlessly.
https://flattr.com
GNU General Public License v3.0
27 stars 5 forks source link

Use useCapture option when collecting events in content script #20

Open ThomasGreiner opened 6 years ago

ThomasGreiner commented 6 years ago

Background We are using event listeners in our content script to collect certain user interactions with the website. Since we're listening in the bubbling phase the site may stop the event propagation or the event we're listening to might not bubble up (e.g. media events) in which case we won't get notified of the event occurring.

What to change Set useCapture option to true for all event listeners in the content script which are used for the data collection.