This function will run in extension process or browser process not in renderer process. It will be out of sandboxing. So your concern will not exist. Please correct me if I am wrong. Ping @cmarcelo 's opinion.