Changeset 202779 in webkit


Ignore:
Timestamp:
Jul 2, 2016 10:44:42 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Synchronous preflight checker should set loading options to not use credentials
https://bugs.webkit.org/show_bug.cgi?id=159351

Patch by Youenn Fablet <youenn@apple.com> on 2016-07-02
Reviewed by Alex Christensen.

Like for asynchronous preflighting, synchronous preflighting loading options should disqble any credentials.

No change of behavior as preflight request is expressly set to not use credentials in
createAccessControlPreflightRequest.

  • loader/CrossOriginPreflightChecker.cpp:

(WebCore::CrossOriginPreflightChecker::doPreflight):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202771 r202779  
     12016-07-02  Youenn Fablet  <youenn@apple.com>
     2
     3        Synchronous preflight checker should set loading options to not use credentials
     4        https://bugs.webkit.org/show_bug.cgi?id=159351
     5
     6        Reviewed by Alex Christensen.
     7
     8        Like for asynchronous preflighting, synchronous preflighting loading options should disqble any credentials.
     9
     10        No change of behavior as preflight request is expressly set to not use credentials in
     11        createAccessControlPreflightRequest.
     12
     13        * loader/CrossOriginPreflightChecker.cpp:
     14        (WebCore::CrossOriginPreflightChecker::doPreflight):
     15
    1162016-07-01  Commit Queue  <commit-queue@webkit.org>
    217
  • trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp

    r202741 r202779  
    131131    ResourceResponse response;
    132132    RefPtr<SharedBuffer> data;
    133     unsigned identifier = loader.document().frame()->loader().loadResourceSynchronously(preflightRequest, loader.options().allowCredentials(), loader.options().clientCredentialPolicy(), error, response, data);
     133    unsigned identifier = loader.document().frame()->loader().loadResourceSynchronously(preflightRequest, DoNotAllowStoredCredentials, DoNotAskClientForCrossOriginCredentials, error, response, data);
    134134
    135135    if (!error.isNull() && response.httpStatusCode() <= 0) {
Note: See TracChangeset for help on using the changeset viewer.