This is used to cheat client web drivers.
If we do not do so, urls like "chrome-extension://extension-1" will never get a hostname.