Allow cross-origin cssRules access to CORS-fetched stylesheet.

When accessing the cssRules property on CSSStyleSheet an origin check is
performed for non-inline stylesheets. Should that stylesheet have been
loaded from another origin following CORS, the access ought to be
permitted, but wasn't.

Address by having the link element (LinkStyle) record if the stylesheet
it creates was successfully fetched using CORS. If it was, the stylesheet
access check will succeed.

R=mkwst
BUG=467672

Review URL: https://codereview.chromium.org/1011103002

git-svn-id: svn://svn.chromium.org/blink/trunk@192066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
19 files changed
tree: 43e5ce60a7eae6509ba14208433b39140bec1691
  1. third_party/