<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [SOUP] Fix handling of accept language property"
   href="https://bugs.webkit.org/show_bug.cgi?id=166969#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [SOUP] Fix handling of accept language property"
   href="https://bugs.webkit.org/show_bug.cgi?id=166969">bug 166969</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=166969#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=298672&amp;action=diff" name="attach_298672" title="Patch">attachment 298672</a> <a href="attachment.cgi?id=298672&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=298672&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=298672&amp;action=review</a>
&gt; 
&gt; I noticed this back before we supported network session. (That said, is it
&gt; actually possible to have multiple network sessions in our port yet, or is
&gt; that a future step?)</span >

It is. Open MiniBrowser and enable private browsing in the settings, for example. The other case is testing, NetworkStorageSession::switchToNewTestingSession() creates a new session that is private from the cookie storage point of view, but non ephemeral from the session point of view, so it replaces the default session.

<span class="quote">&gt; &gt; Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp:101
&gt; &gt; +    g_object_set(NetworkStorageSession::defaultStorageSession().soupNetworkSession().soupSession(), &quot;accept-language&quot;, acceptLanguages.data(), nullptr);
&gt; &gt; +    NetworkStorageSession::forEach([acceptLanguages](const WebCore::NetworkStorageSession&amp; session) {
&gt; &gt; +        g_object_set(session.soupNetworkSession().soupSession(), &quot;accept-language&quot;, acceptLanguages.data(), nullptr);
&gt; 
&gt; Hmmmm
&gt; 
&gt; I think our SoupNetworkSession class should have a helper function that
&gt; wraps this g_object_set(..., &quot;accept-language&quot;, ...) so that you don't have
&gt; to do this manually from outside the class. Up until this patch, that was
&gt; SoupNetworkSession::setAcceptLanguages. So I really don't see the advantage
&gt; to this approach. Instead of changing setAcceptLanguages to be static, I
&gt; would call it here, and add a new static function
&gt; SoupNetworkSession::setInitialAcceptLanguages to set it for new
&gt; SoupNetworkSession objects. (I guess it's not possible to pass in via the
&gt; constructor for some reason?)
&gt; 
&gt; This is just a matter of style; I'm willing to give r+ if you disagree, but
&gt; I don't think this is the nicest way.</span >

No, I think this is good idea.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>