• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / addons-linter / 3763
100%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2017 11:48AM UTC
Jobs 1
Files 56
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3763

push

travis-ci

web-flow
Parse and validate CSP rules more properly. (#1434)

* First take on #1298 , parse and validate CSP rules more properly.

This needs much more test-values, best from real-life add-ons.

* Add a few more tests

* Fix parseCspPolicy tests

* Update message a bit

* Make sure other rules like style-src are unaffected

* Move url validation inside try/catch block

* Generally avoid loading anything from a host

* Refactor parsing logic a bit to be more explicit with host matches.

* Add two more invalid values

* Add one more invalid example

* Be a bit less strict, there are a few scenarios that we might not be able to match properly...

* More bugfixes, don't match plain host names for now

* Refactor matching again to properly match all crappy things...

* Small cleanups

* More tests, lint worker-src too, forbid unsafe-eval.

* Forbid unsafe-inline too

* Fix tests

* Update message

* re-add unsafe-eval and unsafe-inline based on @wagnerand request.

Fixes #1298

741 of 774 branches covered (95.74%)

1439 of 1439 relevant lines covered (100.0%)

192.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3763.1 04 Aug 2017 11:48AM UTC 0
100.0
Travis Job 3763.1
Source Files on build 3763
  • List 0
  • Changed 11
  • Source Changed 5
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #3763
  • 37b1dd7c on github
  • Prev Build on master (#3758)
  • Next Build on master (#3775)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc