Changeset 176119 in webkit


Ignore:
Timestamp:
Nov 14, 2014 12:49:55 AM (9 years ago)
Author:
Carlos Garcia Campos
Message:

[SOUP] Encode/Decode allowCookies in ResourceRequest
https://bugs.webkit.org/show_bug.cgi?id=138730

Reviewed by Sergio Villar Senin.

We are not sending this information to the network process, making
cookies always available. Fixes
http/tests/xmlhttprequest/cross-origin-no-authorization.html when
network process is enabled.

  • Shared/soup/WebCoreArgumentCodersSoup.cpp:

(IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
(IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176118 r176119  
     12014-11-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] Encode/Decode allowCookies in ResourceRequest
     4        https://bugs.webkit.org/show_bug.cgi?id=138730
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        We are not sending this information to the network process, making
     9        cookies always available. Fixes
     10        http/tests/xmlhttprequest/cross-origin-no-authorization.html when
     11        network process is enabled.
     12
     13        * Shared/soup/WebCoreArgumentCodersSoup.cpp:
     14        (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
     15        (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
     16
    1172014-11-14  Zan Dobersek  <zdobersek@igalia.com>
    218
  • trunk/Source/WebKit2/Shared/soup/WebCoreArgumentCodersSoup.cpp

    r176071 r176119  
    5656
    5757    encoder << resourceRequest.firstPartyForCookies().string();
     58    encoder << resourceRequest.allowCookies();
    5859    encoder.encodeEnum(resourceRequest.priority());
    5960
     
    9899        return false;
    99100    resourceRequest.setFirstPartyForCookies(URL(URL(), firstPartyForCookies));
     101
     102    bool allowCookies;
     103    if (!decoder.decode(allowCookies))
     104        return false;
     105    resourceRequest.setAllowCookies(allowCookies);
    100106
    101107    ResourceLoadPriority priority;
Note: See TracChangeset for help on using the changeset viewer.