Commit Graph

57 Commits

Author SHA1 Message Date
Andrew Swan
dc4b339b75 Bug 1255040 - Implement mozAddonManager.createInstall(). r=rhelmer
MozReview-Commit-ID: JLrhGywROzt

--HG--
extra : transplant_source : h%01%A8%D1%89%C0IO%1E%879C%01%25%ECW%1Dg%1D%7C
2016-04-18 13:48:12 -07:00
Dave Townsend
9885c5b8b1 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

--HG--
extra : rebase_source : 6206982c687a8e1733ef323488fc2710a4967688
2016-03-10 09:50:07 -08:00
Dave Townsend
5a830b3dbf Bug 1257246: Update toolkit/mozapps/extensions for eslint 2. r=aswan
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: CRpZy873GP6

--HG--
extra : rebase_source : d355e5f0f13211cbd81e2a91cfe6191f5e84adb2
extra : histedit_source : eb85af7438b493a22fd9a4c32ab254e6a01b7cb3
2016-04-05 11:32:12 -07:00
Dave Townsend
424899c3cd Bug 1245916: Turn on no-undef in toolkit/mozapps/extensions. r=rhelmer
Mostly just declaring globals that Cu.imports defines but there are some actual
bugs here that have been fixed as well as one test that just never ran because
of a hidden exception.

MozReview-Commit-ID: J6uIpYp8ANx

--HG--
extra : rebase_source : 5c19b92e4242088b6fc7a268f255fe9a795928f6
extra : source : 3e5b6df276a9a20fe7b3655656e62a09bc46aaa9
2016-02-03 22:48:48 -08:00
Dave Townsend
c56db4025e Backed out changeset 3e5b6df276a9 from bug 1245916 for causing test failures.
MozReview-Commit-ID: CbsTB3xqGC6
2016-02-15 11:36:23 -08:00
Dave Townsend
70e2c0d753 Bug 1245916: Turn on no-undef in toolkit/mozapps/extensions. r=rhelmer
Mostly just declaring globals that Cu.imports defines but there are some actual
bugs here that have been fixed as well as one test that just never ran because
of a hidden exception.

MozReview-Commit-ID: J6uIpYp8ANx

--HG--
extra : rebase_source : 9d33fb313aec69e98ac3027d20a6bfc247f27f63
2016-02-03 22:48:48 -08:00
Sebastian Hengst
ec249b43ac Bug 1239868 - remove unused PREF_EM_UPDATE_INTERVAL. r=Mossop 2016-01-15 13:11:31 +01:00
Dave Townsend
e2b946adfc Bug 1226386: Remove functions names where possible. r=rhelmer
We used to need explicit names for functions to make stack traces display
properly. The JS engine is smarter now so doesn't need them and they just
make the code messy and redundant.

