Commit Graph

25 Commits

Author SHA1 Message Date
Alexandre Poirot
db0629c2f3 Bug 1386299 - Make WebExtension use toolkit's EventEmitter instead of DevTools one. r=rpl
MozReview-Commit-ID: 2w1ndV1g1h1
2017-08-03 15:07:05 +02:00
Andrew Swan
3d501bbfd5 Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
MozReview-Commit-ID: 7nsYWdSTJCG
2017-06-09 13:49:07 -07:00
Sebastian Hengst
8642712c2a Backed out changeset 26fd6d0a1254 (bug 1369577) for failing xpcshell's test_ext_simple.js and test_ext_startup_cache.js on Android. r=backout 2017-06-30 01:01:13 +02:00
Andrew Swan
c140bd9d12 Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
MozReview-Commit-ID: 7nsYWdSTJCG
2017-06-09 13:49:07 -07:00
Bob Silverberg
4b8df9ba3a Bug 1374237 - Part 2: Declare all top-level functions in toolkit API files files via const., r=mixedpuppy
Also changed some function names to attempt to guarantee uniqueness across API files.

MozReview-Commit-ID: GnwWwTADF3a
2017-06-21 14:29:37 -04:00
Bob Silverberg
caeeda9764 Bug 1282981 - Implement management.get and getAll, r=mixedpuppy
This updates the existing implementation of browser.management.getAll to allow both themes and extensions
to be returned. It also adds an API for browser.management.get.

MozReview-Commit-ID: C1v2FqQqNux
2017-06-09 11:04:46 -04:00
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
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
Shane Caraveo
4611875e9c Bug 1336908 implement management APIs needed for theme management, r=aswan
MozReview-Commit-ID: 8tZpCE3nXGr
2017-05-04 11:40:02 -07:00
Kris Maglione
884009911d Bug 1350522: Part 2 - Convert toolkit APIs to lazy loading. r=aswan
MozReview-Commit-ID: 8TbTIM4WX2d
2017-03-31 19:36:00 -07:00
Bob Silverberg
17f3bb9df7 Bug 1220136 - WebExtensions support chrome.management.uninstallSelf, r=kmag
MozReview-Commit-ID: L80ynbuFr7U
2016-09-07 10:06:01 -04:00
Phil Ringnalda
5cc38dcb0f Back out 73e11489018d (bug 1220136) for Windows failures in test_ext_management_uninstall_self.js 2016-09-03 11:03:29 -07:00
Bob Silverberg
df4cc09083 Bug 1220136 - WebExtensions support chrome.management.uninstallSelf, r=kmag
MozReview-Commit-ID: L80ynbuFr7U
2016-08-15 15:32:36 -04:00
Rob Wu
812e170fe8 Bug 1287010 - Make environment of Context explicit. r=billm
- Add `envType` to BaseContext.
 - Pass an explicit envType to all `registerSchemaAPI` invocations.
 - The factories passed to `registerSchemaAPI` will be split up later, so
   that content scripts (`content_child`) and addon pages can share
   common implementations.
 - The factories that implement the addon API will also be split up,
   to separate code running in the main process (`addon_parent`) from
   code running in a child process (`addon_child`).
 - Remove the use of a hardcoded list of `namespaces` from ProxyContext.
   Now `envType` is used to specify whether an API should be activated.

MozReview-Commit-ID: Jiff8HIwG92
2016-08-16 15:51:50 -07:00
Ryan VanderMeulen
2b652f9a60 Bug 1295082 - Fix merge bustage. a=bustage 2016-08-19 10:13:02 -04:00
Ryan VanderMeulen
576edfd1fd Merge inbound to m-c. a=merge 2016-08-19 09:52:53 -04:00
Rob Wu
6efdd88867 Bug 1295082 - Put Extension in BaseContext r=kmag
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.

And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.

MozReview-Commit-ID: BgsGGCPQxJR
2016-08-15 01:04:58 -07:00
Bob Silverberg
5ca0acc7d4 Bug 1283116 - Implement chrome.management.getSelf. r=kmag
MozReview-Commit-ID: Bj9ZyF1meED
2016-08-18 11:52:31 -04:00
Sebastian Hengst
faa8a50b5b Backed out changeset c45e5c5015e3 (bug 1283116) for missing test path for added test test_ext_management.js. r=backout 2016-08-18 17:28:09 +02:00
Bob Silverberg
8372f1f445 Bug 1283116 - Implement chrome.management.getSelf. r=kmag
MozReview-Commit-ID: Bj9ZyF1meED
2016-08-18 09:13:08 -04:00
Sebastian Hengst
c7a498ffbd Backed out changeset 0ce1cc39aa3d (bug 1295082) for timing out in test_ext_schemas_api_injection.js. r=backout 2016-08-18 16:47:09 +02:00
Rob Wu
6189daa99f Bug 1295082 - Put Extension in BaseContext r=kmag
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.

And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.

MozReview-Commit-ID: BgsGGCPQxJR
2016-08-15 01:04:58 -07:00
Wes Kocher
cc1de99fa7 Backed out changeset d0ba9997681a (bug 1283116) for android xpcshell failures a=backout 2016-08-17 16:00:47 -07:00
Bob Silverberg
d886594163 Bug 1283116 - Implement chrome.management.getSelf, r=kmag
MozReview-Commit-ID: Bj9ZyF1meED
2016-08-17 17:03:39 -04:00
Bob Silverberg
876abdf297 Bug 1285537 - Create schema for the management API, r=aswan
MozReview-Commit-ID: EXmIv7TwmaK
2016-07-18 17:15:54 -04:00