See ResourceLoaderDelegate.mm, willSendRequest for what the OS X port does for example. It shouldn't be too hard to improve this for GTK.
This causes fast/workers/worker-crash-with-invalid-location-pretty-diff.html to fail.
*** This bug has been marked as a duplicate of bug 49543 ***