WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
160658
[GTK] webkit_web_context_set_tls_errors_policy fails when called before network process is created
https://bugs.webkit.org/show_bug.cgi?id=160658
Summary
[GTK] webkit_web_context_set_tls_errors_policy fails when called before netwo...
Michael Catanzaro
Reported
2016-08-08 06:25:25 PDT
In webkitWebContextConstructed we have this code: priv->processPool = WebProcessPool::create(configuration); // ... priv->tlsErrorsPolicy = WEBKIT_TLS_ERRORS_POLICY_FAIL; priv->processPool->setIgnoreTLSErrors(false); The call to WebProcessPool::setIgnoreTLSErrors always fails, because it only sends the message if the network process has already been created, but at this point it has not been created yet. I think it's not really needed here, because false is the default, so not a big deal. But it becomes a real problem if an API user ever does something like this: context = webkit_web_context_new(); webkit_web_context_set_tls_errors_policy (context, WEBKIT_TLS_ERRORS_POLICY_IGNORE); This fails too, the policy gets changed in the UI process, but the network process never sees it. I don't think these messages should ever be dropped. As suggested by Nick White in
bug #128674
, an appropriate fix might be for WebProcessPool::setIgnoreTLSErrors to call ensureNetworkProcess().
Attachments
Add attachment
proposed patch, testcase, etc.
Michael Catanzaro
Comment 1
2016-08-08 06:41:33 PDT
Not a bug, because we save the state in WebProcessPool::m_ignoreTLSErrors and send it along with NetworkProcessCreationParameters.
Michael Catanzaro
Comment 2
2016-10-09 20:03:47 PDT
Note this bug report was based on mistaken code inspection: (In reply to
comment #1
)
> Not a bug, because we save the state in WebProcessPool::m_ignoreTLSErrors > and send it along with NetworkProcessCreationParameters.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug