Description[Refactoring] Extract CachedResourceLoader::canAccess()
This moves origin-based access control decision from ScriptElement to
CachedResourceLoader. Now the flag from the CORS-setting attribute
@crossorigin is stored as an ResourceLoaderOption instead of ScriptElement::m_usesRequestControl
and the decision is made by CachedResouceLoader::canAccess() instead of ScriptElement::notifyDone().
As a result, direct dependency to ResoruceRequest from ScriptElement is also fade away.
This abstraction will be used by HTML Imports as well.
TEST=none
BUG=240592
R=abarth@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153471
Patch Set 1 #
Total comments: 2
Patch Set 2 : For landing #
Messages
Total messages: 7 (0 generated)
|