Commit Graph

45 Commits

Author SHA1 Message Date
Dan Banner
306e0c888e Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS
2017-09-18 19:07:17 +01:00
Sebastian Hengst
2bdce0b67c Backed out changeset f4c33a37fe6d (bug 1395890) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_find.js. r=backout on a CLOSED TREE 2017-09-19 16:35:31 +02:00
Dan Banner
f7d41414af Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS
2017-09-18 19:07:17 +01:00
Steve Armand
b03be0d87e Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR
2017-09-04 00:49:32 -04:00
Dan Banner
69fb4d8501 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh
2017-08-23 13:38:24 +01:00
dagasatvik
91d42b2553 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg
2017-08-07 23:57:51 +05:30
Rajesh Kathiriya
fefc455410 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30
Sebastian Hengst
1326418a49 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya
0d920ece6a Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30
Rajesh Kathiriya
993895141d Bug 1370225 - Enabled the ESLint comma-style rule across mozilla-central. r=standard8
MozReview-Commit-ID: 9OhLgBpYS4L
2017-06-15 18:24:17 +01:00
Rajesh Kathiriya
7c0507b30e Bug 1370232 - Enabled the ESLint no-unneeded-ternary rule across mozilla-central. r=standard8
MozReview-Commit-ID: AH9ArRkjh78
2017-06-13 00:23:54 +05:30
Mark Banner
9916415caf Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop
MozReview-Commit-ID: 5KC23kzaCFN
2017-06-08 10:59:12 +01:00
Mark Banner
1b7222fed5 Bug 1370240 - Enable the ESLint no-control-regex rule across mozilla-central. r=mossop
MozReview-Commit-ID: IN7YMk7yhAO
2017-06-05 15:43:09 +01:00
Kris Maglione
3aab3e2667 Bug 1356546: Part 2 - Use StructuredCloneHolder as transport for MessageManager messages. r=aswan
MozReview-Commit-ID: 3z1uAAbsgTj
2017-06-04 20:46:38 -07:00
Kris Maglione
db3ec327d2 Bug 1368189: Move more code out of ExtensionUtils.jsm. r=mixedpuppy
Also removes some dead code.

A lot of the code in ExtensionUtils.jsm is not needed in all processes, and a
lot of the rest isn't needed until extension code runs. Most of it winds up
being loaded into all processes way earlier than necessary.

MozReview-Commit-ID: CMRjCPOjRF2
2017-05-26 15:44:41 -07:00
Kris Maglione
eb1e83769a Bug 1368102: Part 2 - Add WebExtensionContentScript bindings. r=billm,mixedpuppy
Bill, can you please review the binding code? Shane and zombie, can you please
review the content script matching?

MozReview-Commit-ID: IJB5s0a7r7S
2017-06-03 22:03:19 -07:00
Kris Maglione
e5aca6859e Bug 1322235: Part 6 - Replace AddonPolicyService with a stub implementation in ExtensionPolicyService. r=mixedpuppy,zombie
This replaces the JS policy service stubs with a pure C++ version which
directly makes policy decisions based on active WebExtensionPolicy objects.

This is the first step in a larger refactoring, which will remove the
ExtensionManagement module entirely, and replace the current add-on policy
service with direct, non-virtual access to native WebExtensionPolicy objects.

It will also be followed by related changes to migrate the content script and
extension page matching to native code, based on the existing MatchPattern and
WebExtensionPolicy bindings.

MozReview-Commit-ID: 2MpbmXZGiPZ
2017-06-03 17:12:14 -07:00
Kris Maglione
4f623b6890 Bug 1322235: Part 3 - Use MatchPatternSet for whiteListedHosts and webRequest. r=aswan,zombie
This is the second step to migrating the policy service to pure native code,
with similar impacts and reasoning to the previous patch.

MozReview-Commit-ID: L5XdPzWNZXM
2017-06-03 22:11:20 -07:00
Kris Maglione
40575e9449 Bug 1322235: Part 2 - Use MatchGlob for webAccessibleResources. r=aswan
This is the first step toward migrating the web-accessible URL policy to
purely native code. It should have a noticeable performance improvement on its
own, but the main improvement comes from being able to pass the pattern
objects to the pure C++ policy service.

MozReview-Commit-ID: DHoGLVr8yJ9
2017-05-23 22:04:22 -07:00
Dan Banner
4055021839 Bug 1368041 - Enable no-array-constructor across mozilla-central r=standard8
MozReview-Commit-ID: EXJNufdKKhJ
2017-05-27 15:17:29 +01:00
tiago
56615c1d5e Bug 1367198 - Remove duplicate ESLint rule definitions from various .eslintrc.js files. r=standard8
MozReview-Commit-ID: AUz5l7XPfwY
2017-05-24 13:55:24 -03:00
Chris Peterson
dccd140861 Bug 1358948 - Remove redundant eslint "no-spaced-func" rules and standardize on new "func-call-spacing" name. r=standard8
The "no-spaced-func" name was deprecated in ESLint v3.3.0 and replaced by "func-call-spacing", which is already specified in the mozilla/recommended rules and some other .eslintrc.js files. We need to specify func-call-spacing in accessible/tests/browser/.eslintrc.js because it doesn't inherit the mozilla/recommended rules.

