Permalink
Browse files

allow marketplace.firefox.com as custom origin (bug 929600)

  • Loading branch information...
1 parent 2a0f735 commit 3e71272935f38b0cf422d3e166cbb3cb22255bfe @cvan cvan committed Oct 23, 2013
Showing with 9 additions and 3 deletions.
  1. +0 −1 appvalidator/specs/webapps.py
  2. +9 −2 tests/test_webapp.py
@@ -10,7 +10,6 @@
BANNED_ORIGINS = [
"gaiamobile.org",
- "firefox.com",
"mozilla.com",
"mozilla.org",
]
View
@@ -902,11 +902,18 @@ def test_origin_path_trailing_slash(self):
self.analyze()
self.assert_failed(with_errors=True)
- def test_origin_banned(self):
+ def test_origin_allowed(self):
self.make_privileged()
self.data["origin"] = "app://marketplace.firefox.com"
self.analyze()
- self.assert_failed(with_errors=True)
+ self.assert_silent()
+
+ def test_origin_banned(self):
+ for origin in ("app://system.gaiamobile.org", "app://mozilla.org"):
+ self.make_privileged()
+ self.data["origin"] = origin
+ self.analyze()
+ self.assert_failed(with_errors=True)
def test_chrome(self):
self.data["chrome"] = {"navigation": True}

0 comments on commit 3e71272

Please sign in to comment.