--HG--
extra : commitid : 4FEIiQYhRQu
extra : rebase_source : 26689d5417f592d0f327f32076245cb4f154229a
2015-11-19 16:35:41 -08:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Dave Townsend
d78b5ae798 Bug 1200027: Fix installing add-ons from the AMO discovery pane in the add-ons manager. r=dveditz
--HG--
extra : commitid : 94OiH0KUpNn
extra : rebase_source : 5d51f94c1627b19bdc438fe05e5475bd3525070d
extra : amend_source : 203756cbbab7f0f7dbda20ec003292081d96bb51
2015-08-31 11:23:39 -07:00
Dave Townsend
cbedcf3b95 Bug 1042699: Block cross-origin add-on install requests. r=dveditz
--HG--
extra : commitid : FdVvNum7B1w
extra : rebase_source : db8d8aff572798f35b80e20feb6aaaa9094cf79c
extra : amend_source : 14e54c9a677784e9f520a454ee579208f8385384
2015-08-18 17:21:05 -07:00
Dave Townsend
034055f952 Bug 1082764: Use the correct referrer when the content handler catches an XPI install in e10s. r=Unfocused 2014-11-04 23:28:55 -08:00
Dave Townsend
a7d0217d78 Bug 1084558: Switch the web installer interfaces to use browsers instead of DOM windows. r=Unfocused 2014-11-04 19:20:52 -08:00
Irving Reid
f3dd54a999 Bug 995108 - Disable blocklist and update timers during Addon Manager mochitests. r=mossop 2014-09-02 11:47:11 -04:00
Blake Kaplan
4da97bea66 Bug 952201 - Make installing addons from web content work correctly in e10s. r=bmcbride@mozilla.com 2014-07-18 09:27:29 -07:00
Blair McBride
0e3ff19f35 Bug 926712 - Use WebIDL to expose InstallTrigger, r=Mossop,bholley 2013-12-12 02:08:00 +00:00
Bill McCloskey
f017507c0f Bug 682048 - Change Firefox frame script handling to support anon/global scope (r=felipe) 2013-11-23 21:32:27 -08:00
Ryan VanderMeulen
5dad8f16c4 Backed out changesets e7aa50b69994, bc00eed50b7d, and 30a8127b9277 (bug 682048) for causing frequent B2G reftest timeouts.
CLOSED TREE
2013-12-03 22:44:28 -05:00
Bill McCloskey
181fc4be1f Bug 682048 - Change Firefox frame script handling to support anon/global scope (r=felipe) 2013-11-23 21:32:27 -08:00
Tom Schuster
4efb5b26f8 Bug 870625 - Electrolysis: Add-on installation from addons.mozilla.org should work. r=Mossop 2013-08-09 12:23:49 -04:00
Nils Maier
c4ab68f849 Bug 846019 - Part 1: amIAddonManager: Map URIs to AddonIDs. r=bmcbride 2013-06-14 22:48:06 -04:00
Kyle Huey
0469a02b25 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
a78b5b38c7 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
9a3674d80a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
4144129728 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
50b5d3f681 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Atul Jangra
1676f8645e Bug 767236 - Part 4: Name all anonymous functions in remaining Add-ons Manager code. r=Unfocused 2012-10-24 22:58:00 +13:00
Philipp von Weitershausen
d158b5747c Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Dave Townsend
7da9c66580 Bug 782881 - Protect against attempts to use the Add-ons Manager APIs after shutdown. r=Unfocused
Bug 782881 - Protect against attempts to use the Add-ons Manager APIs after shutdown. r=Unfocused
2012-05-10 11:33:02 -07:00
Blair McBride
7bd3a6f1f4 Backout 42bc5a310a29 (bug 782881) due to multi-orange. 2012-08-15 23:07:45 +12:00
Dave Townsend
33eb5452fa Bug 782881 - Protect against attempts to use the Add-ons Manager APIs after shutdown. r=Unfocused 2012-05-10 11:33:02 -07:00
Blair McBride
fb387b6491 Bug 780313 - Remove unnecessary preprocessing of Toolkit files. r=gavin 2012-08-04 13:22:55 +12:00
Fraser Gutteridge
239a139b71 Bug 759642 - Part 1: Add-ons Manager should use Components.Exception consistently when throwing exceptions. r=Unfocused 2012-07-30 22:46:45 +12:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Blair McBride
cd9c3c38b5 Bug 670023 - Use ES5's strict mode in Add-ons Manager frontend and backend code. r=dtownsend 2011-07-19 13:16:35 -07:00
Gavin Sharp
3fecee7e86 Back out 0f11ca4d1733 (bug 670023) due to xpcshell test failures 2011-07-21 22:20:21 -04:00
Blair McBride
dbfd6cae6c Bug 670023 - Use ES5's strict mode in Add-ons Manager frontend and backend code. r=dtownsend 2011-07-19 13:16:35 -07:00
Tim Taubert
ef65209ddf Backed out changeset a115d824218c (bug 670023) 2011-07-20 03:28:05 +02:00
Blair McBride
9b76325baa Bug 670023 - Use ES5's strict mode in Add-ons Manager frontend and backend code. r=dtownsend 2011-07-19 13:16:35 -07:00
Dave Townsend
f65ba58e6b Bug 613385: No notifications are sent out for webpage attempts to install add-ons when xpinstall.enabled=false. r=gavin, r=robstrong, a=blocks-betaN 2010-11-24 12:37:28 -08:00
Alon Zakai
37ca9a1d55 Bug 593187: Request for authentication for an extension install doesn't focus the correct tab. r=dtownsend, a=blocks-betaN 2010-09-15 10:46:55 -07:00
Dave Townsend
e8a4f3e6c6 Bug 572966: Test that InstallTrigger callbacks can redirect to a relative url. r=robstrong, a=blocking-b5 2010-08-20 15:48:05 -07:00
Alon Zakai
2c8640b67d Bug 550936 - Make InstallTrigger support cross-process communication r=Mossop a=blocking-beta4+,blocking-fennec2.0a1+ 2010-08-16 16:41:46 -04:00
Kyle Huey
06a47f4d90 Backed out changeset c8dc4dd369ee 2010-08-17 01:07:56 -04:00
Alon Zakai
36c45cdce8 Bug 550936 - Make InstallTrigger support cross-process communication r=Mossop a=blocking-beta4+,blocking-fennec2.0a1+ 2010-08-16 16:41:46 -04:00
Benjamin Smedberg
31432df1fb Bug 568691 - Convert existing JS components to use NSGetFactory and add manifest files for them. In a followup we will link the .manifest files together at packaging time. This patch was developed on Linux: Windows and Mac may require additional changes.
--HG--
rename : toolkit/components/filepicker/src/nsFilePicker.js.in => toolkit/components/filepicker/src/nsFilePicker.js
2010-06-22 12:59:15 -04:00
Benedict Hsieh
c692b59718 Bug 568348 - The extension manager should do extension install activities and write extensions.ini before the profile is started. r=Mossop 2010-06-11 12:02:44 -07:00
Dave Townsend
2ccabda62f Bug 570200: Errors aren't passed sanely from getInstallForFile. r=robstrong
--HG--
rename : toolkit/mozapps/extensions/test/xpinstall/corrupt.xpi => toolkit/mozapps/extensions/test/xpcshell/data/corrupt.xpi
rename : toolkit/mozapps/extensions/test/xpinstall/empty.xpi => toolkit/mozapps/extensions/test/xpcshell/data/empty.xpi
rename : toolkit/mozapps/extensions/test/xpinstall/unsigned.xpi => toolkit/mozapps/extensions/test/xpcshell/data/unsigned.xpi
2010-06-10 16:39:47 -07:00
Dave Townsend
eb31efd5db Bug 561878: xpinstall.enabled isn't properly blocking installation by webpages. r=robstrong 2010-04-29 13:11:28 -07:00
Dave Townsend
a132e97c1f Bug 555942: Style and attribute prefix fixes, no review
* * *
Fix argument renames for test_registry.js
2010-04-28 09:42:07 -07:00