Bug 52419 - REGRESSION (r71884): Cross-origin XHR fails if willSendRequest changes the URL
Summary: REGRESSION (r71884): Cross-origin XHR fails if willSendRequest changes the URL
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Normal
Assignee: mitz
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2011-01-13 18:19 PST by mitz
Modified: 2011-01-13 23:04 PST (History)
7 users (show)

See Also:


Attachments
Patch (10.83 KB, patch)
2011-01-13 18:30 PST, mitz
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2011-01-13 18:19:51 PST
REGRESSION (r71884): Cross-origin XHR fails if willSendRequest changes the URL
Comment 1 mitz 2011-01-13 18:20:52 PST
<rdar://problem/8827065>
Comment 2 mitz 2011-01-13 18:30:40 PST
Created attachment 78882 [details]
Patch
Comment 3 Alexey Proskuryakov 2011-01-13 18:56:34 PST
Comment on attachment 78882 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=78882&action=review

Looks great.

> Tools/ChangeLog:8
> +        Allow to furthur control the behavior of the willSendRequest delegate callback by making it

furthur?

> LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt:5
> +CONSOLE MESSAGE: line 1: XMLHttpRequest cannot load http://localhost:8000/loading/resources/foo.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.

Please make this test explain what the expected behavior is. Does it somehow pass on other platforms, or does it need to be added to Skipped lists?
Comment 4 mitz 2011-01-13 19:37:51 PST
(In reply to comment #3)
> (From update of attachment 78882 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=78882&action=review
> 
> Looks great.
> 
> > Tools/ChangeLog:8
> > +        Allow to furthur control the behavior of the willSendRequest delegate callback by making it
> 
> furthur?

Something wrong with my spulling?

> 
> > LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt:5
> > +CONSOLE MESSAGE: line 1: XMLHttpRequest cannot load http://localhost:8000/loading/resources/foo.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
> 
> Please make this test explain what the expected behavior is.

OK. 

> Does it somehow pass on other platforms, or does it need to be added to Skipped lists?

I don't see how It can pass on other platforms. I suppose the EWS does not run new tests. I will skip.

Thanks for the review!
Comment 5 mitz 2011-01-13 21:20:41 PST
Fixed in <http://trac.webkit.org/changeset/75768>.
Comment 6 WebKit Review Bot 2011-01-13 22:35:28 PST
http://trac.webkit.org/changeset/75768 might have broken Qt Linux Release
Comment 7 Hayato Ito 2011-01-13 23:04:18 PST
I've fixed Skipped lists in r75768:
https://trac.webkit.org/changeset/75771

It seems they don't have '.html' suffix.