Bug 125505

Summary: [WK2][SOUP] WebContext::setIgnoreTLSErrors should send SetIgnoreTLSErrors to the network process when network process is enabled
Product: WebKit Reporter: Kwang Yul Seo <skyul>
Component: WebKit2Assignee: Kwang Yul Seo <skyul>
Status: RESOLVED FIXED    
Severity: Normal CC: brian.holt, cgarcia, commit-queue, gns, mrobinson, ossy, svillar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 108832    
Attachments:
Description Flags
Patch
none
Patch none

Description Kwang Yul Seo 2013-12-10 05:49:37 PST
This is a follow-up patch of r160355 (Bug 125490)
Comment 1 Kwang Yul Seo 2013-12-10 06:02:46 PST
Created attachment 218861 [details]
Patch
Comment 2 Carlos Garcia Campos 2013-12-10 06:31:33 PST
Comment on attachment 218861 [details]
Patch

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

> Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp:151
> +        sendToNetworkingProcess(Messages::NetworkProcess::SetIgnoreTLSErrors(m_ignoreTLSErrors));

Here you already know you want to send the message to the network process, so you can call directly networkProcess()->send(Messages::NetworkProcess::SetIgnoreTLSErrors(m_ignoreTLSErrors)); You should probably check also that networkProcess is not null

if (usesNetworkProcess() && networkProcess())
     networkProcess()->send(Messages::NetworkProcess::SetIgnoreTLSErrors(m_ignoreTLSErrors));
Comment 3 Kwang Yul Seo 2013-12-10 07:00:06 PST
Created attachment 218868 [details]
Patch
Comment 4 WebKit Commit Bot 2013-12-10 07:36:51 PST
Comment on attachment 218868 [details]
Patch

Clearing flags on attachment: 218868

Committed r160364: <http://trac.webkit.org/changeset/160364>
Comment 5 WebKit Commit Bot 2013-12-10 07:36:54 PST
All reviewed patches have been landed.  Closing bug.