MozReview-Commit-ID: 7L8fuVtTu0X
2017-04-23 19:40:28 -07:00
Tanay PrabhuDesai
e54af3f13f Bug 1354517 - De-duplicate already ESLint recommended rules in toolkit/components/extensions/.eslintrc.js r=standard8
MozReview-Commit-ID: XYWoR8bOKe
2017-04-19 08:37:06 +05:30
Kris Maglione
da08b6926c Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
MozReview-Commit-ID: CTX0TckLqoV
2017-04-07 13:39:06 -07:00
Mark Banner
7945b07153 Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop
MozReview-Commit-ID: KVrAnAjMD1E
2017-04-03 11:46:56 +01:00
Kris Maglione
dccaa03b3d Bug 1350522: Part 1 - Allow lazily loading and instantiating API modules. r=aswan
MozReview-Commit-ID: 7ETOJL6ERkg
2017-03-31 17:16:39 -07:00
Tomislav Jovanovic
251163ad61 Bug 1339559 - Enable no-mixed-operators ESLint rule r=kmag
MozReview-Commit-ID: LjuiizBh1OK
2017-03-17 14:28:14 +01:00
Kris Maglione
50f77bbcb4 Bug 1333477: Part 2 - Remove "browser" environment from ESLint settings. r=aswan
MozReview-Commit-ID: LCxI6JVp7Xo
2017-03-12 14:16:13 -07:00
Kris Maglione
bbe2608ca7 Bug 1260548: Part 1 - Factor out the common functionality of the tabs API. r=aswan
MozReview-Commit-ID: AS7asn6nXzr
2017-01-30 22:44:16 -08:00
Kris Maglione
f47df64aeb Fix runChannelListener complexity warnings again, change severity to error. r=me (no bug)
MozReview-Commit-ID: HMUPIOLR61Y
2017-01-20 18:07:45 -08:00
Jared Wein
e10047cd07 Bug 1326479 - Enable more options for the 'indent' rule. r=Gijs
MozReview-Commit-ID: EuxayyLNHNt
2016-12-30 18:32:56 -05:00
Andrea Marchesini
ecbd185142 Bug 1322856 - Expose ContextualIdentities (aka containers) to WebExtensions - part 2, r=kmaglione 2016-12-17 18:41:28 +01:00
Andrea Marchesini
60a9d8c123 Bug 1322856 - Expose ContextualIdentities (aka containers) to WebExtensions - part 1, r=kmaglione 2016-12-17 18:41:02 +01:00
Sebastian Hengst
d273b12326 Backed out changeset 5a145b21bd64 (bug 1322856) for failing own test test_ext_contextual_identities.js. r=backout 2016-12-16 23:52:11 +01:00
Sebastian Hengst
ab4ecea36d Backed out changeset 5db9fcefa874 (bug 1322856) 2016-12-16 23:50:59 +01:00
Andrea Marchesini
22a1217398 Bug 1322856 - Expose ContextualIdentities (aka containers) to WebExtensions - part 2, r=kmaglione 2016-12-16 22:01:24 +01:00
Andrea Marchesini
40b3b9a35c Bug 1322856 - Expose ContextualIdentities (aka containers) to WebExtensions - part 1, r=kmaglione 2016-12-16 22:01:24 +01:00
Kit Cambridge
b5156e7a2a Bug 1322954 - Replace deprecated no-negated-in-lhs ESLint option with no-unsafe-negation. r=markh
MozReview-Commit-ID: 3PnGSH0wzyi
2016-12-11 20:53:18 -08:00
Mark Hammond
f3cc62a44b Bug 1318493 - Tell the eslint parser to use ecmaVersion 8. r=mossop
MozReview-Commit-ID: DPO9IrSxc2Q
2016-11-18 10:02:13 +11:00
Jared Wein
2dfc7371c2 Bug 1316096 - Change eslint configuration to use string values for rules instead of integers, making it easier for others who are reading the rules to know if a rule is set to off, warn, or error. r=mossop
MozReview-Commit-ID: 2Xuj5nxuQdO
2016-11-08 15:14:19 -05:00
Kris Maglione
970653dbb7 Bug 1313956: Async all the tests. r=aswan
MozReview-Commit-ID: CyNCfEsDD42
2016-11-07 21:03:14 -08:00
Carsten "Tomcat" Book
c2b964b9a5 Backed out changeset efc9b52a218f (bug 1313956) for failing on own tests 2016-11-08 14:07:22 +01:00
Kris Maglione
37f654a810 Bug 1313956: Async all the tests. r=aswan
MozReview-Commit-ID: CyNCfEsDD42
2016-11-07 21:03:14 -08:00
Mark Banner
d4b538c2b7 Bug 1240165 - Expand the eslint rule 'mark-test-function-used' to cover xpcshell tests as well as gecko tests and apply to the whole tree. r=miker
MozReview-Commit-ID: FlbJ8yzWXlw
2016-10-26 09:46:40 +01:00
Mark Banner
233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00