Commit Graph

92 Commits

Author SHA1 Message Date
Andrew Swan
2680b7869a Bug 1217944 - Part 2 - Support wildcards in web_accessible_resources r=kmag
MozReview-Commit-ID: Ln6JJ5lxc3w
2016-04-06 13:20:23 -07:00
Andrew Swan
bec569cacf Bug 1262003 - Back out changeset 983702f6874c. r=kmag
MozReview-Commit-ID: 10GVdKTFjiR
2016-04-04 16:09:32 -07:00
bsilverberg
b0f25e4d7a Bug 1254291 - Add schema for the notifications API, r=kmag
Also update ext-notifications.js to use a Map instead of a Set

MozReview-Commit-ID: JBKM9fZXpah
2016-03-29 15:22:18 -04:00
Andrew Swan
db03dcbe4e Bug 1255562 - Allow applications property to be in mozilla.json. r=mossop
MozReview-Commit-ID: 8w6s4bVgbxE
2016-03-17 04:56:31 -07:00
Wes Kocher
163dbd8362 Backed out changeset e5c63c3fb088 (bug 1254291) for apparently causing leaks in OSX m(5)
MozReview-Commit-ID: DGymVB5Vtw5
2016-03-16 16:20:23 -07:00
bsilverberg
9b9e10fa69 Bug 1254291 - Add schema for the notifications API, r=kmag
Also update ext-notifications.js to use a Map instead of a Set

Note that I am not sure whether the schema has been implemented exactly as we'd want. There are, for example, options in NotificationOptions that we will never use/support, so I'm not sure how to document that.

MozReview-Commit-ID: 5Di7klOdI6G
2016-03-15 17:36:54 +01:00
Kris Maglione
c19b091a55 Bug 1250784: Part 3 - [webext] Add suport for runtime.openOptionsPage. r=Mossop
MozReview-Commit-ID: 9izx4uX0Szd
2016-03-09 17:10:29 -08:00
Kris Maglione
e1b59246c8 Bug 1250784: Part 2 - [webext] Fix some issues that cause noisy tests. r=Mossop
MozReview-Commit-ID: 93NMinJpWRo
2016-03-09 17:26:27 -08:00
Kris Maglione
a59bc50ef9 Bug 1250784: Part 1 - [webext] Add support for options_ui via inline browsers in the Add-on Manager. r=Mossop
MozReview-Commit-ID: 9a999BJvDHD
2016-03-09 16:50:08 -08:00
Kris Maglione
e0795d5219 Bug 1220154, 1249830: Handle sendMessage replies with 0 and >1 listeners correctly. r=billm
MozReview-Commit-ID: 7lE7RaJcl7n
2016-03-04 15:40:56 -08:00
Andy McKay
158054ce83 Bug 1246732 - Add in alarms schema. r=kmag
MozReview-Commit-ID: BQTVhvqgilb
2016-03-02 16:06:10 -08:00
Kris Maglione
2d83ab587e Bug 1214955: [webext] Automatically localize all localizable manifest properties. r=billm
MozReview-Commit-ID: 2kvYT44NIE8
2016-02-29 19:34:49 -08:00
Matthew Wein
657500c828 Bug 1243602 - don't expose browser.* properties that lack required permissions. r=kmag 2016-02-24 18:08:59 -08:00
bsilverberg
e72c240afa Bug 1246748 - Complete the implementation of chrome.i18n.getUILanguage, r=kmag
Implement chrome.i18n.getUILanguage including tests

Add API to content scripts

