Commit Graph

57 Commits

Author SHA1 Message Date
Kris Maglione
51106a2f9e Bug 1258199: [webext] Return an empty string for missing keys in getMessage. r=aswan
MozReview-Commit-ID: KEQYq4nZbfk
2016-04-04 13:54:27 -07:00
Wes Kocher
c533b72e89 Backed out changeset c67309c62021 (bug 1258199) for xpcshell failures
MozReview-Commit-ID: FySkZPotDGU
2016-04-04 13:51:12 -07:00
Kris Maglione
3793854b24 Bug 1258199: [webext] Return an empty string for missing keys in getMessage. r=aswan
MozReview-Commit-ID: KEQYq4nZbfk
2016-03-28 17:21:06 +02: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
Till Schneidereit
e5576eec60 Bug 1254947 - Fix instanceof checks that assume promiseFromSomeGlobal instanceof otherGlobal.Promise succeeds. r=bz 2016-03-09 14:25:11 +01: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
Kris Maglione
d7334ea44a Bug 1248499: [webext] Implement tabs.detectLanguage. r=billm
MozReview-Commit-ID: F4GpSesj2ho
2016-02-26 13:20:28 -08:00
Kris Maglione
7a1a4278dd Bug 1248497 – Add promise support to the sendMessage APIs. r=billm
MozReview-Commit-ID: AZH9LUq8kGr
2016-02-15 17:37:19 -08:00
Matthew Wein
641e87d5e0 Bug 1246029 Implement chrome.commands.onCommand. r=kmag 2016-02-29 19:04:03 -08:00
Kris Maglione
936db59b45 Bug 1251892: Fix EventManager cleanup code. r=rpl
MozReview-Commit-ID: FUHnELOAeGw
2016-02-27 14:53:09 -08:00
Carsten "Tomcat" Book
3969e7dcc7 merge mozilla-inbound to mozilla-central a=merge 2016-02-29 11:35:30 +01:00
Ryan VanderMeulen
99821e9f61 Backout changeset 49ab89b42dbf (bug 1246029) for browser_ext_commands_onCommand.js permafail. 2016-02-28 19:30:09 -05:00
Luca Greco
fc3ac46ddc Bug 1227462 - tabs.create and tabs.update should check URLs using checkLoadURL. r=kmag
MozReview-Commit-ID: EKFRpoSuXrF
2016-02-25 18:13:59 +01:00
Matthew Wein
de65f6699e Bug 1246029 - Implement chrome.commands.onCommand. r=kmag 2016-02-26 23:51:19 -08:00
bsilverberg
da16bd6be4 Bug 1251289 - Fix chrome.i18n.getAcceptLanguages to *not* replace dashes with underscores in language codes. r=kmag
MozReview-Commit-ID: 1plfVzxwq3V
2016-02-25 13:18:16 -05:00
bsilverberg
1ba83c667a Bug 1213450 - Complete the implementation of chrome.i18n - getAcceptLanguages, r=kmag
Implement browser.i18n.getAcceptLanguages() including tests
Rebase against fx-team, resolving some conflicts
Fix eslint errors/warnings

MozReview-Commit-ID: 52sZWsIHbl4
2016-02-25 07:29:09 -05:00
bsilverberg
520cdab332 Bug 1246754 - Complete the implementation of chrome.i18n.detectLanguage, r=kmag
MozReview-Commit-ID: 7cvJj0QP5XO
2016-02-23 22:01:11 -05:00
Phil Ringnalda
8fcf6aa84e Back out 9466f6513f50 (bug 1213450) for timeouts in test_ext_i18n.html 2016-02-23 18:36:11 -08:00
bsilverberg
4cacadedfd Bug 1213450 - Complete the implementation of chrome.i18n - getAcceptLanguages, r=kmag
Implement browser.i18n.getAcceptLanguages() including tests

