Changeset 77680 in webkit


Ignore:
Timestamp:
Feb 4, 2011 2:41:55 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-04 Martin Galpin <martin@66laps.com>

Reviewed by David Levin.

CORS origin header not set on GET when a preflight request is required.
https://bugs.webkit.org/show_bug.cgi?id=50773

  • http/tests/xmlhttprequest/cross-origin-preflight-get-expected.txt: Added.
  • http/tests/xmlhttprequest/cross-origin-preflight-get.html: Added.
  • http/tests/xmlhttprequest/resources/cross-origin-preflight-get.php: Added.

2011-02-04 Martin Galpin <martin@66laps.com>

Reviewed by David Levin.

CORS origin header not set on GET when a preflight request is required.
https://bugs.webkit.org/show_bug.cgi?id=50773

Test: http/tests/xmlhttprequest/cross-origin-preflight-get.html

  • loader/DocumentThreadableLoader.cpp: (WebCore::DocumentThreadableLoader::preflightSuccess): Explicitly set the request origin after a preflight request succeeds.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r77679 r77680  
     12011-02-04  Martin Galpin  <martin@66laps.com>
     2
     3        Reviewed by David Levin.
     4
     5        CORS origin header not set on GET when a preflight request is required.
     6        https://bugs.webkit.org/show_bug.cgi?id=50773
     7
     8        * http/tests/xmlhttprequest/cross-origin-preflight-get-expected.txt: Added.
     9        * http/tests/xmlhttprequest/cross-origin-preflight-get.html: Added.
     10        * http/tests/xmlhttprequest/resources/cross-origin-preflight-get.php: Added.
     11
    1122011-02-04  Jeremy Orlow  <jorlow@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r77679 r77680  
     12011-02-04  Martin Galpin  <martin@66laps.com>
     2
     3        Reviewed by David Levin.
     4
     5        CORS origin header not set on GET when a preflight request is required.
     6        https://bugs.webkit.org/show_bug.cgi?id=50773
     7       
     8        Test: http/tests/xmlhttprequest/cross-origin-preflight-get.html
     9
     10        * loader/DocumentThreadableLoader.cpp:
     11        (WebCore::DocumentThreadableLoader::preflightSuccess):
     12        Explicitly set the request origin after a preflight request succeeds.
     13
    1142011-02-04  Jeremy Orlow  <jorlow@chromium.org>
    215
  • trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp

    r76756 r77680  
    299299    actualRequest.swap(m_actualRequest);
    300300
     301    actualRequest->setHTTPOrigin(m_document->securityOrigin()->toString());
     302
    301303    // It should be ok to skip the security check since we already asked about the preflight request.
    302304    loadRequest(*actualRequest, SkipSecurityCheck);
Note: See TracChangeset for help on using the changeset viewer.