зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1277524 - Add moz-extension to the list of potentially trustworthy origins. r=tanvi
MozReview-Commit-ID: BvR7Xb0AE9N --HG-- extra : rebase_source : dfe2d600b15a6cffd49be454b3394106c3ff9bb3 extra : histedit_source : 8b03564ebced1305ce79652d904e7bb95a92a2e8
This commit is contained in:
Родитель
574482a5c5
Коммит
0e04940e1a
|
@ -645,6 +645,7 @@ nsContentSecurityManager::IsOriginPotentiallyTrustworthy(nsIPrincipal* aPrincipa
|
|||
scheme.EqualsLiteral("file") ||
|
||||
scheme.EqualsLiteral("resource") ||
|
||||
scheme.EqualsLiteral("app") ||
|
||||
scheme.EqualsLiteral("moz-extension") ||
|
||||
scheme.EqualsLiteral("wss")) {
|
||||
*aIsTrustWorthy = true;
|
||||
return NS_OK;
|
||||
|
|
|
@ -27,6 +27,7 @@ add_task(function* test_isOriginPotentiallyTrustworthy() {
|
|||
["http://127.0.0.1/", true],
|
||||
["file:///", true],
|
||||
["resource:///", true],
|
||||
["moz-extension://", true],
|
||||
["about:config", false],
|
||||
["urn:generic", false],
|
||||
]) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче