Closed Bug 1652189 Opened 3 months ago Closed 2 months ago

have a way to pass cookie to child process for LOAD_DOCUMENT_NEEDS_COOKIE

Categories

(Core :: Networking: HTTP, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: CuveeHsu, Assigned: CuveeHsu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

bug 1651973 comment 3 shows we could have a performance gain

We should make something like PCookieServiceParent::SendTrackCookiesLoad and set it through background
Therefore, extract the document cookie in HttpChannelParent and set the cookie array and the origin attribute via PHttpBackgroundChannel::OnStartRequest

Severity: -- → S3
Priority: P2 → P1

Even if loadflag contains LOAD_DOCUMENT_NEEDS_COOKIE, we update cookie only for
the main documen
https://searchfox.org/mozilla-central/rev/9b282b34b5aa0f836beb735656c55efb2cc4c617/dom/ipc/ContentParent.cpp#5704

Hence, we don't need to wait for main thread IPC to proceed HttpChannelChild::OnStartRequest

Pushed by juhsu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/502c4fb165fc
SendOnStartRequestSent only for main document, r=mayhemer,necko-reviewers
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.