Commit Graph

51 Commits

Author SHA1 Message Date
Kris Maglione
93e84eda48 Bug 1513366: Part 5 - Migrate extension process script to a JSM. r=aswan
This simplifies things all around, and gets rid of one more unnecessary
component registration.
2018-12-12 17:58:19 -08:00
Kris Maglione
12808f301b Bug 1372406: Stop misusing import-globals-from in extension API scripts. r=aswan
MozReview-Commit-ID: FTkcmuguOwq
2018-03-25 21:20:17 -07:00
Margareta Eliza Balazs
6f3465c977 Backed out changeset 6af40fb76692 (bug 1372406) for Doc lint failure in builds/worker/checkouts/gecko/docs-out/html/main/_staging/python/mach.commands.rst on a CLOSED TREE 2018-03-28 07:26:10 +03:00
Kris Maglione
908b434d49 Bug 1372406: Stop misusing import-globals-from in extension API scripts. r=aswan
MozReview-Commit-ID: FTkcmuguOwq
2018-03-25 21:20:17 -07:00
Tomislav Jovanovic
f187bd307d Bug 1386427 - Part 3: Add storage and pkcs11 NativeManifest types r=kmag
MozReview-Commit-ID: 62MoqNLTxic
2017-09-16 05:30:13 +02:00
Kris Maglione
5b5382fb8b Bug 1387907: Part 3 - Merge ext-browser.js and ext-utils.js. r=mixedpuppy
MozReview-Commit-ID: CmOax5b5Gki
2017-08-06 18:20:25 -07:00
Kris Maglione
ab61453747 Bug 1387907: Part 2 - Store computed module data in the startup cache. r=mixedpuppy
MozReview-Commit-ID: 4PV4z870GTb
2017-08-06 18:04:28 -07:00
Kris Maglione
34e726f1c4 Bug 1387789: Convert ExtensionTabs.jsm to ext-tabs-base.js. r=mixedpuppy
This moves it to the same compartment as the code that it interfaces with the
most often, and allows for much more effective JIT optimizations.

MozReview-Commit-ID: FZcogI4d4rv
2017-08-05 18:42:01 -07:00
Kris Maglione
c04c15bd76 Bug 1368102: Part 5 - Move static content script matching into C++. r=mixedpuppy,zombie
MozReview-Commit-ID: Co04MoscqMx
2017-06-04 15:38:11 -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
Andrew Swan
fc72911ff3 Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy
2017-03-24 13:55:09 -07:00
Sebastian Hengst
e33b75e3f1 Backed out changeset d1628b66e5f8 (bug 1197420) 2017-03-25 17:39:38 +01:00
Andrew Swan
a151659a43 Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy
2017-03-24 13:55:09 -07:00
Phil Ringnalda
bb0cc6a131 Backed out 5 changesets (bug 1197420) for test_ext_permissions.js and test_chrome_ext_permissions.html timeouts on Fennec
CLOSED TREE

Backed out changeset 8a0125e00903 (bug 1197420)
Backed out changeset 925e3a9499ee (bug 1197420)
Backed out changeset 46e135035f10 (bug 1197420)
Backed out changeset 440bab141509 (bug 1197420)
Backed out changeset 3e690bbe8b5a (bug 1197420)
2017-03-24 20:43:24 -07:00
Andrew Swan
1ab93c4095 Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy
2017-03-24 13:55:09 -07:00
Sebastian Hengst
7b11b686c6 Backed out changeset 7df6cc66a2eb (bug 1197420) 2017-03-24 20:56:10 +01:00
Andrew Swan
925ea0071d Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy
2017-03-23 21:48:03 -07:00
Matthew Wein
da5fad5d77 Part 2: Bug 1295807 - Implement the Proxy API. r=kmag
MozReview-Commit-ID: KCoak15Mic8
2017-03-03 02:16:01 +00:00
Ryan VanderMeulen
c9103ccfc6 Backed out changeset a9beac770cec (bug 1295807) 2017-03-06 16:47:24 -05:00
Matthew Wein
d49e921235 Part 2: Bug 1295807 - Implement the Proxy API. r=kmag
MozReview-Commit-ID: KCoak15Mic8
2017-03-03 02:16:01 +00:00
Sebastian Hengst
31ed29fb9b Backed out changeset 3ae228897932 (bug 1295807) 2017-03-05 20:17:42 +01:00
Matthew Wein
b55d4608af Part 2: Bug 1295807 - Implement the Proxy API. r=kmag
MozReview-Commit-ID: KCoak15Mic8
2017-03-03 02:16:01 +00:00
Wes Kocher
e992104f74 Backed out 2 changesets (bug 1295807) for build bustage a=backout
Backed out changeset 1b162d4857b5 (bug 1295807)
Backed out changeset 1a9f4c3c782d (bug 1295807)

