Subresource integrity seems to be an awesome stopgap allowing to use third-party controlled HTTP-served resources in a secure way.
However the spec considers HTMLLinkElement
and HTMLScriptElement
interfaces only:
NOTE
A future revision of this specification is likely to include integrity support for all possible subresources, i.e.,
a
,audio
,embed
,iframe
,img
,link
,object
,script
,source
,track
, andvideo
elements.
I understand that content referred to by script
and link
elements is more 'active', yet browsers remove the green padlock for fetching even relatively innocuous images via plain HTTP, while the spec chooses to ignore them? This seems to be a massive lack of foresight to me.
What was the reasoning behind this and when can we expect a 'future revision', if at all?