Commit Graph

36 Commits

Author SHA1 Message Date
Tomislav Jovanovic
b2c8e48429 Bug 1386427 - Part 3: Add storage and pkcs11 NativeManifest types r=kmag
MozReview-Commit-ID: 62MoqNLTxic

--HG--
rename : toolkit/components/extensions/schemas/native_host_manifest.json => toolkit/components/extensions/schemas/native_manifest.json
extra : rebase_source : c6cd9f380c39c97b841f7dd2fdf4014286bcec41
2017-09-16 05:30:13 +02:00
Tomislav Jovanovic
74b5af87d6 Bug 1386427 - Part 2: Extract HostManifestManager to NativeManifests.jsm r=kmag
MozReview-Commit-ID: GrVBZbkTfrB

--HG--
rename : toolkit/components/extensions/NativeMessaging.jsm => toolkit/components/extensions/NativeManifests.jsm
rename : toolkit/components/extensions/test/xpcshell/test_native_messaging.js => toolkit/components/extensions/test/xpcshell/test_native_manifests.js
extra : rebase_source : c83a79d2af724c5d6d15a6ca09330cc6173a8853
2017-09-15 20:14:56 +02:00
Tomislav Jovanovic
8a81eff787 Bug 1386427 - Part 1: Add XRE*NativeManifests locations to dirsvc r=kmag
MozReview-Commit-ID: DoJIP6QZ5AX

--HG--
extra : rebase_source : 8351f66a4ddbe8a7c5a7fdf0dcc96288d060f53a
2017-09-12 18:58:23 +02:00
Kris Maglione
0ecfcbc93e Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
MozReview-Commit-ID: APoFwUhDFdj

--HG--
extra : rebase_source : 15761873b91efaf1d338b6361bf7168ab4348e0d
2017-08-09 13:03:36 -07:00
Kris Maglione
600b6a2dff Bug 1356546: Part 2 - Use StructuredCloneHolder as transport for MessageManager messages. r=aswan
MozReview-Commit-ID: 3z1uAAbsgTj

--HG--
extra : rebase_source : 42dd1c12709705b0e6fae996ddc7f8bc56240bb0
2017-06-04 20:46:38 -07:00
Rob Wu
7802980fa2 Bug 1307852 - Pass ID of calling add-on to native messaging app r=aswan
This allows native messaging binaries to identify the add-on that
invoked the native messaging app, in case more than one add-on is
allowed to launch the native messaging app.

MozReview-Commit-ID: GgjwfJDbBkW

--HG--
extra : rebase_source : b60d33e9f3936f26b8792ef5cd1f9fea304f29ae
2017-06-01 19:08:02 +02:00
Florian Quèze
5e3539e504 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
Alexandre Poirot
c90bccb53a Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop
MozReview-Commit-ID: 49JI7NtLwKK

--HG--
extra : rebase_source : 7fb015f56be94c4bbe2d56506653f069c9ad8dd3
2017-04-27 17:58:09 +02:00
Wes Kocher
c7d27df096 Merge mozilla-central to autoland a=merge 2016-11-11 14:10:32 -08:00
Kris Maglione
5669335dd9 Bug 1316396: Part 1 - Reorganize parent, child, common, and test code into more appropriate modules. r=aswan
MozReview-Commit-ID: 5WMt69GoN3K

--HG--
rename : toolkit/components/extensions/ExtensionUtils.jsm => toolkit/components/extensions/ExtensionCommon.jsm
rename : toolkit/components/extensions/Extension.jsm => toolkit/components/extensions/ExtensionParent.jsm
rename : toolkit/components/extensions/Extension.jsm => toolkit/components/extensions/ExtensionTestCommon.jsm
extra : rebase_source : 43ddde9dccf5b89777cf07bacf71816076e7b57f
2016-11-10 12:35:22 -08:00
Andrew Swan
19d6f8a342 Bug 1313980 Avoid listening on browser-specific MM with connectNative() r=kmag
MozReview-Commit-ID: Al57DUrys63

--HG--
extra : rebase_source : c12b8733ccc156fbc39cd7e57d61690a658e8f80
2016-11-10 15:17:51 -08:00
Rob Wu
059e445a69 Bug 1299411 - Error messages for native messaging r=aswan
- Combine the errors for a non-existing app and lacking permissions to
  avoid information leakage.
