Commit Graph

277 Commits

Author SHA1 Message Date
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
Wes Kocher
4e87701a29 Backed out 2 changesets (bug 1193837) because the web extension tests are failing CLOSED TREE
Backed out changeset ebe2433705a5 (bug 1193837)
Backed out changeset c3307a5ac126 (bug 1193837)
2015-12-02 13:23:18 -08:00
Kris Maglione
b2dfad4ce8 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
Kris Maglione
d0b96575aa Bug 1192435: Support updates for WebExtensions. r=Mossop 2015-11-17 16:23:15 -08:00
Kris Maglione
55f968e981 Bug 1209184: Part 1a - [webext] Make localization work in content processes. r=billm 2015-11-21 12:07:14 -08:00
Kris Maglione
b5bd3fd0c7 Bug 1226423: Don't inject WebExtension APIs into documents without WebExtension principals. r=billm 2015-11-20 15:09:28 -08:00
Kris Maglione
ca794b0e54 Bug 1221415: [webext] Improve error checking and Chrome-compatibility of i18n API. r=billm 2015-11-15 16:54:41 -08:00
Kris Maglione
9ab3082ad4 Bug 1215893: [webext] Check capturing event listeners for the correct target. r=billm 2015-11-14 23:30:52 -08:00
Bill McCloskey
05bcca84b4 Bug 1208874 - [webext] Generate an extension-specific UUID (r=kmag) 2015-11-12 08:19:45 -08:00
Kris Maglione
cf7bb8dc0d Bug 1192433: Return an empty list rather than throwing an error when attempting to read a directory in an app: URL (fixes M1 bustage). r=trivial 2015-11-05 20:13:19 -08:00
Kris Maglione
924d082827 Bug 1192433: Part 2 - [webext] Allow loading and querying all available locales. r=billm 2015-10-30 12:09:55 +01:00
Kris Maglione
372384b5c1 Bug 1192433: Part 1 - [webext] Split Extension class to allow accessing data from non-running extensions. r=billm 2015-10-30 12:01:40 +01:00
J. Ryan Stinnett
687866dde2 Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Kris Maglione
118cdecae1 Bug 1197422 - Part 2: [webext] Implement the pageAction API. r=billm ui-r=bwinton 2015-10-15 15:15:04 -07:00
Kris Maglione
130e5a9d81 Bug 1197422 - Part 1: [webext] Use the correct URL for background page contexts. r=billm 2015-10-09 04:14:55 -07:00
Tom Schuster
98ee310377 Bug 1208563 - Implement chrome.extension.inIncognitoContext property for chrome/popups. r=billm 2015-10-16 20:54:16 +02:00