зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1781201 - Adjust NS_NewURI implementation to create nsStandardURL for uuid schemes; r=necko-reviewers,valentin
Otherwise BasePrincipal::CreateContentPrincipal would create null principals for uuid schemes. Differential Revision: https://phabricator.services.mozilla.com/D176880
This commit is contained in:
Родитель
74d7f01f40
Коммит
ccf2da1129
|
@ -1920,7 +1920,7 @@ nsresult NS_NewURI(nsIURI** aURI, const nsACString& aSpec,
|
|||
return handler->NewURI(aSpec, aCharset, aBaseURI, aURI);
|
||||
}
|
||||
|
||||
if (scheme.EqualsLiteral("indexeddb")) {
|
||||
if (scheme.EqualsLiteral("indexeddb") || scheme.EqualsLiteral("uuid")) {
|
||||
return NS_MutateURI(new nsStandardURL::Mutator())
|
||||
.Apply(&nsIStandardURLMutator::Init, nsIStandardURL::URLTYPE_AUTHORITY,
|
||||
0, aSpec, aCharset, aBaseURI, nullptr)
|
||||
|
|
Загрузка…
Ссылка в новой задаче