Commit Graph

134 Commits

Author SHA1 Message Date
Kris Maglione
b50fe2d8fc Bug 1452307: Remove some dead code. r=aswan
MozReview-Commit-ID: DpV0WWW8WKF
2018-04-08 12:55:20 -07:00
Kris Maglione
4c402a31f9 Bug 1451215: Run codespell on code. r=aswan
MozReview-Commit-ID: HIilZTKcQUY
2018-04-03 22:22:07 -07:00
Oriol Brufau
84b7fedb94 Bug 1448120 - Allow 0 as minimum or maximum integer in webextension schema r=mixedpuppy
MozReview-Commit-ID: 2gd8e4SdaQ2
2018-03-22 21:03:03 +01:00
Kris Maglione
840a458d8a Bug 1444758: Part 3 - Migrate test_ext_schema to xpcshell. r=aswan
MozReview-Commit-ID: CTCLTXWCZBN
2018-03-11 12:48:30 -07:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Mark Striemer
de4cbaa8f3 Bug 1429590 - Only allow one homepage to be set by extensions r=aswan
MozReview-Commit-ID: 8DTj8ceWAr8
2018-01-31 20:21:32 -06:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Kris Maglione
661ea33e42 Bug 1323845: Part 6a - Support WebExtension-style experiment API provider extensions. r=aswan
MozReview-Commit-ID: E1IBFyzEwqU
2018-01-09 17:20:55 -08:00
Kris Maglione
3ad29270e5 Bug 1323845: Part 5a - Allow extensions to bundle experiment API modules. r=aswan
MozReview-Commit-ID: 5suo2MqM51V
2018-01-09 16:28:36 -08:00
Kris Maglione
05654848aa Bug 1323845: Part 1 - Support multiple schema root namespaces. r=aswan
MozReview-Commit-ID: DfOjHGzLJro
2017-12-16 15:05:13 -06:00
Andrew Swan
e9a7ab4dae Bug 1426259: Implement import for webextensions schemas r=kmag
MozReview-Commit-ID: LFYh8SzpCVN
2017-12-19 14:32:35 -08:00
Andreea Pavel
f83f963a34 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 22:21:17 +02:00
Kris Maglione
c8ea1d4273 Bug 1421459: Update to ESLint 4 "indent" rule. r=aswan
MozReview-Commit-ID: LxLDWlsIlSk
2017-11-28 14:13:59 -08:00
Oriol Brufau
9f671e6f20 Bug 1419940 - Allow browserAction set* methods to accept a null value. r=aswan
MozReview-Commit-ID: H2UfUITBEMm
2017-11-29 05:50:00 +01:00
Shane Caraveo
460fc01e51 Bug 1419880 first round of TODO/FIXME comment updates, r=mixedpuppy
MozReview-Commit-ID: 6GsqWSBKB2d
2017-11-22 11:54:07 -08:00
Kris Maglione
7e48a066a3 Bug 1402066: Part 1 - Fix ordering of base schema data in extension child processes. r=aswan
MozReview-Commit-ID: FtLHJq5H5oD
2017-09-25 21:01:32 -07:00
Sebastian Hengst
60331dbda4 Backed out changeset d828e2c01a60 (bug 1402066) for frequently failing modified xpcshell test toolkit/components/extensions/test/xpcshell/test_ext_redirects.js on Android 4.3 debug. r=backout 2017-09-26 11:38:33 +02:00
Kris Maglione
1a85b6c47f Bug 1402066: Part 1 - Fix ordering of base schema data in extension child processes. r=aswan
MozReview-Commit-ID: FtLHJq5H5oD
2017-09-25 21:01:32 -07:00
Kris Maglione
877f3c7535 Bug 1398630: Part 1 - Remove/cleanup some old ExtensionUtils helpers. r=zombie
MozReview-Commit-ID: FeLUjH7pkiB
2017-09-10 15:39:28 -07:00
Rob Wu
d3137e4573 Bug 1395172 - Remove "binary" type from Schemas.jsm r=kmag
MozReview-Commit-ID: JaHnb37czrA
2017-08-30 22:22:47 +02:00
Andreas Wagner
44d2dbaac2 Bug 1390917 - Accept data:image/png and data:image/jpeg as theme background; r=aswan,mikedeboer
MozReview-Commit-ID: 2roQoBrc7mv
2017-08-17 21:51:36 +02:00
Luca Greco
08ddc0c735 Bug 1341305 - Implement devtools.panels.elements.createSidebarPane and sidebar's setObject APIs. r=aswan
MozReview-Commit-ID: 2OhNuUWY9CP
2017-07-24 16:58:55 +02:00
Kris Maglione
39ea354748 Bug 1391405: Part 6 - Use native helper for extracting enumerable properties. r=zombie
MozReview-Commit-ID: JqSrGUVVauE
2017-08-17 16:06:15 -07:00
Kris Maglione
f5f64f9a89 Bug 1391405: Part 4 - Avoid easily-avoidable regexp. r=zombie
MozReview-Commit-ID: 6xAr5hGxm2r
2017-08-17 14:45:30 -07:00
Kris Maglione
195503af2a Bug 1391405: Part 3b - Speed up schema normalization for choices types some more. r=zombie
Like part a, but for `choices` messages rather than error messages.

