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.