- Do not treat normal application exit as an error.
- Create errors in the right context.
- Add tests that check the error messages.

MozReview-Commit-ID: HxBpeCSyyGN

--HG--
extra : rebase_source : f9406cec6bddd4ab740f5042dd7cc64d4a63e447
2016-09-24 13:45:02 +02:00
Rob Wu
0f0355e922 Bug 1299411 - Move native messaging to child process r=kmag
Move `runtime.connectNative` and `runtime.sendNativeMessage` to
`addon_child`. Note: This does not change the behavior for launching the
native app, it is still launched from the main process.

Now ExtensionUtils's Port is also used for native messaging ports. Now
the behavior of `runtime.connect` and `runtime.connectNative` are
identical from the extension's perspective.
In particular:
- `disconnect()` does not throw when called again (bug 1287229).
- `onDisconnect` is called with error messages (tests will be added in
  the next commit).

MozReview-Commit-ID: AyU9amiLeoL

--HG--
extra : rebase_source : be44523ca1b6555f5c356f12790c896e781d809f
2016-09-24 13:25:56 +02:00
Rob Wu
13c2b6a47f Bug 1299411 - s/on/once/ in NativeApp's sendMessage r=aswan
This communicates more clearly that we expect only one message/event.

MozReview-Commit-ID: 8jDYBVwqQtz

--HG--
extra : rebase_source : acae1570537b17027901253afc2344ffabd7a9ee
2016-09-24 13:22:31 +02:00
Rob Wu
edfaa70caa Bug 1299411 - Remove extension param from NativeApp r=aswan
The extension is always available as `context.extension`, so do not
unnecessarily pass the extension as a separate parameter.

MozReview-Commit-ID: 9OaestUAGVk

--HG--
extra : rebase_source : b1f408d3750152477195655c5a777e1ff4682a09
2016-09-24 13:18:48 +02:00
Rob Wu
cce894192b Bug 1299411 - separate serialization from sending r=aswan
Serialization of the message should happen in the same process as the
extension context, whereas sending the message should be in the same
process as the owner of the native messaging host.
With webext-oop, the former is an addon process and the latter the
main process. Therefore it is necessary to separate the two roles.

MozReview-Commit-ID: 8BJZmn2QjLJ

--HG--
extra : rebase_source : d0665885c304b45c2f44e82f29c1a8260fe454c5
2016-09-24 13:03:20 +02:00
Kris Maglione
11b59ae527 Bug 1298810: Pass Port object to listeners on native messaging ports. r=rpl
MozReview-Commit-ID: 1saUOB1jyE1

--HG--
extra : rebase_source : 8831300c38bcca9283c25049c463d2b6cf41380d
extra : histedit_source : 3171045999ce6619f5e77af328c90ab3f8fbf994
2016-08-29 13:12:16 -07:00
Kris Maglione
8fd3690336 Bug 1290598: Migrate native messaging tests to xpcshell. r=aswan
MozReview-Commit-ID: 4Uz73l8qGVE

--HG--
extra : rebase_source : f24e9cc3bd9b235a429d5bbe8e6cad509495f24f
extra : source : 486639a0f3ca05afaf0250b514c3641805f1f497
2016-08-02 17:39:51 -07:00
Carsten "Tomcat" Book
4e7abad957 Backed out changeset 486639a0f3ca (bug 1290598) 2016-08-03 15:12:31 +02:00
Kris Maglione
5bca7590fc Bug 1290598: Migrate native messaging tests to xpcshell. r=aswan
MozReview-Commit-ID: 4Uz73l8qGVE

--HG--
extra : rebase_source : 648a0975f8245e42fb1c4afadb841d9990f84714
2016-08-02 17:39:51 -07:00
Kris Maglione
2cb56b7b11 Bug 1288912: Add tests for native messaging round trip time. r=aswan
MozReview-Commit-ID: 6gOpZhvAZUE

--HG--
extra : rebase_source : 14cb6641ae00087c173da3d39c278802ac779a7b
2016-07-28 20:54:40 -07:00
Andrew Swan
5238b6aa15 Bug 1282680 Always use 64-bit registry for native messaging r=kmag
MozReview-Commit-ID: 99JSqHP17v8

