Commit Graph

17 Commits

Author SHA1 Message Date
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