[Webkit-unassigned] [Bug 192375] HTTPS Upgrade: Figure out if/how to tell clients that the HTTPS upgrade happened

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 9 18:10:44 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=192375

--- Comment #23 from Vivek Seth <v_seth at apple.com> ---
Comment on attachment 356937
  --> https://bugs.webkit.org/attachment.cgi?id=356937
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=356937&action=review

> Source/WebKit/NetworkProcess/NetworkLoadChecker.h:56
> +    using ValidationHandler = CompletionHandler<void(RequestOrError&&, std::optional<WebCore::ResourceResponse>&&)>;

I don't like how adding a param here requires all callers of `ValidationHandler` to pass in std::nullopt if they don't want to do a simulated redirect. Since only 1 caller needs to do a simulated redirect, this pattern feels weird. I'm not sure of a better solution right now, but please let me know if you have any suggestions  for improving this. 

Also, I'm not sure my code handles the case where http://A redirects to http://B and domain B can be upgraded to https://B. I might need to make a change to `NetworkResourceLoader::willSendRedirectedRequest` for this to work. If this is indeed a bug, maybe we can fix it in a follow on change after this lands.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181210/e75414cf/attachment-0001.html>


More information about the webkit-unassigned mailing list