Failed patch for browser request completion callbacks.

This patch doesn't work. This PR exists just to check that it was the intended fix.

It runs fine, but it doesn't fix the flaky test behavior.