Changeset 62592 in webkit


Ignore:
Timestamp:
Jul 6, 2010 1:51:46 PM (14 years ago)
Author:
ap@apple.com
Message:

Not reviewed, fixing a simple copy/paste mistake.

https://bugs.webkit.org/show_bug.cgi?id=41156
Cross origin XMLHttpRequest should log the reason why connection failed

Covered by xmlhttprequest/access-control-basic-non-simple-deny-cached.html

  • loader/CrossOriginPreflightResultCache.cpp: (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders): Fix incorrectly copy/pasted header field name.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r62576 r62592  
     12010-07-06  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Not reviewed, fixing a simple copy/paste mistake.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=41156
     6        Cross origin XMLHttpRequest should log the reason why connection failed
     7
     8        * http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-expected.txt:
     9
    1102010-07-06  Alexey Proskuryakov  <ap@apple.com>
    211
  • trunk/LayoutTests/http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-expected.txt

    r62576 r62592  
    1 CONSOLE MESSAGE: line 1: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-non-get-allow.cgi. Request header field Content-Type is not allowed by Access-Control-Allow-Methods response header field.
     1CONSOLE MESSAGE: line 1: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-non-get-allow.cgi. Request header field Content-Type is not allowed by Access-Control-Allow-Headers response header field.
    22PASS: Exception thrown. Cross-domain access is not allowed in 'send'. [NETWORK_ERR: XMLHttpRequest Exception 101].
    33
  • trunk/WebCore/ChangeLog

    r62588 r62592  
     12010-07-06  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Not reviewed, fixing a simple copy/paste mistake.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=41156
     6        Cross origin XMLHttpRequest should log the reason why connection failed
     7
     8        Covered by xmlhttprequest/access-control-basic-non-simple-deny-cached.html
     9
     10        * loader/CrossOriginPreflightResultCache.cpp:
     11        (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders): Fix incorrectly
     12        copy/pasted header field name.
     13
    1142010-07-06  Xan Lopez  <xlopez@igalia.com>
    215
  • trunk/WebCore/loader/CrossOriginPreflightResultCache.cpp

    r62576 r62592  
    129129    for (HTTPHeaderMap::const_iterator it = requestHeaders.begin(); it != end; ++it) {
    130130        if (!m_headers.contains(it->first) && !isOnAccessControlSimpleRequestHeaderWhitelist(it->first, it->second)) {
    131             errorDescription = "Request header field " + it->first + " is not allowed by Access-Control-Allow-Methods response header field.";
     131            errorDescription = "Request header field " + it->first + " is not allowed by Access-Control-Allow-Headers response header field.";
    132132            return false;
    133133        }
Note: See TracChangeset for help on using the changeset viewer.