This approach will need some rework to be properly handled at the user agent level instead of per renderer process, but it's a start. (cherry picked from commit 7faebb2702a2a19fc401fde1856a0d90861d2904)