Summary: | Anonymous CORS fetch for WebGL texture fails when there is no appropriate server response even for the same origin requests | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | AlteredQualia <postfilter> | ||||
Component: | WebGL | Assignee: | Adam Barth <abarth> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, ian, japhet, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
AlteredQualia
2011-10-27 12:29:40 PDT
I need to double-check the spec and Firefox's behavior. Created attachment 113599 [details]
Patch
Comment on attachment 113599 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=113599&action=review > Source/WebCore/loader/ImageLoader.cpp:246 > + if (m_element->fastHasAttribute(HTMLNames::crossoriginAttr) > + && !m_element->document()->securityOrigin()->canRequest(image()->response().url()) > + && !resource->passesAccessControlCheck(m_element->document()->securityOrigin())) { Maybe this can be factored into an inline member function so the if statement is easier to read. The name of that function could help document what is going on, too. Comment on attachment 113599 [details] Patch Clearing flags on attachment: 113599 Committed r99298: <http://trac.webkit.org/changeset/99298> All reviewed patches have been landed. Closing bug. As far as I can tell, this disagrees with the specs. But maybe the spec should change... I've changed the spec. Not sure how closely it matches what WebKit is doing. |