Commit Graph

25 Commits

Author SHA1 Message Date
Kris Maglione
582a21b473 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt
2018-04-23 12:58:34 -07:00
Boris Zbarsky
2d88f7a86d Bug 1450182. Remove the EventListenerWasAdded/Removed hooks from DOMEventTargetHelper. r=smaug
MozReview-Commit-ID: GWnAvK61hVT
2018-04-04 15:32:19 -04: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
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Andrew Swan
a16898d304 Bug 1335829 Add mozAddonManager.permissionPromptsEnabled r=qdot
MozReview-Commit-ID: FldFilY24kf
2017-02-02 10:59:54 -08:00
Andrew Swan
b724044c44 Bug 1311180 Switch mozAddonManager to frame message managers r=rhelmer
MozReview-Commit-ID: GbX0VRn4HUF
2016-10-11 16:40:24 -07:00
Jared Wein
6de548d828 Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe
MozReview-Commit-ID: GDfvwWRLNm5
2016-08-16 21:27:37 -04:00
Sebastian Hengst
c0e4d28a3a Backed out changeset 7914e9dc6f88 (bug 1294542) for xpcshell failure in test_Log.js. r=backout 2016-08-17 01:24:58 +02:00
Jared Wein
3df021ec2e Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe
MozReview-Commit-ID: AAXqh63QNv3
2016-08-16 15:44:13 -04:00
Wes Kocher
9d4125d3bc Bug 1288480 - ESLint fix a=me CLOSED TREE 2016-07-21 15:53:09 -07:00
Andrew Swan
e34d0f303c Bug 1288480 Rework mozAddonManager error handling r=kmag a=kwierso CLOSED TREE
This ended up being a bigger change than I had hoped for but
it updates the WebAPITask helper in amWebAPI.js so that errors
returned from the parent process are immediately wrapped into
Error objects from the content page.  In this way, programming
errors or other internal errors don't leak out to mozAddonManager
users.

The way the previous code managed window references using "this"
was already a bit fussy, this patch only makes it worse.  But I
think this basic logical structure here is right and since this
bug is responsible for widespread breakage, I'd like to get this
checked in and then clean it up in a follow-up.

MozReview-Commit-ID: 98PgbWKsHIN
2016-07-21 11:35:41 -07:00
Andrew Swan
350c271d98 Bug 1279034 Add Addon.setEnabled() for a.m.o r=rhelmer,smaug
MozReview-Commit-ID: 6mvHMWinkle
2016-06-24 12:54:18 -07:00
Andrew Swan
93c8915030 Bug 1268077: expose AddonListener through mozAddonManager r=rhelmer,smaug
MozReview-Commit-ID: Klw4o0qIvCE
2016-05-27 15:43:05 -07:00
Andrew Swan
9b9db3535f Bug 1255041 - Implement uninstall() on DOM Addon objects. r=rhelmer
MozReview-Commit-ID: Ad3r78Y9IKb
2016-04-21 09:59:14 -07:00
Andrew Swan
81aafc796a Bug 1255040 - Implement mozAddonManager.createInstall(). r=rhelmer
MozReview-Commit-ID: JLrhGywROzt
2016-04-18 13:48:12 -07:00
Andrew Swan
286602ba99 Bug 1255040 - Add webidl for install/uninstall via AddonManager. r=bz
MozReview-Commit-ID: 9eLMPbxostQ
2016-04-20 09:42:38 -07:00
Wes Kocher
90b9686f90 Backed out changeset 00bb04b8c9a0 (bug 1255040) for failures in browser_webapi.js
MozReview-Commit-ID: 1qKiUTNw4fV
2016-04-19 16:37:08 -07:00
Andrew Swan
09f3df586a Bug 1255040 Add webidl for install/uninstall via AddonManager r=bz
MozReview-Commit-ID: 9eLMPbxostQ
2016-04-18 13:51:41 -07:00
Dave Townsend
5467318915 Bug 1245571: Allow AMO to be able to query details about an add-on. r=rhelmer
This adds a bunch of structure supporting a promise-based API on the
AddonManager object that is exposed to webpages and adds the first example,
getAddonByID.

MozReview-Commit-ID: CCEFl4R1o81
2016-03-10 09:50:07 -08:00
Dave Townsend
1530896215 Bug 1245571: Add a window.navigator.mozAddonManager object that can only be accessed by AMO. r=bz
Since we want to add a few APIs that AMO can use to query and manipulate the
user's add-ons we want to expose a custom API. This implements the webidl and
a stub implementation in JavaScript. We use the webidl functions for controlling
access to the API, only the AMO production domains (and some test domains when
testing is enabled) can access it and only when retrieved securely and not in
an inner frame of a page that shouldn't have the API.

MozReview-Commit-ID: 3HUUrduuHwf
2016-02-19 16:49:30 -08:00