Monitoring DOM API functions

23 views
Skip to first unread message

Junaid Iqbal

unread,
Feb 23, 2018, 1:06:23 PM2/23/18
to Chromium-dev
Hello:

I would like to intercept all the DOM API functions (e.g., appendChild, removeChild etc) to check for some kind of policy rule before the DOM modifications should be allowed. Right now, I can only think of adding a piece of code in each DOM API function to check for policy. Is there a better way to do this I am not aware of?

Thanks,


PhistucK

unread,
Feb 24, 2018, 5:08:28 AM2/24/18
to junai...@gmail.com, Chromium-dev
Perhaps you could mess with the IDL compiler and make it emit those checks when generating the code.


PhistucK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/2935fa7f-67f3-441f-aee6-dd33fd043880%40chromium.org.

Reply all
Reply to author
Forward
0 new messages