Kris Maglione
0401146db9
Bug 987512: Part 2 - Remove promise wrappers from AddonTestUtils. r=rhelmer
...
MozReview-Commit-ID: GyPguoX4r3d
2016-12-17 13:47:37 -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
Ethan Glasser-Camp
244ce12521
Bug 1319742 - UUIDs should be strings, not objects, r=markh
...
`generateUUID()` returns an `nsID`, which is not exactly the same as a
UUID. `nsID`s can be converted to strings using `toString()`, but if
you use `JSON.stringify()`, they become `{}`. Object comparison in JS
performs identity comparison, which would be useless even if the UUIDs
were sensible, which they aren't. As a result, trying to sync keyrings
always failed, because it always seemed like UUIDs had changed, even
when they hadn't.
Because it never occurred to me that UUIDs wouldn't be strings, I
never even wrote a test for this. Correct this, and fix the test.
Thanks to :vasilica_mihasca and :markh for reporting and diagnosing this.
MozReview-Commit-ID: EthxkFFwRbQ
2016-11-29 14:15:55 -05:00
Kris Maglione
7eab9e39f9
Bug 1319452: Part 1 - Load background page in private browsing mode during permanent private browsing. r=billm
...
MozReview-Commit-ID: KXA7xlq8Voc
2016-11-22 12:07:59 -08:00
Ethan Glasser-Camp
57d1272373
Bug 1253740 - Handle password resets more correctly, r=markh
...
MozReview-Commit-ID: 1mSvbsYP9fV
2016-09-30 12:12:58 -04:00
Ethan Glasser-Camp
17e5ad725d
Bug 1253740 - Define checkSyncKeyRing() which reuploads keys when passwords change, r=markh
...
MozReview-Commit-ID: B5Ptj4MGAC
2016-10-03 19:19:13 -04:00
Ethan Glasser-Camp
01011fd94d
Bug 1253740 - Hash extension ID to obfuscate installed add-ons, r=bsilverberg,kmag
...
MozReview-Commit-ID: ASBrDxIq2lF
2016-07-28 12:20:42 -04:00
Ethan Glasser-Camp
32c03ceb3d
Bug 1253740 - Introduce extensionIdToCollectionId, r=bsilverberg,kmag
...
MozReview-Commit-ID: 5nDVtleknyN
2016-07-27 16:16:09 -04:00
Ethan Glasser-Camp
1c16eba2cc
Bug 1253740 - Add code that syncs and tests, r=bsilverberg,kmag,markh
...
MozReview-Commit-ID: 8pm2jG92hCs
2016-09-08 14:16:09 -04:00
Ethan Glasser-Camp
7f289b0749
Bug 1253740 - Introduce extension-storage engine with a sanity test, r=markh
...
Note that this "enables" the engine using a pref, even though it might
not be ready yet, so that the tests can pass.
MozReview-Commit-ID: AZ0TVERiQDU
2016-09-08 14:23:12 -04:00
Michiel de Jong
f4b60082d3
Bug 1253740 - Implement storage.sync, r=bsilverberg,kmag
...
MozReview-Commit-ID: 5v9nYBTgekj
2016-08-11 18:16:37 -04:00
Wes Kocher
f17d46cc2b
Backed out 9 changesets (bug 1253740) for xpcshell failures a=backout
...
Backed out changeset 903890f218dd (bug 1253740)
Backed out changeset 1b13fe394b66 (bug 1253740)
Backed out changeset e1312ab53299 (bug 1253740)
Backed out changeset 5b5338a2baeb (bug 1253740)
Backed out changeset d3d89d4e2d87 (bug 1253740)
Backed out changeset 96da5e6944b8 (bug 1253740)
Backed out changeset 4fbff333994f (bug 1253740)
Backed out changeset 653788e146f2 (bug 1253740)
Backed out changeset b98fa03d8c15 (bug 1253740)
2016-11-11 18:59:24 -08:00
Ethan Glasser-Camp
377f8b2ad2
Bug 1253740 - Handle password resets more correctly, r=markh
...
MozReview-Commit-ID: 1mSvbsYP9fV
2016-09-30 12:12:58 -04:00
Ethan Glasser-Camp
9966c5b1d5
Bug 1253740 - Define checkSyncKeyRing() which reuploads keys when passwords change, r=markh
...
MozReview-Commit-ID: B5Ptj4MGAC
2016-10-03 19:19:13 -04:00
Ethan Glasser-Camp
1edddc87a9
Bug 1253740 - Hash extension ID to obfuscate installed add-ons, r=bsilverberg,kmag
...
MozReview-Commit-ID: ASBrDxIq2lF
2016-07-28 12:20:42 -04:00
Ethan Glasser-Camp
521d41e86d
Bug 1253740 - Introduce extensionIdToCollectionId, r=bsilverberg,kmag
...
MozReview-Commit-ID: 5nDVtleknyN
2016-07-27 16:16:09 -04:00
Ethan Glasser-Camp
492b52f8a9
Bug 1253740 - Add code that syncs and tests, r=bsilverberg,kmag,markh
...
MozReview-Commit-ID: 8pm2jG92hCs
2016-09-08 14:16:09 -04:00
Ethan Glasser-Camp
a5715ea3a2
Bug 1253740 - Introduce extension-storage engine with a sanity test, r=markh
...
Note that this "enables" the engine using a pref, even though it might
not be ready yet, so that the tests can pass.
MozReview-Commit-ID: AZ0TVERiQDU
2016-09-08 14:23:12 -04:00
Michiel de Jong
a1fdb6f3ff
Bug 1253740 - Implement storage.sync, r=bsilverberg,kmag
...
MozReview-Commit-ID: 5v9nYBTgekj
2016-08-11 18:16:37 -04:00
Wes Kocher
e40b3bdc43
Merge mozilla-central to autoland a=merge
2016-11-11 14:10:32 -08:00
Carsten "Tomcat" Book
cabaa5540f
Merge mozilla-central to mozilla-inbound
2016-11-11 16:43:07 +01:00
Kris Maglione
d25b4ecf0f
Bug 1316396: Part 1 - Reorganize parent, child, common, and test code into more appropriate modules. r=aswan
...
MozReview-Commit-ID: 5WMt69GoN3K
2016-11-10 12:35:22 -08:00
Kris Maglione
b73015d895
Bug 1315872: Refactor tests that check for promise rejection to use assertRejects. r=aswan
...
MozReview-Commit-ID: 1fBE7B2OdH7
2016-11-07 22:04:49 -08:00
Andrew Swan
df2e69b512
Bug 1313980 Avoid listening on browser-specific MM with connectNative() r=kmag
...
MozReview-Commit-ID: Al57DUrys63
2016-11-10 15:17:51 -08:00
Kris Maglione
970653dbb7
Bug 1313956: Async all the tests. r=aswan
...
MozReview-Commit-ID: CyNCfEsDD42
2016-11-07 21:03:14 -08:00
Kris Maglione
4bd88237a3
Bug 1315575: Part 2 - Stop generating multiple sets of schema bindings for proxy contexts. r=aswan
...
MozReview-Commit-ID: 2VqYscQAAF6
2016-11-07 22:21:01 -08:00
Matthew Wein
c68d7f947f
Bug 1247435 - Add support for runtime.onStartup r=kmag
...
MozReview-Commit-ID: F4leEN59vQe
2016-10-19 18:42:27 +01:00
Kris Maglione
cdaccd617b
Bug 1312690: Lazily initialize binding implementation objects. r=aswan
...
MozReview-Commit-ID: E8K6In6JtWO
2016-10-30 20:24:12 -07:00
Kris Maglione
bec1b361f5
Bug 1312690: Lazily initialize extension APIs. r=aswan
...
MozReview-Commit-ID: 2ofzT6wPvus
2016-11-02 19:21:04 -07:00
Jared Wein
b6817d7876
Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
...
MozReview-Commit-ID: 1mhCWplknyN
2016-11-07 22:34:25 -05:00
Iris Hsiao
d24e67dbe4
Backed out changeset f6f28be8d8f2 (bug 1315781) for XPCShell test timed out
2016-11-10 14:53:46 +08:00
Jared Wein
0c41af265f
Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
...
MozReview-Commit-ID: DnpVQRrG9Ec
2016-11-07 22:34:25 -05:00
Phil Ringnalda
facccde1cf
Backed out 9 changesets (bug 1253740) for multiple xpcshell bustages
...
Backed out changeset e8475fb54d7d (bug 1253740)
Backed out changeset 5e234fe1099c (bug 1253740)
Backed out changeset 486a200fd6f0 (bug 1253740)
Backed out changeset 97a6ee1fddfc (bug 1253740)
Backed out changeset 5cf17eb2fefe (bug 1253740)
Backed out changeset f890f42b44c4 (bug 1253740)
Backed out changeset 28cc5db83380 (bug 1253740)
Backed out changeset eb537ef54d55 (bug 1253740)
Backed out changeset 8f100caf82bf (bug 1253740)
2016-10-29 20:58:58 -07:00
Phil Ringnalda
ad90cd0593
Bug 1253740 followup, placate eslint
2016-10-29 20:50:58 -07:00
Matthew Wein
65938122a3
Bug 1252871 - Add support for runtime.onInstalled r=aswan
...
MozReview-Commit-ID: 3wDtv0g0BpO
2016-10-19 10:38:29 +01:00
Ethan Glasser-Camp
fb63bc2d9b
Bug 1253740 - Handle password resets more correctly, r=markh
...
MozReview-Commit-ID: 1mSvbsYP9fV
2016-09-30 12:12:58 -04:00
Ethan Glasser-Camp
60f3fb0907
Bug 1253740 - Define checkSyncKeyRing() which reuploads keys when passwords change, r=markh
...
MozReview-Commit-ID: B5Ptj4MGAC
2016-10-03 19:19:13 -04:00
Ethan Glasser-Camp
7db5a8182c
Bug 1253740 - Hash extension ID to obfuscate installed add-ons, r=bsilverberg,kmag
...
MozReview-Commit-ID: ASBrDxIq2lF
2016-07-28 12:20:42 -04:00
Ethan Glasser-Camp
e2e0b7f08e
Bug 1253740 - Introduce extensionIdToCollectionId, r=bsilverberg,kmag
...
MozReview-Commit-ID: 5nDVtleknyN
2016-07-27 16:16:09 -04:00
Ethan Glasser-Camp
1906038df8
Bug 1253740 - Add code that syncs and tests, r=bsilverberg,kmag,markh
...
MozReview-Commit-ID: 8pm2jG92hCs
2016-09-08 14:16:09 -04:00
Ethan Glasser-Camp
18b14f5d04
Bug 1253740 - Introduce extension-storage engine with a sanity test, r=markh
...
Note that this "enables" the engine using a pref, even though it might
not be ready yet, so that the tests can pass.
MozReview-Commit-ID: AZ0TVERiQDU
2016-09-08 14:23:12 -04:00
Michiel de Jong
37cc033be3
Bug 1253740 - Implement storage.sync, r=bsilverberg,kmag
...
MozReview-Commit-ID: 5v9nYBTgekj
2016-08-11 18:16:37 -04:00
Wes Kocher
d88274da9b
Backed out 3 changesets (bug 1252871) for test_ext_all_apis.html bustage a=backout CLOSED TREE
...
Backed out changeset b3a08a040c8a (bug 1252871)
Backed out changeset c2a511511a72 (bug 1252871)
Backed out changeset 9c2c3780aa4c (bug 1252871)
2016-10-28 14:24:13 -07:00
Rob Wu
f4fd56d7fb
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
2016-09-24 13:45:02 +02:00
Rob Wu
21eaf53406
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
2016-09-24 13:25:56 +02:00
Rob Wu
47ea3eae17
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
2016-09-24 13:18:48 +02:00
Rob Wu
11e38e39b6
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
2016-09-24 13:03:20 +02:00
Rob Wu
185ab2435d
Bug 1299411 - Propagate errors to port.onDisconnect via port.error r=kmag
...
In Chrome, runtime.lastError is set when the port is disconnected
due to an error.
Here in Firefox we choose to set a new property "error" on the port
if the port disconnected due to an error.
Since onDisconnect fires at most once, port.error is set only once.
MozReview-Commit-ID: EPaVtV4WkcQ
2016-09-30 22:42:28 +02:00