Title: [93192] branches/chromium/782/Source/WebCore/loader/CrossOriginAccessControl.cpp
Revision
93192
Author
[email protected]
Date
2011-08-16 18:41:56 -0700 (Tue, 16 Aug 2011)

Log Message

Merge 93188 - REGRESSION (r89086): All worker xhr requests trigger preflight requests.
https://bugs.webkit.org/show_bug.cgi?id=66340

Reviewed by Adam Barth.

Test coming in a more comprehensive patch shortly. This is just a very targetted
patch to allow for easier merging.

* loader/CrossOriginAccessControl.cpp:
(WebCore::isOnAccessControlSimpleRequestHeaderWhitelist): Add referer to the list
of whitelisted headers. It can't be set by xhr so it is ok to whitelist it, but it is
set before calling this function. This is similar to what is done for "origin" in here.

[email protected]
Review URL: http://codereview.chromium.org/7669010

Modified Paths

Diff

Modified: branches/chromium/782/Source/WebCore/loader/CrossOriginAccessControl.cpp (93191 => 93192)


--- branches/chromium/782/Source/WebCore/loader/CrossOriginAccessControl.cpp	2011-08-17 01:41:29 UTC (rev 93191)
+++ branches/chromium/782/Source/WebCore/loader/CrossOriginAccessControl.cpp	2011-08-17 01:41:56 UTC (rev 93192)
@@ -46,7 +46,8 @@
     if (equalIgnoringCase(name, "accept")
         || equalIgnoringCase(name, "accept-language")
         || equalIgnoringCase(name, "content-language")
-        || equalIgnoringCase(name, "origin"))
+        || equalIgnoringCase(name, "origin")
+        || equalIgnoringCase(name, "referer"))
         return true;
 
     // Preflight is required for MIME types that can not be sent via form submission.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to