MozReview-Commit-ID: A7E4wtTcBNM
2017-03-02 18:19:10 -08:00
Matthew Wein
eb2b58e1bb Part 2: Bug 1295807 - Implement the Proxy API. r=kmag
MozReview-Commit-ID: CtSYWl8lWHM
2017-03-01 15:37:09 +00:00
Mike de Boer
fcbaae1469 Bug 1330349 - Part 1 - move the new theme WebExtension API to the toolkit collection of APIs. r=aswan
MozReview-Commit-ID: LERYdJHNvxW
2017-03-02 14:22:14 +01:00
Sebastian Hengst
80293821cd Backed out changeset 86fae94513cd (bug 1330349) for failing mochitest browser_bug591465.js and xpcshell test test_webextension_theme.js. r=backout on a CLOSED TREE 2017-03-02 00:03:10 +01:00
Mike de Boer
6265f537f9 Bug 1330349 - Part 1 - move the new theme WebExtension API to the toolkit collection of APIs. r=aswan
MozReview-Commit-ID: D2SwtSu1VZw
2017-03-01 17:57:13 +01:00
Sebastian Hengst
fac70eb6bc Backed out changeset 5c2a88e35ffc (bug 1330349) for failing xpcshell test test_dss.js. r=backout 2017-03-01 20:09:01 +01:00
Mike de Boer
f8071d3fbe Bug 1330349 - Part 1 - move the new theme WebExtension API to the toolkit collection of APIs. r=aswan
MozReview-Commit-ID: D2SwtSu1VZw
2017-03-01 17:57:13 +01:00
Shane Caraveo
3f052b895e Bug 1310427 support protocol handlers, r=kmag
MozReview-Commit-ID: 7sHh8YZWe3f
2017-02-24 11:20:20 -08:00
Bob Silverberg
a8478b79ad Bug 1312802 - Implement chrome.privacy API, r=aswan
MozReview-Commit-ID: 5DoGnYb945Z
2017-02-15 17:32:24 -05:00
Shane Caraveo
f737079118 Bug 1203233 implement geolocation permission, r=aswan,florian
MozReview-Commit-ID: 8V7bNyeGZNh
2017-02-04 16:10:50 -08:00
Sebastian Hengst
492a487c04 Backed out changeset 6dfd1abb7e94 (bug 1203233) for failing test-oop-extensions/test_ext_geolocation.html. r=backout 2017-02-02 20:04:33 +01:00
Shane Caraveo
c0dba88a1c Bug 1203233 implement geolocation permission, r=aswan,florian
MozReview-Commit-ID: Kk5KUdJhcoL
2017-02-02 09:47:46 -08:00
Andrea Marchesini
60a9d8c123 Bug 1322856 - Expose ContextualIdentities (aka containers) to WebExtensions - part 1, r=kmaglione 2016-12-17 18:41:02 +01:00
Sebastian Hengst
d273b12326 Backed out changeset 5a145b21bd64 (bug 1322856) for failing own test test_ext_contextual_identities.js. r=backout 2016-12-16 23:52:11 +01:00
Andrea Marchesini
40b3b9a35c Bug 1322856 - Expose ContextualIdentities (aka containers) to WebExtensions - part 1, r=kmaglione 2016-12-16 22:01:24 +01:00
Luca Greco
89a4aa4c82 Bug 1309906 - part2: provide existent APIs to the devtools contexts. r=kmag
MozReview-Commit-ID: L6YOpnMPVFf
2016-11-04 12:41:12 +01:00
Shane Caraveo
77f48e21d2 Bug 1305421 - Implement chrome.identity, r=kmag
MozReview-Commit-ID: LCAbodtV4XZ
2016-11-14 13:02:02 -08:00
Kris Maglione
d93e64da44 Bug 1316780: Part 2 - Remove ext-test.js. r=aswan
MozReview-Commit-ID: HGv8t0LZK4K
2016-11-11 15:23:17 -08:00
Rob Wu
b1b009afcb Bug 1287007 - Move background page API logic to child r=billm
MozReview-Commit-ID: iGROahhkhn
2016-09-05 22:34:44 -07:00
Rob Wu
0e978724ec Bug 1287007 - Introduce ChildAPIManager to addon code r=billm
This is the bare minimum to separate the generation of addon_parent and
addon_child APIs. Now it is possible to have methods with the same name
but different implementations in the parent and child.