MozReview-Commit-ID: EeuxXvg0l3M
2016-02-18 08:59:57 -05:00
Carsten "Tomcat" Book
6d577cc76d Merge mozilla-central to fx-team 2016-02-19 12:08:37 +01: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
Matthew Wein
babfa923f9 Bug 1246031 - Utility for obtaining platform information. r=kmag 2016-02-17 15:14:28 -05:00
Andy McKay
102661d869 Bug 1238312 - implement tabs.duplicate. r=kmag
MozReview-Commit-ID: Fzd6BuAEgSl
2016-02-12 15:38:55 -08:00
Kris Maglione
1cd215bc66 Bug 1234020: Part 2a - [webext] Return promises from the background page APIs. r=rpl 2016-02-02 19:14:34 -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
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
Wes Kocher
e72149351a Bug 1217129 - ESLint fix r=me 2016-01-20 12:08:56 -08:00
Kris Maglione
e7180194c8 Bug 1217129: [webext] Follow-up: Fix race in pageAction tests. 2016-01-19 21:57:34 -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
Dave Townsend
a37b82025e Bug 1237340: Fix browser and toolkit eslint failures. r=Felipe 2016-01-06 10:10:35 -08:00
Bill McCloskey
5f7ffdd379 Bug 1224703 - part 1: fix the way we get the message manager r=fabrice 2016-01-05 15:37:01 -08:00
Bill McCloskey
994bef148c Bug 1228044 - [webext] Filter messages between extensions (r=kmag) 2015-12-23 12:29:39 -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
55f968e981 Bug 1209184: Part 1a - [webext] Make localization work in content processes. r=billm 2015-11-21 12:07:14 -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
Bill McCloskey
948f074381 Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag) 2015-11-12 08:19:45 -08: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
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
Luca Greco
8000faa588 Bug 1204575 - fix WebExtension EventManager fireFunc registering. r=billm r=gabor 2015-09-25 04:33:00 +02:00
Bill McCloskey
53ba768590 Bug 1202481 - [webext] Fix browser.runtime.onMessage reply handling (r=gabor) 2015-09-23 17:18:34 -07:00
Bill McCloskey
6567491b58 Bug 1202486 - [webext] Add test for browser.runtime.connect, fix a few bugs (r=gabor) 2015-09-23 17:18:33 -07:00
Bill McCloskey
9b6ceea392 Bug 1202478 - [webext] Run WebExtension callbacks asynchronously (r=gabor) 2015-09-23 17:18:29 -07:00
Phil Ringnalda
aaf72d29b9 Backed out 12 changesets (bug 1202482, bug 1202483, bug 1202481, bug 1202486, bug 1202479, bug 1202478, bug 1197475, bug 1203331, bug 1139860, bug 1202501, bug 1199473, bug 1190662) for Mulet mochitest-5 timeouts
CLOSED TREE

Backed out changeset 6503123e95dd (bug 1139860)
Backed out changeset b83bc163064d (bug 1203331)
Backed out changeset 2f501bd57cd2 (bug 1202481)
Backed out changeset 37e6ac7beb42 (bug 1202486)
Backed out changeset f9b6e99e620e (bug 1202483)
Backed out changeset 466af9f9baee (bug 1202482)
Backed out changeset 6be690e265a2 (bug 1202479)
Backed out changeset 57ff88bfccf4 (bug 1197475)
Backed out changeset 7e8c04ff6049 (bug 1202478)
Backed out changeset 525227997274 (bug 1202501)
Backed out changeset da317cdb79d3 (bug 1199473)
Backed out changeset 73b8ddd6dac9 (bug 1190662)
2015-09-22 19:29:51 -07:00
Bill McCloskey
fbb4583508 Bug 1202481 - [webext] Fix browser.runtime.onMessage reply handling (r=gabor) 2015-09-22 16:09:23 -07:00
Bill McCloskey
21c214de21 Bug 1202486 - [webext] Add test for browser.runtime.connect, fix a few bugs (r=gabor) 2015-09-22 16:09:22 -07:00
Bill McCloskey
0f033b5f70 Bug 1202478 - [webext] Run WebExtension callbacks asynchronously (r=gabor) 2015-09-22 16:09:21 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Bill McCloskey
69388b1d70 Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-04 09:45:01 -07:00
Carsten "Tomcat" Book
ebb221ac2d Backed out 11 changesets (bug 1201377, bug 1199800, bug 1197437, bug 1199832, bug 1199698, bug 1199842) for breaking browser_ext_tabs_executeScript.js test on a CLOSED TREE
Backed out changeset 8d8d73d3c3e1 (bug 1201377)
Backed out changeset 4ed8951e3f54 (bug 1199842)
Backed out changeset 5830178bc008 (bug 1199832)
Backed out changeset 4445c570fe49 (bug 1199698)
Backed out changeset 35fc1e25d167 (bug 1199800)
Backed out changeset 54c4c3bd2454 (bug 1199800)
Backed out changeset bd3112ce6b9b (bug 1199800)
Backed out changeset 701e56e18ca7 (bug 1199800)
Backed out changeset 4407d50a7995 (bug 1199800)
Backed out changeset af2fbe345712 (bug 1199800)
Backed out changeset 0a41d20fcf77 (bug 1197437)
2015-09-04 09:59:34 +02:00