[whatwg] Add crossorigin attribute to SCRIPT tags

1 view
Skip to first unread message

Robert Kieffer

unread,
Feb 29, 2012, 7:01:38 PM2/29/12
to wha...@lists.whatwg.org
For reasons documented in
https://bugzilla.mozilla.org/show_bug.cgi?id=696301, I¹d like to propose
that support for the ³crossorigin² attribute be added to SCRIPT tags.

tl;dr - When applied to window.onerror information, the same-origin policy
makes it near-impossible to host script resources on a CDN, while
simultaneously using window.onerror to gather information about JS errors.

(fwiw, this issue also appears in
https://bugs.webkit.org/show_bug.cgi?id=70574)

Pablo Flouret

unread,
Mar 16, 2012, 9:13:44 PM3/16/12
to wha...@lists.whatwg.org, Robert Kieffer
Bump?

Gecko's patch seems to have landed and there's a patch for webkit waiting
for review [1].

I believe the consensus in the bugs is for it to work just like it does
for img.

Any thoughts?

Cheers,

/pf

[1] https://bugs.webkit.org/show_bug.cgi?id=81438 (just for the
crossorigin attribute, the error sanitation part of robert's feature
request is still pending).


--
pablo flouret
motorola | webkit / browser team

Reply all
Reply to author
Forward
0 new messages