MozReview-Commit-ID: 7dJ0NL2fUh5
2017-08-24 13:03:42 -07:00
Kris Maglione
07d9389b8c Bug 1391405: Part 3a - Speed up schema normalization for choices types. r=zombie
For choices types, when one choice fails, we don't need the original error
string, since another choice may succeed, and we generate the final error
based on all of the options. Nevertheless, we spend a lot of time generating
JSON strings for the failed inputs in those cases, which adds up to about 12%
of the remaining overhead at this point.

MozReview-Commit-ID: 6nXBAv2W20V
2017-08-18 11:49:13 -07:00
Kris Maglione
654cda5188 Bug 1391405: Part 2 - Speed up base type normalization. r=zombie
The Array and ArrayBuffer type checks we do in getBaseType add up to a
significant amount of overhead given the number of times we call them,
especially when X-ray overhead comes into play. These changes allow us to
avoid X-ray overhead altogether.

MozReview-Commit-ID: KlRuxeElIfp
2017-08-17 14:23:15 -07:00
Kris Maglione
b4fd636ed8 Bug 1391099: Avoid using checkLoadURIStrWithPrincipal. r=mixedpuppy
checkLoadURIStrWithPrincipal runs URLs through the URI fixup services and
checks against each of the results. This is both expensive and unnecessary for
our purposes.

MozReview-Commit-ID: 4L2Z4KuMZhQ
2017-08-16 16:29:06 -07:00
Kris Maglione
f8d9014f9b Bug 1390010: Part 3 - Limit the amount of schema data sent to web content processes. r=zombie
Web contetnt processes only need access to a small amount of schema data, but
we currently send them the approximately 600K of full schema data that is
mostly useless to them.

This patch limits the schema data sent to web content processes to what they
actually need, and sends the rest only to extension content processes.

MozReview-Commit-ID: 6G0LThNTOu1
2017-08-13 19:00:24 -07:00
Andrew Swan
702d75aac5 Bug 1350151 Part 1: Add requireUserInput property for functions in webextension schemas r=kmag
MozReview-Commit-ID: BrMAwbwEu8b
2017-07-25 22:45:47 -07:00
Carsten "Tomcat" Book
d81e194db5 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Kris Maglione
e826ce2244 Bug 1382645: Part 3 - Throw away description strings before blobbifying schema JSON. r=mixedpuppy
MozReview-Commit-ID: 8rWQQhaTRr8
2017-07-25 15:00:01 -07:00
Kris Maglione
b51a9e3db0 Bug 1382645: Part 2 - Throw away schema StructuredCloneHolders in content process after deserialization. r=mixedpuppy
MozReview-Commit-ID: BBLF3zWxAyt
2017-07-20 14:01:37 -07:00
Tomislav Jovanovic
cdabf65d16 Bug 1363886 - Part 3: Check async callback arguments against schema r=kmag
MozReview-Commit-ID: E0yp9SdJrv6
2017-05-21 04:19:46 +02:00
Tomislav Jovanovic
34e05ac95a Bug 1363886 - Part 1: Check API function results against schema r=kmag
MozReview-Commit-ID: E2mGR03zUSf
2017-07-24 00:03:20 +02:00
Sebastian Hengst
cd2f778704 Backed out changeset 8955980312a6 (bug 1363886) for failing mochitests test_ext_contentscript_permission.html and test_chrome_ext_contentscript_unrecognizedprop_warning.html on Android 4.3 debug. r=backout 2017-07-25 10:42:33 +02:00
Sebastian Hengst
d3b9792df4 Backed out changeset 4b3e02945e19 (bug 1363886) 2017-07-25 10:40:32 +02:00
Tomislav Jovanovic
5a55dcd47a Bug 1363886 - Part 3: Check async callback arguments against schema r=kmag
MozReview-Commit-ID: E0yp9SdJrv6
2017-05-21 04:19:46 +02:00
Tomislav Jovanovic
16bacd6bce Bug 1363886 - Part 1: Check API function results against schema r=kmag
MozReview-Commit-ID: E2mGR03zUSf
2017-07-24 00:03:20 +02:00
Kris Maglione
1e57fb71eb Bug 1381687: Store and transfer schema JSON in structured clone blobs. r=aswan (not a CLOSED TREE)
MozReview-Commit-ID: FMSbSB1hC3F
2017-07-17 15:33:54 -07:00
Thomas Wisniewski
326c595931 Bug 1376991 - Extend browsingData to restrict removing cookies to a give list of hostnames; r=mixedpuppy
MozReview-Commit-ID: 4Tfneh5s1Q8
***
Fixes for try run failures

MozReview-Commit-ID: 2BAT1GUcvH3
2017-06-30 09:11:18 -04:00
Rajesh Kathiriya
bfb3762076 Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW
2017-07-04 21:30:18 +05:30
Kris Maglione
58178543f4 Bug 1373293: Drop invalid permissions when normalizing manifests. r=bsilverberg
MozReview-Commit-ID: EIGhP6rRLzW
2017-06-21 12:12:51 -07:00
Luca Greco
cc8cfba980 Bug 1293298 - Implement events in SubTypes defined in the WebExtensions API schema files. r=aswan
MozReview-Commit-ID: CAYaenfSih1
2017-06-01 20:02:54 +02:00
Tomislav Jovanovic
632c8b3d04 Bug 1333403 - Part 1: Implement $import keyword for schema namespaces r=kmag
MozReview-Commit-ID: 5CYsQa3b05C
2017-06-07 16:44:19 +02:00