Bug 1633935 Comment 27 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

> ```
> HttpChannelParent::OnStartRequest
> ContentParent::AboutToLoadHttpFtpDocumentForChild
> ContentParent::TransmitPermissionsForPrincipal
> ContentParent::EnsurePermissionsByKey
> PContentParent::SendSetPermissionsWithKey
> ```
> However, SendSetPermissionsWithKey is pContent, which could be later than SendOnStartRequest via PHttpChannelBackgroud.
> I don't have a good solution at this moment. Ideally we should bring the permission information through SendOnStartRequest to update the Permission manager in content process.
> 

Similiar situation with cookie
```
ContentParent::AboutToLoadHttpFtpDocumentForChild
ContentParent::UpdateCookieStatus
CookieServiceParent::TrackCookieLoad
PCookieServiceParent::SendTrackCookiesLoad
```

Therefore, let's wait for another main thread event for a document load. 

However, what's worse is `Set-Cookie` response header is another PContent IPC
```
HttpBaseChannel::SetCookie
HttpBaseChannel::NotifySetCookie
CookieStorage::AddCookie
CookieStorage::NotifyChange("cookie-changed")
ContentParent::Observe
CookieServiceParent::AddCookie
PCookieServiceParent::SendAddCookie
```

Would need a decent amount of work to OMT `Set-Cookie`
> ```
> HttpChannelParent::OnStartRequest
> ContentParent::AboutToLoadHttpFtpDocumentForChild
> ContentParent::TransmitPermissionsForPrincipal
> ContentParent::EnsurePermissionsByKey
> PContentParent::SendSetPermissionsWithKey
> ```
> However, SendSetPermissionsWithKey is pContent, which could be later than SendOnStartRequest via PHttpChannelBackgroud.
> I don't have a good solution at this moment. Ideally we should bring the permission information through SendOnStartRequest to update the Permission manager in content process.
> 

Similiar situation with cookie
```
ContentParent::AboutToLoadHttpFtpDocumentForChild
ContentParent::UpdateCookieStatus
CookieServiceParent::TrackCookieLoad
PCookieServiceParent::SendTrackCookiesLoad
```

Therefore, let's wait for another main thread event for a document load. 

However, what's worse is `Set-Cookie` response header is another PContent IPC
```
nsHttpChannel::ContinueProcessResponse1
HttpBaseChannel::SetCookie
HttpBaseChannel::NotifySetCookie
CookieStorage::AddCookie
CookieStorage::NotifyChange("cookie-changed")
ContentParent::Observe
CookieServiceParent::AddCookie
PCookieServiceParent::SendAddCookie
```

Would need a decent amount of work to OMT `Set-Cookie`

Back to Bug 1633935 Comment 27