Skip to content
This repository was archived by the owner on Mar 31, 2021. It is now read-only.

Commit 3e71272

Browse files
committed
allow marketplace.firefox.com as custom origin (bug 929600)
1 parent 2a0f735 commit 3e71272

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

appvalidator/specs/webapps.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
BANNED_ORIGINS = [
1212
"gaiamobile.org",
13-
"firefox.com",
1413
"mozilla.com",
1514
"mozilla.org",
1615
]

tests/test_webapp.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,11 +902,18 @@ def test_origin_path_trailing_slash(self):
902902
self.analyze()
903903
self.assert_failed(with_errors=True)
904904

905-
def test_origin_banned(self):
905+
def test_origin_allowed(self):
906906
self.make_privileged()
907907
self.data["origin"] = "app://marketplace.firefox.com"
908908
self.analyze()
909-
self.assert_failed(with_errors=True)
909+
self.assert_silent()
910+
911+
def test_origin_banned(self):
912+
for origin in ("app://system.gaiamobile.org", "app://mozilla.org"):
913+
self.make_privileged()
914+
self.data["origin"] = origin
915+
self.analyze()
916+
self.assert_failed(with_errors=True)
910917

911918
def test_chrome(self):
912919
self.data["chrome"] = {"navigation": True}

0 commit comments

Comments
 (0)