Commit graph

33 commits

Author SHA1 Message Date
Wes Kocher
3656974fa2 Bug 1337457 - ESlint fix a=bustage
MozReview-Commit-ID: 3HqVQVkN8hf
2017-03-02 10:54:52 -08:00
Rob Wu
148f2d5afd Bug 1337457 - Handle missing commands[*].suggested_key r=kmag
Defaulting to "" instead of null because Chrome too defaults to "".

MozReview-Commit-ID: 7pJYCzVR4f6

--HG--
extra : rebase_source : f23df13825cbb9c8d2e344db8b4a78b6d6d29120
2017-02-07 20:06:47 +01:00
Shane Caraveo
c5a8a0ef53 Bug 1338727 add command support for sidebar-action, r=aswan
MozReview-Commit-ID: Jp1cuTzsDz4

--HG--
extra : rebase_source : b323170662d5e8ac241314b2bb4210c8d4264af7
2017-02-14 16:24:03 -08:00
Kris Maglione
3fe8cbd2c9 Bug 1260548: Part 1 - Factor out the common functionality of the tabs API. r=aswan
MozReview-Commit-ID: AS7asn6nXzr

--HG--
extra : rebase_source : f81a28a979b6d1a76534343bed2029456cc6a2c7
2017-01-30 22:44:16 -08:00
Carsten "Tomcat" Book
dca07ffc3a merge mozilla-central to mozilla-inbound 2017-01-27 11:16:17 +01:00
Florian Quèze
b11907c7aa Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Andrew Swan
322ee1283f Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
MozReview-Commit-ID: A12TPwAYzTS

--HG--
extra : rebase_source : 10526ee923dc1eed24bac3c9b9c80c54b8e174e9
2017-01-26 11:27:03 -08:00
Phil Ringnalda
9447dfdbd4 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
2dde6b8e9b Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
MozReview-Commit-ID: A12TPwAYzTS

--HG--
extra : rebase_source : 3e034fba247132c3b7a92ce8f4656136c2313a20
2017-01-26 11:27:03 -08:00
Matthew Wein
98ce8031a3 Bug 1246034: Part 2 - [webext] Add support for _execute_browser_action. r=kmag
MozReview-Commit-ID: EIbPidn07qZ

--HG--
extra : rebase_source : 30ebf49ce314899877734e482bbd6ddf0971d037
2016-07-08 15:02:49 -07:00
Rob Wu
be3652cd57 Bug 1287010 - Make environment of Context explicit. r=billm
- Add `envType` to BaseContext.
 - Pass an explicit envType to all `registerSchemaAPI` invocations.
 - The factories passed to `registerSchemaAPI` will be split up later, so
   that content scripts (`content_child`) and addon pages can share
   common implementations.
 - The factories that implement the addon API will also be split up,
   to separate code running in the main process (`addon_parent`) from
   code running in a child process (`addon_child`).
 - Remove the use of a hardcoded list of `namespaces` from ProxyContext.
   Now `envType` is used to specify whether an API should be activated.

MozReview-Commit-ID: Jiff8HIwG92

--HG--
extra : rebase_source : 946a3c0009a4e3223c2d10044b3099a94c845394
2016-08-16 15:51:50 -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
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
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
Matthew Wein
525255f4a1 Bug 1287159 - Grant activeTab permission to the current tab when onCommand fires. r=kmag
MozReview-Commit-ID: ETwqDOBHCRS

--HG--
extra : rebase_source : 59c73f10fca5c5e9e9fd806d556a82433c609e9c
2016-07-25 14:42:23 -07:00
Matthew Wein
eaa94c242e Bug 1272198 - Add tests for accepted modifiers. r=kmag
MozReview-Commit-ID: KTLk7sMcsmt

--HG--
extra : transplant_source : %87%A0%24%7B%96GT%06w%83%BE%FA%C3%B0f%25T%D7%F05
2016-07-25 10:36:07 -07:00
Matthew Wein
73fad24130 Bug 1272133 - Fix runtime error thrown when no shortcut is found for the target platform. r=kmag
MozReview-Commit-ID: CzR64GL5mxn

