Demodal is a browser extension that automatically removes content blocking modals including paywalls, discount offers, promts to sign up or enter your email address and more.
I noticed this extension logs an error whenever an element containing only text is updated.
This issue appears to be Firefox only. I observed this issue in v112.
The problem comes from this section of content.js line 154-156
I noticed this extension logs an error whenever an element containing only text is updated. This issue appears to be Firefox only. I observed this issue in v112.
The problem comes from this section of content.js line 154-156
In firefox, when a node containing just text is updated,
node.dataset
is null, and the attempt to read.demodal
causes a type error.I think the above code could be changed as follows to filter out text-only mutations.
Here is a minimal html file which triggers the issue once per second.
npx http-server --port 8000
and navigate tohttp://localhost:8000/issue.html