Ryan VanderMeulen
7ada7a56fb
Bug 1295082 - Fix merge bustage. a=bustage
2016-08-19 10:13:02 -04:00
Ryan VanderMeulen
01c4e8cc1b
Merge inbound to m-c. a=merge
2016-08-19 09:52:53 -04:00
Rob Wu
2cc8f66f57
Bug 1295082 - Minor fixups for experimental WebExtensions APIs r=kmag
...
- Remove unused registerAPI and registerPrivilegedAPI
- Generate the APIs just once.
- Fix typo in addon ID.
MozReview-Commit-ID: rdiiIxHMsm
--HG--
extra : rebase_source : aede9c63e0f19d5b4c97022c0254b07603277aef
2016-08-18 13:58:30 -07:00
Rob Wu
3451c2f756
Bug 1295082 - BaseContext.extensionId -> BaseContext.extension.id r=kmag
...
MozReview-Commit-ID: 2tFVUwjyJQu
--HG--
extra : rebase_source : 07ea6252ab49d992ff17db77dea5840732f478c4
2016-08-16 14:29:52 -07:00
Rob Wu
bacc209644
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
--HG--
extra : rebase_source : 7aa9fb7a53e057e8d3d8c477bd6821f8344c571a
2016-08-15 01:04:58 -07:00
Bob Silverberg
ed19eb105f
Bug 1283116 - Implement chrome.management.getSelf. r=kmag
...
MozReview-Commit-ID: Bj9ZyF1meED
--HG--
extra : rebase_source : 39a9ff4fa944a19d851d3f047ef363ac9c521be8
2016-08-18 11:52:31 -04:00
Rob Wu
0077f92ec3
Bug 1295473 - Fix return type of {tabs,runtime}.sendMessage r=billm
...
The tabs.sendMessage and runtime.sendMessage implementations behave like
an async function: They take a callback parameter and return a promise.
So they should be handled by |callAsyncFunction|, not
|callFunctionNoReturn|.
This fixes the issue for background pages, but not for content scripts
because sendMessage is not implemented as a schema at the moment. This
will also be fixed once content script APIs are generated via Schemas.
MozReview-Commit-ID: 9p1hvOP0KSm
--HG--
extra : rebase_source : 7fc804e52184d59cc1dae2f299c644ed13d8a3c7
2016-08-15 23:53:24 -07:00
Wes Kocher
65dd7b1d3c
Backed out changeset d0ba9997681a (bug 1283116) for android xpcshell failures a=backout
2016-08-17 16:00:47 -07:00
Bob Silverberg
1075768ad9
Bug 1283116 - Implement chrome.management.getSelf, r=kmag
...
MozReview-Commit-ID: Bj9ZyF1meED
--HG--
extra : rebase_source : 86be57023640ef43d40f33f2fd604d3f39178da8
extra : source : aa58e53b263c0c74c7bca57d861c904d12d59698
2016-08-17 17:03:39 -04:00
Sebastian Hengst
274c9cf54e
Backed out changeset d71c400313a2 (bug 1293132) for failing test_ext_schemas_api_injection.js on Android's Sets test. r=backout
2016-08-18 18:27:34 +02:00
Sebastian Hengst
2164cd95c8
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
Sebastian Hengst
3b39ae834c
Backed out changeset dc7b09331202 (bug 1295082)
2016-08-18 16:46:30 +02:00
Sebastian Hengst
ba87856051
Backed out changeset 7c4c98ac6b3f (bug 1295082)
2016-08-18 16:46:26 +02:00
Rob Wu
e33e39b554
Bug 1293132 - Document contract for Schemas.inject and Schemas.normalize r=kmag
...
MozReview-Commit-ID: KgSrgHttwrI
--HG--
extra : rebase_source : 1cf288a7d0ce1c5d9dc7276b4f1710d0acb4187b
2016-08-07 18:36:36 -07:00
Rob Wu
a3c3c29726
Bug 1295082 - Minor fixups for experimental WebExtensions APIs r=kmag
...
- Remove unused registerAPI and registerPrivilegedAPI
- Generate the APIs just once.
- Fix typo in addon ID.
MozReview-Commit-ID: rdiiIxHMsm
--HG--
extra : rebase_source : 080d9b6de6fc2f256d953b5266a2c36ee9e56205
2016-08-16 14:31:28 -07:00
Rob Wu
62ec179344
Bug 1295082 - BaseContext.extensionId -> BaseContext.extension.id r=kmag
...
MozReview-Commit-ID: 2tFVUwjyJQu
--HG--
extra : rebase_source : 7091f5f8f52b158912fb503626a20d82db2142f8
2016-08-16 14:29:52 -07:00
Rob Wu
dfc11d6f00
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
--HG--
extra : rebase_source : 9a85d95f0c147198938b86c57127f6e7403fd53c
2016-08-15 01:04:58 -07:00
Rob Wu
8a0b0a5460
Bug 1288901 - Create ExtensionContext at document-element-inserted r=billm
...
MozReview-Commit-ID: 9ZQWmNjoAXA
--HG--
extra : rebase_source : d62d5169df1549d576e71bbc9ad51ecf0b4add9b
2016-08-07 19:10:01 -07:00
Rob Wu
6cea2d2df8
Bug 1288901 - Destroy ExtensionContext at inner window destruction instead of unload r=billm
...
MozReview-Commit-ID: 4JI7PpAj9xd
--HG--
extra : rebase_source : 7b4a4f1e18dd52bf7c2f430d31ebe2b5f1928fab
2016-08-07 19:09:56 -07:00
Rob Wu
9d122431e2
Bug 1288901 - Hide inactive extension views from getViews r=billm
...
When we close the ExtensionContext at inner-window-destroyed instead of
unload, the browser_ext_getViews.js test fails due to the extension view
appearing again in getViews() immediately after "closing" the extension
button popup. With this change that test passes again.
MozReview-Commit-ID: A4gn66sFZa9
--HG--
extra : rebase_source : bce1b255224336f5ad6249a800edf40c5c064015
2016-08-08 18:34:24 -07:00
Rob Wu
65acb9a681
Bug 1290157 - Always pass an array to tabs.executeScript on success r=kmag
...
MozReview-Commit-ID: Ctw8RUtfEZC
--HG--
extra : rebase_source : 7f76c1c99b5948463e5bfa0f7270fe50f6e95a88
2016-08-09 00:28:47 -07:00
Rob Wu
0765167097
Bug 1287626,1288279 - Make IDs unique across processes r=billm
...
MozReview-Commit-ID: 78xgt8wqbng
--HG--
extra : rebase_source : 2f88ba3d4c8198038f2ce3f849bad2baca48df4a
2016-08-10 16:23:56 -07:00
Wes Kocher
88bc8189f9
Merge m-c to autoland, a=merge
2016-08-15 14:54:25 -07:00
Luca Greco
87980ec799
Bug 1290901 - [webext] Add xpcshell test cases on nested namespaces and null/empty api objects. r=aswan
...
MozReview-Commit-ID: HKh3gXTk09H
--HG--
extra : rebase_source : 4c2fa93c8fb43682ed4674bc7fe27ef2b1464efb
2016-08-02 04:00:46 +02:00
Luca Greco
aa6d7d1c94
Bug 1290901 - [webext] Allow APIs implementation to return null when the API should not be injected in a context. r=aswan
...
needed to be able to return null when the registered schema API should not be available
based on the context type instead of WebExtensions permissions.
MozReview-Commit-ID: G8w8ZYzmA7S
--HG--
extra : rebase_source : 7cacd2d5b5c0e1ef354e2cef19c7d809cc632470
2016-08-02 04:00:06 +02:00
Luca Greco
cf2a1dcaeb
Bug 1290901 - [webext] Allow "events" and "properties" in SubModuleType defined in JSON schema. r=aswan
...
MozReview-Commit-ID: Pd0pMu2VB0
--HG--
extra : rebase_source : a65366a003a10c06b9974014b006ca50bccc47fa
2016-07-21 17:20:25 +02:00
Luca Greco
d59eaef91b
Bug 1290901 - [webext] Handle nested namespaced API schema. r=aswan
...
MozReview-Commit-ID: H26E8ZwLrqJ
--HG--
extra : rebase_source : d3eaba631b4f3aca55e0edb037776c13a319934d
2016-08-15 15:34:43 +02:00
Robert Helmer
bcf92a01fd
Bug 1279012 - implement onUpdateAvailable and runtime.reload() for WebExtensions r=aswan
...
MozReview-Commit-ID: KywrVkcRhzp
--HG--
extra : rebase_source : e51f67f76f3b3ac845b2d2f3ba8c36005c43c2c1
2016-08-02 09:37:01 -07:00
Wes Kocher
e9097643d5
Merge inbound to central, a=merge
2016-08-12 13:44:29 -07:00
Kris Maglione
026f92fc96
Bug 1292369: Null out contentWindow properties when they point to a different inner window than the context belongs to. r=billm
...
MozReview-Commit-ID: LYQRxpU9vI8
--HG--
extra : rebase_source : 88aa9e5eb14d22696126c26f960edbc40e923b89
extra : histedit_source : 01ff56be73b884fe73f4543b875acf37a1469b3d
2016-08-04 16:18:25 -07:00
Kris Maglione
d16036cec9
Bug 1293700: Make console object available to WebExtension internals. r=aswan
...
MozReview-Commit-ID: GyD4uo95gt6
--HG--
extra : rebase_source : a1bb70bbc186c76d5c0437530662b0754516ea7b
extra : histedit_source : d8bf619ce3d39987b2850223ccb3f28a82cbc532
2016-08-09 12:40:25 -07:00
Rob Wu
38597ef1d7
Bug 1293126 - Remove Schemas.load from content's ExtensionContext r=kmag
...
MozReview-Commit-ID: JOToEC2Aokp
--HG--
extra : rebase_source : 23c867bf9f5bc4de4261e7d2ab3717557ba79bee
2016-08-07 17:59:58 -07:00
Rob Wu
bb96ed46e5
Bug 1288276 - Add tests for background page context r=billm
...
MozReview-Commit-ID: 8FsN8NoCreW
--HG--
extra : rebase_source : 0199e6c5ee92de23304bf00338698a213f80849a
2016-08-07 19:09:37 -07:00
Rob Wu
c35dc1dca7
Bug 1288276 - Close proxy context upon page reload, with tests r=billm
...
MozReview-Commit-ID: HB65DfQTGXd
--HG--
extra : rebase_source : c00cdcf8d11f80b1f69f4958b9035e343c2b134b
2016-08-07 19:09:27 -07:00
Bob Silverberg
ceb06cac74
Bug 1285537 - Create schema for the management API, r=aswan
...
MozReview-Commit-ID: EXmIv7TwmaK
--HG--
extra : rebase_source : 01ac96558bed9e752298557794cf60fb40c34518
extra : source : 1b7557775b6a5e2ef94fd6f257b76644794f5f75
2016-07-18 17:15:54 -04:00
Rob Wu
9069fff35f
Bug 1197451 - Add clipboardWrite permission r=billm
...
MozReview-Commit-ID: 6d1mQSVWRPe
--HG--
extra : rebase_source : 2f19bab5c9d6db25c60b2b19c06c7027384a04ca
2016-07-08 17:19:17 -07:00
Andrew Swan
b904b2d437
Bug 1286908 Remove id allocation from SpecialPowers loadExtension() r=kmag
...
Prior to this change, SpecialPowers used the extension id to identiy
extension instances in inter-process messaging. This required that
an id be allocated from the content process side when loadExtension()
was called, but that made it impossible to test code that exercises the
code path in the AddonManager that allocates ids for extensions that do
not include an id in the manifest (it also made the loadExtension() api
clunky).
With this change, SpecialPowers allocates an internal identifier for
messaging, but this identifier is separate from extension ids.
Confusingly, we still store the actual extension id in an id property
on the object returned by loadExtension(), but there are enough tests
that reference this that it would be unnecessarily disruptive to get
rid of it so it stays for now...
MozReview-Commit-ID: G6xk1mBJJL8
--HG--
extra : rebase_source : a0891e5ba308972c35813f55274badf9edde62f7
extra : source : e8818ef3c28489e196d1db92cabf224861b693c9
2016-08-02 16:04:37 -07:00
Kris Maglione
617494218f
Bug 1290117: Call sendMessage response callback when there are no replies. r=robwu
...
MozReview-Commit-ID: 1BYD1CgZmvD
--HG--
extra : rebase_source : dc6297a85062c6713fa808f935ec7051d8668dc1
extra : amend_source : e398638f70f95835c7a8f8e94ea6945fa763ccb6
2016-08-06 14:21:10 -07:00
Kris Maglione
947c1cf7ba
Bug 1289527: Hide browserAction and pageAction namespaces when relevant manifest entries are missing. r=aswan
...
MozReview-Commit-ID: 2gx0pLkHaVJ
--HG--
extra : rebase_source : 94ab5fbc632aedee4dc8261145bc8832ae31f53d
2016-08-06 14:43:58 -07:00
Kris Maglione
4f1b1dda0b
Bug 1225215: [webext] Raise the expected errors when given invalid tab IDs. r=aswan
...
MozReview-Commit-ID: E5G0GmVhzLh
--HG--
extra : rebase_source : 5c6624b9d2d06109a1b047ad48dcac7e9405ee59
extra : amend_source : fb23020f7d2772f56fabc61f2e32f7d9c4c2f52a
2016-02-26 17:56:30 -08:00
Andrew Swan
0245be301b
Bug 1293721 Handle options_ui properly when id isn't immediately available r=kmag
...
MozReview-Commit-ID: JQC8rZwUkXG
--HG--
extra : rebase_source : 3fe3808971a2a97a32bd70dbce0f477ad4007f0c
2016-08-09 13:40:57 -07:00
Andrew Swan
fa3c0fac00
Bug 1213990 Clear storage when webextension is uninstalled r=kmag
...
MozReview-Commit-ID: BeMOxOCSeru
--HG--
extra : rebase_source : 3eb7fc4e61fe1ce698e22e25bd05fc779a6cf7a8
2016-08-01 16:30:18 -07:00
Andrew Swan
d7af10177b
Bug 1213990 Convert getExtensionUUID to UUIDMap r=kmag
...
MozReview-Commit-ID: 9VVNa0pjx8g
--HG--
extra : rebase_source : d62e8289c127afe762a6af71fecb4e15c08272ca
2016-08-07 09:53:36 -07:00
Andrew Swan
956647e2c9
Bug 1213990 Do immediate uninstall for test webextensions r=kmag
...
MozReview-Commit-ID: 9vcAfPhRYFi
--HG--
extra : rebase_source : c10b7e927eb0d0e12f70d9e06f77d1b56fa405fc
2016-07-22 10:16:55 -07:00
Kris Maglione
73b1b5f221
Bug 1263011: Part 2 - Implement WebExtensions Experiments prototype. r=aswan
...
MozReview-Commit-ID: 4KO4cCLRsLf
--HG--
extra : rebase_source : 40e5ec808e557e845a771bb21e8863a8edcd4faf
2016-08-05 14:20:54 -07:00
Kris Maglione
b022382989
Bug 1263011: Part 1 - Refactor Extension and ExtensionData to use ES6 classes. r=aswan
...
MozReview-Commit-ID: f5NqRuPLU7
--HG--
extra : rebase_source : 209033bc3f6cf4b9aafb8530f7681584ca046601
2016-06-17 16:02:16 +01:00
Kris Maglione
c9c66a60a7
Bug 1291199: Retry subprocess perf tests on failure. r=aswan
...
MozReview-Commit-ID: 9PDT9tcYFqf
--HG--
extra : rebase_source : 6c69e13162a5849cb7cd0205ed94da322c158f38
2016-08-02 15:37:34 -07:00
Kris Maglione
0dba25a0da
Bug 1288979: Always convert badge background color to a ColorTuple. r=aswan
...
MozReview-Commit-ID: CWmaa9wwQLD
--HG--
extra : rebase_source : aa8eaa19bad2b825c818abd29172f75fa84368dd
2016-08-04 14:50:52 -07:00
Kris Maglione
60ab72068a
Bug 1290598: Move slower native messaging tests to a separate unit. r=aswan
...
MozReview-Commit-ID: 2kXbNae1bmR
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_native_messaging.js => toolkit/components/extensions/test/xpcshell/test_ext_native_messaging_unresponsive.js
extra : rebase_source : 78b52ed4262ce8b2d262de7578519d9725ab14ec
extra : source : 577158be08e8c1211ffa1198a21e3c059f98f477
2016-07-29 14:35:04 -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