Commit Graph

10 Commits

Author SHA1 Message Date
Kris Maglione
da08b6926c Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
MozReview-Commit-ID: CTX0TckLqoV
2017-04-07 13:39:06 -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
1ac8741081 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X
2017-01-26 20:00:33 -08:00
Phil Ringnalda
5781d2a09e Backed out 3 changesets (bug 1203330) for failures in test_delay_update_webextension.js
CLOSED TREE

Backed out changeset 2d42350d209a (bug 1203330)
Backed out changeset 3a12c51c3eca (bug 1203330)
Backed out changeset 31fac390e15d (bug 1203330)
2017-01-26 19:13:11 -08:00
Andrew Swan
8e5ca9edb5 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X
2017-01-26 13:43:12 -08: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
Kris Maglione
6694b0d1ce Bug 1316780: Part 3 - Capture the current unprivileged stack in browser.test.* assertion functions. r=aswan
MozReview-Commit-ID: AxjMeoodpTX
2016-11-11 15:25:30 -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
Kris Maglione
01bbe49261 Bug 1315872: Add browser.test.assertRejects and assertThrows. r=aswan
MozReview-Commit-ID: DKUlSVS2EvA
2016-11-07 22:03:15 -08: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