mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
4eb476eee2
This moves URI creation from ParseMetaDataEntry into SetupPrediction because ParseMetaDataEntry is called in way more circumstances than we actually need the URI from. Even in those cases where we might use the URI (but it's not guaranteed), we end up using the URI less often than we create one. In case it wasn't clear, SetupPrediction is the only thing called post-ParseMetaDataEntry that would require a parsed URI in the first place. SetupPrediction has the duplicated NS_NewURI calls to avoid creating URIs for those calls to SetupPrediction that are no-ops. MozReview-Commit-ID: HlhVj7p2uuk --HG-- extra : rebase_source : 0349dc52225b6e93150947ea978f2ba7afa3e2f5