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:
Johann Hofmann 2016-06-02 17:14:27 +02:00
Родитель 574482a5c5
Коммит 0e04940e1a
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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],
]) {