--HG--
extra : rebase_source : 7ec1ea379a89383f21e5292345bbcd75e807b733
2016-07-25 11:18:12 -07:00
Pushpankar
c6670d980f Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao
--HG--
extra : rebase_source : 72d50e73baf595840a2aade57ae782e4c40d4c27
2016-07-16 10:20:04 +02:00
Kris Maglione
a1dac7caad Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : source : a00cf073f5c00380d4e42b13bc0cd3146b708845
extra : amend_source : d74ef90e88acbe62e33af3b5b9cf870d5c0a9d3e
2016-06-09 17:44:47 -07:00
Sebastian Hengst
f8035f62a8 Backed out changeset a00cf073f5c0 (bug 1279392) for failing mochitest test_ext_contentscript_create_iframe.html at least on Linux x64 opt. r=backout 2016-06-14 13:37:52 +02:00
Kris Maglione
b465305345 Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : rebase_source : cba877c0ef400917b0b7e5913895e64ebefb34b9
extra : amend_source : 6e943015e3e00854c431cbd653994a6734e66ce4
2016-06-09 17:44:47 -07:00
Kris Maglione
5d03979f6b Bug 1278733: Turn on JSDoc validation, and fix basic errors in existing comments. r=aswan
MozReview-Commit-ID: EZpOyvoi2h0

--HG--
extra : rebase_source : b03b211a1fe3aad3c760bd0f9235bbaaca171a9a
2016-06-07 18:36:19 -07:00
Matthew Wein
3f2b8481d4 Bug 1263560 - Accept whitespace in command API key names. r=kmag
MozReview-Commit-ID: IGQDs1RuE7w

--HG--
extra : transplant_source : %92xFZ%2C%0AH%28%5C%15%B6%288B%7F%98/%D0%BBZ
2016-04-14 22:39:50 -04:00
Dave Townsend
b6c94f538f Bug 1257246: Update webextension APIs for eslint 2. r=kmag
ESLint 2 now flags anonymous generator functions that don't match the
generator-star-spacing rule so this mostly is fixing that.

MozReview-Commit-ID: 5sLaF26sd0E

--HG--
extra : rebase_source : 6008f48c94e4a8e5bd2ed2f8a95e764e4aa39cdb
extra : histedit_source : 6f0151c184ee2e4288f3ec9c5a85a65e975d46e1
2016-04-05 11:30:51 -07:00
Matthew Wein
863d9f6ce1 Bug 1246035 - Add support for _execute_page_action r=kmag
MozReview-Commit-ID: LPQAC7uJTkr
2016-03-14 14:54:57 +01:00
Sebastian Hengst
53b1ca7a7f Backed out changeset 4a92742ac20d and ddf8219182fb (bug 1246035) for failing modified ddf8219182fb on OS X 10.6 opt M(bc2). r=backout 2016-03-25 23:14:25 +01:00
Matthew Wein
6bfb9ef781 Bug 1246035 - Add support for _execute_page_action. r=kmag
MozReview-Commit-ID: LPQAC7uJTkr

--HG--
extra : transplant_source : %9Fc%B4C%C75Nd%40.%EBj%25%8Cg%5B%B3%C0%E5F
2016-03-14 14:54:57 +01:00
Carsten "Tomcat" Book
df65ba1904 Backed out changeset 70960616621c (bug 1246035) for eslint failures
--HG--
extra : rebase_source : 1aabe3c342278594617826d065640425eb557b19
2016-03-18 10:04:15 +01:00
Matthew Wein
8b0e3b8eb2 Bug 1246035 - Add support for _execute_page_action. r=kmag
MozReview-Commit-ID: LPQAC7uJTkr

--HG--
extra : transplant_source : %85%1C%3D%2B%EF%E7%02ya%21/ad%A3%A4R%E9%13%0C%13
2016-03-14 14:54:57 +01:00
Matthew Wein
22fd2a0fc9 Bug 1246029 Implement chrome.commands.onCommand. r=kmag 2016-02-29 19:04:03 -08:00
Matthew Wein
c822f61ac1 Bug 1246028 Implement chrome.commands.getAll. r=kmag 2016-02-24 17:29:04 -08:00
Phil Ringnalda
dd373cbd2b Back out 6d8c09f110ee (bug 1246028) for landing before it got its nits picked 2016-02-24 18:40:42 -08:00
Matthew Wein
1db30ea608 Bug 1246028 - Implement chrome.commands.getAll. r=kmag 2016-02-23 16:13:16 -08:00