I am working on a security extension. I am using webrequest.onbeforerequst to intercept navigations and then do an analysis on it.. However, I am noticing that when chrome is not running and I click on a external link from email. My extension does not seem to be presented with that url. I think it might be a race condition that chrome is loading the page before my extension is loaded.
My question is if its possible to make sure chrome loads my extension, prior to the first navigation. Is anyone else seeing similar?
Note: If I enable background permission the issue is resolved, however users can exit at anytime to bypass the security, even if I set the policy to prevent disabling background process. Another mitigation would be if there is a policy to prevent the user from exiting chrome completely. From what I can find that is not possible.