[Bug 21253] [Imports]: Consider changing component location to component identifier

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21253

--- Comment #1 from James Simonsen <simonjam@chromium.org> ---
I'd love to see something like this.

One of the things that's bothered us is having a dozen different copies of
jQuery in the cache. They all come from different URLs and are fetched and
cached separately. It'd be so much nicer if we could just download it once.

So, if we could expand this beyond components, or perhaps make sure that
components can accommodate simple JS libraries, that'd be great. It could be a
matter of being able to specify a script by name, or have components follow the
same evaluation rules as <script>. That doesn't sound great though.

My biggest concern is management of the namespace. You wouldn't want to have
conflicts between sites. Even worse would be if a site poisoned a name by
injecting a malware script in there. Maybe we need a hash of the content as
well?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 19 July 2013 21:31:17 UTC