Closed Bug 1494033 Opened 6 years ago Closed 5 years ago

onBeforeSendHeaders/onSendHeaders not called after onAuthRequired

Categories

(Core :: Networking: HTTP, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

Both onBeforeSendHeaders/onBeforeSend and called via the http-on-before-connect notification, which ONLY happens just prior to an actual connection.  This was added in bug 1368527.

http-on-before-connect should also be called from nsHttpChannel::DoAuthRetry where a new transaction is initiated.  DoAuthRetry will need some heavy work, buth on-modify and on-before-connect should be handled async here.  Currently on-modified is called, but the async result is not handled.
I think this is a necko bug.  Something I can either work on or mentor/review.
Component: Request Handling → Networking: HTTP
Product: WebExtensions → Core
Whiteboard: [necko-triaged]
It's certainly a bug in nsHttpChannel.  I added the http-on-before-connect notification because the hacky way we handled webRequest.onBeforeSendHeaders/onBeforeSend didn't work right.  Unfortunately it doesn't cover this situation.
Depends on: 1407384
Summary: onBeforeSendHeaders/onBeforeSend not called after onAuthRequired → onBeforeSendHeaders/onSendHeaders not called after onAuthRequired

Adds testing webrequest events related to async handling in httpChannel
that was added in bug 1407384.

Assignee: nobody → mixedpuppy

This bug was fixed by bug 1407384, just adding a test.

Pushed by scaraveo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd9b6ab6d564
test event order with onAuthRequired r=zombie
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: