facebook/javelin — pull request #38 by jwatzman (2012-12-23 05:55:16+00:00)
Title: JX.Resource: normalize paths

Summary:
Be consistent between browser munging on bootstrap and munging when
given a path via JX.Resource.load. See comment in code and T2234 for details.

Test Plan:
Load a page with CSS and JS resources specified with URIs that did
not include hostnames. See that `JX.Resource._loaded` does include hostnames.
Re-load one of those resources via `JX.Resource.load(path-without-hostname,
JX.bag)`. See that the resource is no longer re-loaded; its name is properly
normalized. Load a resource that is not already on the page, see it get loaded.
See normalization work in both Firefox and Chrome.

Reviewers: epriestley, chad, cpojer

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2234

Differential Revision: https://secure.phabricator.com/D4279