--HG--
extra : rebase_source : e40f16680f578ca803522a5194d3be415d37256f
2016-07-18 13:34:19 -07:00
Andrew Swan
d1a5ac7b3f Bug 1283010 Fix windows registry paths for native messaging r=kmag
MozReview-Commit-ID: GdaDycckptp

--HG--
extra : rebase_source : 2d752e8e6106e393c10127da11f605744d5fc5f3
2016-06-29 21:47:06 -07:00
Andrew Swan
5b775d5271 Bug 1272522 Handle stderr of native app r=kmag
MozReview-Commit-ID: 5qGw83uTYTu

--HG--
extra : rebase_source : 8cefe9f2661782b45000ff704db2ea7aaa46ac68
2016-07-06 14:57:56 -07:00
Phil Ringnalda
17eab3dd64 Backed out changeset 6a8acb16142d (bug 1283010) for Windows failures in test_native_messaging.js 2016-07-06 19:18:31 -07:00
Andrew Swan
e5645e5c78 Bug 1283010 Fix windows registry paths for native messaging r=kmag
MozReview-Commit-ID: GdaDycckptp

--HG--
extra : rebase_source : f5d6b445108feeb233a10122f53eac7e4fb1521d
2016-06-29 21:47:06 -07:00
Andrew Swan
dbbcc4f12d Bug 1281995 Support relative paths in host manifest on windows r=kmag
MozReview-Commit-ID: DaqYdPGQC3A

--HG--
extra : rebase_source : 4afc5dc11b145283c92aa58e0670dfd38c881489
2016-06-27 14:52:57 -07:00
Carsten "Tomcat" Book
60fc89ed14 Backed out changeset d4379d1513fd (bug 1272522) for failures in test_ext_alarms.html 2016-07-04 06:25:51 +02:00
Andrew Swan
55e7a44550 Bug 1272522 Handle stderr of native app r=kmag
MozReview-Commit-ID: 5qGw83uTYTu

--HG--
extra : rebase_source : 748b4d02defbdb412cb81709e2ded27347b1d797
2016-06-17 07:27:07 -07:00
Andrew Swan
1eac929388 Bug 1270360 Implement runtime.sendNativeMessage() r=kmag
MozReview-Commit-ID: 93FaGaYto5w

--HG--
extra : rebase_source : 520ff9d6bb6c8d9262c87103090236fcf1923b49
2016-06-08 14:52:35 -07:00
Andrew Swan
cedc1d8eaf Bug 1274708 Use Context.jsonStringify() in connectNative r=kmag
MozReview-Commit-ID: J7q49nLg4F3

--HG--
extra : rebase_source : 9bdddffa43811fdff10fa75ea77bc0641012c9a3
2016-06-16 10:10:54 -07:00
Andrew Swan
4024904cc7 Bug 1270359 Implement connectNative on windows r=kmag
MozReview-Commit-ID: IHJuGt2Us8e

--HG--
extra : rebase_source : ca7374a13ad3c7c46ea8e0e4c73acaab0fa0a336
2016-06-09 15:10:54 -07:00
Andrew Swan
80434719cd Bug 1270357 Implement runtime.connectNative() r=kmag
MozReview-Commit-ID: Fo4BxEo3xus

--HG--
extra : rebase_source : 7fb28ebb89474c2f65bf844b3337fd2906cd0ad3
2016-06-08 20:23:40 -07:00
Phil Ringnalda
8d1174f9a3 Back out 3 changesets (bug 1270357) for test_chrome_ext_native_messaging.html timeouts
CLOSED TREE

Backed out changeset 2e602689376d (bug 1270357)
Backed out changeset e1979d928c7c (bug 1270357)
Backed out changeset e0f9b54febc8 (bug 1270357)
2016-06-08 20:35:32 -07:00
Andrew Swan
68dfb9f08d Bug 1270357 Implement runtime.connectNative() r=kmag
MozReview-Commit-ID: Fo4BxEo3xus

--HG--
extra : rebase_source : 069f9b25d13db2c8cd8a3a4199391e5fad68104d
2016-06-08 13:51:01 -07:00
Andrew Swan
74021d63c0 Bug 1270356 Part 2: Implement parsing and validation of native host manifests r=kmag
MozReview-Commit-ID: 3aXlBAgV4ti

--HG--
extra : rebase_source : ca0bb5ec8e93ef806d2c3a662f4863400595c0fa
2016-05-17 15:17:52 -07:00