From Julia's handoff doc:
Right now, we hook HTTP requests at the URLRequest layer, which isn't quite right – we end up with weird results for things like redirects and validated cache responses. Moving that hook into HttpNetworkTransaction would give us more direct access to better data.
NEL is sometimes being passed a positive "error code" from HttpNetworkTransaction::DoCallback() which indicates the number of bytes read, not a net error. This results in "unknown" errors being reported because the positive value won't match any net errors, which are all negative.
mmenke@ suggests that HttpNetworkTransaction::DoCallback() may not be the best place to hook into. It also misses cases where the request completes synchronously. We should maybe hook into individual states in HttpNetworkTransaction, or maybe its destructor.
Comment 1 by bugdroid1@chromium.org
, Nov 6