Bug 76419 - AssociatedURLLoader doesn't support Access-Control-Expose-Header field in response.
Summary: AssociatedURLLoader doesn't support Access-Control-Expose-Header field in res...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 19:20 PST by Bill Budge
Modified: 2012-01-17 02:26 PST (History)
2 users (show)

See Also:


Attachments
Proposed Patch (10.91 KB, patch)
2012-01-16 19:29 PST, Bill Budge
no flags Details | Formatted Diff | Diff
Proposed Patch (10.91 KB, patch)
2012-01-16 21:58 PST, Bill Budge
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Budge 2012-01-16 19:20:07 PST
AssociatedURLLoader filters all non-whitelisted HTTP response headers when using CORS access control. Add support for the HTTP response header Access-Control-Expose-Header.
Comment 1 Bill Budge 2012-01-16 19:29:06 PST
Created attachment 122704 [details]
Proposed Patch
Comment 2 WebKit Review Bot 2012-01-16 19:31:13 PST
Attachment 122704 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/chromium/ChangeLog', u'Sourc..." exit_code: 1

Source/WebKit/chromium/tests/AssociatedURLLoaderTest.cpp:43:  wtf includes should be <wtf/file.h> instead of "wtf/file.h".  [build/include] [4]
Source/WebKit/chromium/src/AssociatedURLLoader.cpp:107:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Bill Budge 2012-01-16 21:58:38 PST
Created attachment 122713 [details]
Proposed Patch
Comment 4 Adam Barth 2012-01-17 01:18:22 PST
Comment on attachment 122713 [details]
Proposed Patch

It's unfortunate that we need to duplicate this logic from XMLHttpRequest.  It feels like we're missing some common piece of infrastructure that the two could shard.
Comment 5 WebKit Review Bot 2012-01-17 02:26:46 PST
Comment on attachment 122713 [details]
Proposed Patch

Clearing flags on attachment: 122713

Committed r105134: <http://trac.webkit.org/changeset/105134>
Comment 6 WebKit Review Bot 2012-01-17 02:26:50 PST
All reviewed patches have been landed.  Closing bug.