Many APIs are not compatible with the proxied API implementation, so
they temporarily fall back to directly invoking the parent API, just as
before this commit.

MozReview-Commit-ID: fwuZUvD8tY
2016-09-05 18:57:38 -07:00
Rob Wu
ab47bf4a5d Bug 1287007 - Fix cross-process browser.storage.local serialization r=billm
- Lazily initialize file IO-specific stuff in ExtensionStorage.jsm,
  and limit this work to the main process.

- Add local versions of the `storage.local.get` and `storage.local.set`
  implementations that perform sanitization (without the change, values
  are improperly serialized over IPC).

- Copied the `backgroundScript` test from xpcshell/test_ext_storage.js
  to mochitest/test_ext_storage_content.html because they should behave
  identical. Before this patch the test failed due to IPC serialization
  issues, now the test passes.
  Note that the old test also passes with the changes.

MozReview-Commit-ID: 8J8CCdwMACN
2016-09-04 19:19:17 -07:00
Rob Wu
28a2ff2afa Bug 1287007 - Allow local implementations to call remote implementations r=billm
- Add callParentFunctionNoReturn / callParentAsyncFunction to
  ChildAPIManager to implement remote calls.

- Add in-process browser.test implementation that uses this.

- Add tests to verify that the browser.test.assert* methods with
  the `allowAmbiguousOptionalArguments` schema attribute are working
  with objects that cannot be passed as-is over IPC.
  (except test.sendMessage, because stringifying the arguments has an
   observable impact on test behavior)

MozReview-Commit-ID: 6cFVgmFfU93
2016-09-04 02:29:48 -07:00
Shane Caraveo
e36a2af7b2 Bug 1298211 - Implement chrome.topSites, r=aswan
MozReview-Commit-ID: I043WQoDbrf
2016-10-19 13:52:27 -07:00
Rob Wu
9cfd0fcca8 Bug 1298979 - move tabs.sendMessage/connect to child process r=billm
- Use the frame's message manager to direct messages via the
  ProxyMessenger to the right tab instead of directly to the tab.
- Put the implementation in a separate file that is only loaded in
  child processes (in the future).
- Explicitly list all addon-process specific files in a new category
  instead of reusing the content one.

MozReview-Commit-ID: 8oIMx9ol7Tl
2016-08-28 20:07:46 -07:00
Rob Wu
f600b2cf99 Bug 1287010 - Use schema-generated extension, split ext-extension.js r=billm
- This was the last non-schema-generated API in content scripts.

MozReview-Commit-ID: FaIOCHoircf
2016-08-18 19:19:40 -07:00
Rob Wu
0167c8c6a2 Bug 1287010, 1286712 - Use schema-generated runtime API, split ext-runtime.js r=billm
- Use schema-generated runtime API for content scripts instead of
  untyped API.
- Move logic that cannot be run in the main process to a new file.

Together with the previous patch that migrated the i18n API, this
concludes the fix for bug 1286712.

MozReview-Commit-ID: A3yG0x1kjwx
2016-08-18 18:15:37 -07:00
Rob Wu
4aa1ab5d36 Bug 1287010 - Use schema-generated i18n for all contexts r=billm
Use schema-generated i18n API for both content script and
addon contexts, instead of just the addon context.

MozReview-Commit-ID: AKDAFxNv6Zs
2016-08-20 15:49:20 -07: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