MozReview-Commit-ID: IcDlLj8Et73
2016-02-18 07:50:17 -05:00
Kris Maglione
666cee3637 Bug 1248855 - [webext] Add "object-curly-spacing" ESLint rule and auto-fix errors. r=billm
MozReview-Commit-ID: BAZ2rRl7eSM
2016-02-16 20:10:00 -08:00
Bill McCloskey
10a764ce9d Bug 1246787 - Fix ESLint errors 2016-02-11 13:37:44 -08:00
Bill McCloskey
e0f8de3c70 Bug 1246787 - [webext] Add schema storage.json (r=kmag) 2016-02-11 13:04:31 -08:00
Bill McCloskey
563dbbc1fb Bug 1246730 - [webext] Add schema test.json (r=kmag) 2016-02-11 13:04:30 -08:00
Kris Maglione
3313a98dfd Bug 1234020: Part 3 - [webext] Remove promise<->callback compatibility workarounds. r=billm 2016-01-25 16:06:08 -08:00
Kris Maglione
627359e9d1 Bug 1234020: Part 2h.1 - [webext] Convert async API errors to rejected promises. r=billm 2016-02-10 17:01:38 -08:00
Kris Maglione
99819fa895 Bug 1244474: [webext] Part 2 - Make extra manifest properties/permissions warnings instead of errors. r=billm 2016-01-30 14:32:36 -08:00
Andrew Swan
e58d313f2b Bug 1156826 - Implement browser.runtime.setUninstallURL(). r=kmag 2016-02-08 16:00:25 -08:00
Andrew Swan
97ac807f6d Bug 1245678 - [webext] Add downloads API schema and implementation boilerplate. r=rpl 2016-02-05 09:56:37 -08:00
Kris Maglione
d70aaf9205 Bug 1231819: [webext] Implement the captureVisibleTab API. r=billm 2016-01-25 17:48:54 -08:00
Kris Maglione
c71b8aa2e6 Bug 1234020: Part 1 - [webext] Add initial binding-level promise<->callback support. r=billm 2016-02-01 19:20:13 -08:00
Kris Maglione
72237129ca Bug 1244805: [webext] Don't resolve relative URLs in manifests unless extension is running. r=billm 2016-02-01 11:02:02 -08:00
Kris Maglione
3c8a153057 Bug 1225715: Part 6 - Remove redundant manifest type checking from XPIProvider. r=Mossop 2016-01-21 23:36:53 -08:00
Kris Maglione
aaa7c2d387 Bug 1225715: Part 5 - Add schema for extension manifests. r=billm
This currently forbids unknown top-level schema properties, and unknown
permissions. In the future, I'd like to make those warnings rather than
errors, for compatibility purposes, but I think errors are fine for now.
2016-01-30 10:27:02 -08:00
Kris Maglione
cb2bf096f9 Bug 1190680: Part 2 - [webext] Add initial support for lastError callbacks. r=billm 2016-01-29 18:38:08 -08:00
Kris Maglione
47d18c471a Bug 1190680: Part 1 - [webext] Factor common extension context logic into a shared base class. r=billm 2016-01-29 18:39:29 -08:00
Kris Maglione
f7fb9d596b Bug 1210583: Part 2 - [webext] Support callbacks in tabs.executeScript/tabs.insertCSS. r=billm 2016-01-25 20:25:11 -08:00
Kris Maglione
b0279e6f59 Bug 1210583: Part 1 - [webext] Add support for cross-process messaging with async responses. r=billm 2016-01-27 12:57:21 -08:00
Luca Greco
e712f0a1a8 Bug 1214658 - Enable content script APIs into sub-frames pointed to a valid add-on url. r=kmag 2016-01-22 06:02:00 -05:00
Phil Ringnalda
ded78a88c1 Back out 3 changesets (bug 1214658) for b2g emulator timeouts in test_ext_contentscript_*
CLOSED TREE

Backed out changeset b76ab3324cd2 (bug 1214658)
Backed out changeset aee8341f15c7 (bug 1214658)
Backed out changeset 743d7567b280 (bug 1214658)
2016-01-23 13:06:49 -08:00
Luca Greco
a63e68c208 Bug 1214658 - Enable content script APIs into sub-frames pointed to a valid add-on url. r=kmag 2016-01-22 06:02:00 -05:00
Kris Maglione
a7301bf206 Bug 1235365: Parse WebExtension JSON files as UTF-8. r=billm 2016-01-09 16:53:24 -08:00
Kris Maglione
e91b36169d Bug 1190323: Part 1 - [webext] Fix @@extension_id locale string substitutions. r=billm 2016-01-08 16:26:22 -08:00
Fabrice Desré
a9e4990d14 Bug 1224703 - part 2: Enable tests on emulator r=billm 2016-01-05 15:37:06 -08:00
Bill McCloskey
994bef148c Bug 1228044 - [webext] Filter messages between extensions (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
1cf7392459 Bug 1208257 - [webext] runtime.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
37ea2fa726 Bug 1208257 - [webext] extension.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
c8337c42c8 Bug 1208257 - [webext] i18n.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
94d3769cef Bug 1208257 - [webext] idle.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
0553f0441b Bug 1208257 - [webext] tabs.json (r=kmag) 2015-12-06 08:50:24 -08:00
Bill McCloskey
1df9a55d1c Bug 1208257 - [webext] web_navigation.json (r=kmag) 2015-12-06 08:50:24 -08:00
Bill McCloskey
3814f48c83 Bug 1208257 - [webext] web_request.json (r=kmag) 2015-12-06 08:50:24 -08:00
Bill McCloskey
ae0c99ac6d Bug 1208257 - [webext] Extension.jsm support for schemas (r=kmag) 2015-12-06 08:50:24 -08:00
Kris Maglione
956fe582d0 Bug 1229874: Part 3 - Enable ESLint in WebExtension code. r=billm
The base .eslintrc is essentially a merge of the root Toolkit .eslintrc and
the devtools .eslintrc, with some minor changes to match our prevalent style.

For the most enforces the coding styles that we've been using most
consistently. There are a couple of significant differences, though:

 * The rule for opening brace alignment can only be applied globally, and
   doesn't make exceptions for top-level functions. I chose to turn it on, and
   change the brace style of existing top-level functions that violated it,
   since the rule seemed worth using, and that's the direction most Toolkit JS
   code has been headed anyway.

 * The rule for switch/case statements requires an added indentation level for
   case statements. Most of our switch statements did not use an extra level
   of indentation, and I initially wrote the rule to enforce that style, until
   I came across case statements that used blocks, and required the extra
   indentation level for sanity.
2015-12-02 16:58:53 -08:00
Kris Maglione
2e0886855c Bug 1229874: Part 2 - Fix the major errors detected by ESLint. r=billm 2015-12-02 16:58:24 -08:00
Kris Maglione
342e9bd17c Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm 2015-12-01 20:32:18 -08:00