My specific use-case is somewhat moot until HTTP/2 support arrives but I recently found myself wishing that the scripting support included the ability to override the URL protocol so you could test the effects of upgrading a site from HTTP to HTTPS.
The simplest way to implement this might be something along the lines of overrideProtocol
but that seems like it’d be hard to do without impacting performance. Currently I’m testing this by preseeding the HSTS list but that doesn’t appear to be possible on Chrome since they removed the --hsts-host
command-line flag.[/code]