Commit Graph

28 Commits

Author SHA1 Message Date
Luca Greco
94641d8be7 Bug 1256282 - [webext] Fix addonId checks in getAPILevelForWindow and add an xpcshell test unit. r=kmag
MozReview-Commit-ID: HVoUAMOKqTZ
2016-04-04 13:46:17 +02:00
Andrew Swan
39e7f61107 Bug 1251766 - Add new Date type to webextensions schemas. r=kmag
MozReview-Commit-ID: EEX5FziiINo
2016-03-04 13:08:19 -08:00
Kris Maglione
2d83ab587e Bug 1214955: [webext] Automatically localize all localizable manifest properties. r=billm
MozReview-Commit-ID: 2kvYT44NIE8
2016-02-29 19:34:49 -08:00
Matthew Wein
657500c828 Bug 1243602 - don't expose browser.* properties that lack required permissions. r=kmag 2016-02-24 18:08:59 -08:00
Kris Maglione
666cee3637 Bug 1248855 - [webext] Add "object-curly-spacing" ESLint rule and auto-fix errors. r=billm
MozReview-Commit-ID: BAZ2rRl7eSM
2016-02-16 20:10:00 -08:00
Bill McCloskey
10a764ce9d Bug 1246787 - Fix ESLint errors 2016-02-11 13:37:44 -08:00
Bill McCloskey
e0f8de3c70 Bug 1246787 - [webext] Add schema storage.json (r=kmag) 2016-02-11 13:04:31 -08:00
Kris Maglione
923fcfb938 Bug 1244474: [webext] Part 1 - Add "deprecated" property support to schema validator. r=billm 2016-02-10 16:32:58 -08:00
Kris Maglione
aaa7c2d387 Bug 1225715: Part 5 - Add schema for extension manifests. r=billm
This currently forbids unknown top-level schema properties, and unknown
permissions. In the future, I'd like to make those warnings rather than
errors, for compatibility purposes, but I think errors are fine for now.
2016-01-30 10:27:02 -08:00
Kris Maglione
66200c72ef Bug 1225715: Part 4 - Improve reporting of schema errors. r=billm 2016-01-29 20:11:07 -08:00
Kris Maglione
bcc6d8cec0 Bug 1225715: Part 3 - Allow extending existing schema types. r=billm
This one's a bit weird. I was trying to avoid it for a while, but when we
start to support different sets of APIs on different apps, it's going make it
complicated to maintain a single, centralized manifest schema without some way
for them to directly extend it.
2016-01-20 22:46:37 -08:00
Kris Maglione
ed96a63537 Bug 1225715: Part 2 - Add string format support to schemas. r=billm 2016-01-29 19:48:57 -08:00
Kris Maglione
aac8f08d11 Bug 1225715: Part 1 - Add support for patterned strings and properties in schemas. r=billm 2016-01-29 19:45:16 -08:00
Kris Maglione
59c5eea635 Bug 1190323: [webext] Part 2: Complete i18n API test coverage. r=billm 2016-01-12 15:58:13 -08:00
Luca Greco
2dbfe38980 Bug 1237357 - Fix missing Cr used by AddonLocalizationConverter in simpleServices. r=kmag 2016-01-08 05:38:00 -05:00
Kris Maglione
805fdcb445 Bug 1237122 - Use base test suite eslintrc files for WebExtension tests. r=trivial 2016-01-05 16:10:33 -08:00
Bill McCloskey
4b8e226fb9 Bug 1208257 - [webext] context_menus.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
8beda44f2f Bug 1208257 - [webext] browser_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Kris Maglione
e9c6469c48 Bug 1231827: Fix ESLint regressions in toolkit/components/extensions. r=trivial 2015-12-11 11:29:08 -05:00
Bill McCloskey
76871bddaa Bug 1208257 - [webext] Add basic schema support (r=kmag) 2015-12-06 08:50:24 -08:00
Kris Maglione
956fe582d0 Bug 1229874: Part 3 - Enable ESLint in WebExtension code. r=billm
The base .eslintrc is essentially a merge of the root Toolkit .eslintrc and
the devtools .eslintrc, with some minor changes to match our prevalent style.

For the most enforces the coding styles that we've been using most
consistently. There are a couple of significant differences, though:

 * The rule for opening brace alignment can only be applied globally, and
   doesn't make exceptions for top-level functions. I chose to turn it on, and
   change the brace style of existing top-level functions that violated it,
   since the rule seemed worth using, and that's the direction most Toolkit JS
   code has been headed anyway.

 * The rule for switch/case statements requires an added indentation level for
   case statements. Most of our switch statements did not use an extra level
   of indentation, and I initially wrote the rule to enforce that style, until
   I came across case statements that used blocks, and required the extra
   indentation level for sanity.
2015-12-02 16:58:53 -08:00
Kris Maglione
2e0886855c Bug 1229874: Part 2 - Fix the major errors detected by ESLint. r=billm 2015-12-02 16:58:24 -08:00
Kris Maglione
fc44b273a5 Bug 1209184: Part 3 - [webext] Add tests for locale stream converter. r=billm 2015-11-28 01:00:57 -08:00
Phil Ringnalda
5f05f7cbf1 Back out 5 changesets (bug 1209184) on suspicion of causing OS X opt build startup cache precompilation failures
CLOSED TREE

Backed out changeset d0404928473e (bug 1209184)
Backed out changeset 24282235336d (bug 1209184)
Backed out changeset 399404ff25e4 (bug 1209184)
Backed out changeset a517959befe9 (bug 1209184)
Backed out changeset a4f1765a6cdf (bug 1209184)
2015-11-28 20:29:48 -08:00
Kris Maglione
993ed0faed Bug 1209184: Follow-up: Disable WebExtension xpcshell tests on Android and gonk. r=me 2015-11-28 01:00:57 -08:00
Kris Maglione
de46806b39 Bug 1209184: Part 3 - [webext] Add tests for locale stream converter. r=billm 2015-11-27 23:02:41 -08:00
Phil Ringnalda
a64db3f8c1 Back out 4 changesets (bug 1209184) for Android/B2G xpcshell bustage
CLOSED TREE

Backed out changeset 8e692344588a (bug 1209184)
Backed out changeset f9ab76689610 (bug 1209184)
Backed out changeset 9c63ffd499eb (bug 1209184)
Backed out changeset e75f9f24d0dc (bug 1209184)
2015-11-27 22:40:54 -08:00
Kris Maglione
bc46ddaf7d Bug 1209184: Part 3 - [webext] Add tests for locale stream converter. r=billm 2015-11-16 17:38:02 -08:00