Commit graph

23 commits

Author SHA1 Message Date
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
Blake Winton
6866a9d937 Bug 1269081 - Only apply Firefox's default styles if the add-on author sets "browser_style" to true in the manifest. r=kmag.
MozReview-Commit-ID: JjH0sCkh1U7

--HG--
extra : rebase_source : 92b126d4acd77bb15bb7c952b82d4dd6156d5c2a
2016-05-02 10:59:36 -04: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
Kris Maglione
dce2b3c2cd Bug 1214955: [webext] Automatically localize all localizable manifest properties. r=billm
MozReview-Commit-ID: 2kvYT44NIE8

--HG--
extra : rebase_source : ebab864b517c2e576dde27cf1439cf2deadb0685
2016-02-29 19:34:49 -08:00
Kris Maglione
ba2e5f60f4 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
Kris Maglione
544b3cd429 Bug 1234020: Part 2h - [webext] Return promises from the pageAction API. r=rpl
--HG--
extra : commitid : q1OQLdF7VP
extra : rebase_source : 78a7a2cc0a73ae9f57c2a7111aeae96b5b8fef72
2016-02-01 18:16:00 -08:00
Kris Maglione
59c0ce29a5 Bug 1217129: Part 5 - [webext] Use CustomizableUI views for BrowserAction popups. r=gijs ui-r=bwinton
This version addresses some popup sizing bugs, and also a few other issues I
ran into when debugging Blake's problems:

 * The standalone popup needs a max width of 800px for Chrome compatibility,
   which is wider than our default max width.

 * I added a flex attribute to our browser so that it fills the entire space
   of the slide-in panel. This is only necessary for browsers with content
   that is shorter than the height of the panel when it gets its desired
   width, but becomes longer when it doesn't, so it didn't show up in my
   initial tests.

 * I also added an extra pixel to the width calculations, since I noticed that
   a lot of single lines of text were unexpectedly wrapping without it. I'll
   look into this more in a follow-up bug.

I also added some comments, and renamed a couple of variables, where things
seemed unclear.

The test changes are mostly just updates to older browser action tests to use
newer helpers, rather than ad-hoc events, to open/close/click the widgets. A
few tests also needed updates to explicitly close the panel when they were
done with it.

--HG--
extra : commitid : BhHv1aZSrBL
extra : rebase_source : 6fe0069ebd2f94b0ffd02ad757a799fbdff9226e
extra : source : 628af985c7eba7e4665a1b62f9a60f6a6fd39822
2016-01-15 15:14:25 -08:00
Kris Maglione
3284cbb0ee Bug 1217129: Part 4b - [webext] Use the extension name as the default title value for browserAction/pageAction popups. r=billm
This brings our behavior closer in line with Chrome's.

--HG--
extra : commitid : DaDofvmQEZW
extra : rebase_source : cbeda3889362511c5002f2710c063a2c83047d3c
extra : source : 7ad8b56958c54787313ecbe60eb1e8fbafb2f376
2016-01-15 21:43:26 -08:00
Carsten "Tomcat" Book
cc15740ff7 Backed out 8 changesets (bug 1217129) for test failures in browser_ext_pageAction_context.js
Backed out changeset dc5742de0823 (bug 1217129)
Backed out changeset 106365a3847c (bug 1217129)
Backed out changeset 628af985c7eb (bug 1217129)
Backed out changeset 7ad8b56958c5 (bug 1217129)
Backed out changeset 71f46fe62f59 (bug 1217129)
Backed out changeset 7d8dee4c335b (bug 1217129)
Backed out changeset 3b5fb2845c3b (bug 1217129)
Backed out changeset 93266f211716 (bug 1217129)
2016-01-18 09:08:35 +01:00
Kris Maglione
afba49d5ab Bug 1217129: Part 5 - [webext] Use CustomizableUI views for BrowserAction popups. r=gijs ui-r=bwinton
This version addresses some popup sizing bugs, and also a few other issues I
ran into when debugging Blake's problems:

 * The standalone popup needs a max width of 800px for Chrome compatibility,
   which is wider than our default max width.

 * I added a flex attribute to our browser so that it fills the entire space
   of the slide-in panel. This is only necessary for browsers with content
   that is shorter than the height of the panel when it gets its desired
   width, but becomes longer when it doesn't, so it didn't show up in my
   initial tests.

 * I also added an extra pixel to the width calculations, since I noticed that
   a lot of single lines of text were unexpectedly wrapping without it. I'll
   look into this more in a follow-up bug.

I also added some comments, and renamed a couple of variables, where things
seemed unclear.

The test changes are mostly just updates to older browser action tests to use
newer helpers, rather than ad-hoc events, to open/close/click the widgets. A
few tests also needed updates to explicitly close the panel when they were
done with it.

--HG--
extra : commitid : 9OyRnaMTqn8
extra : rebase_source : efd28a49ca5961e2cf545420a81bd19b796d8957
2016-01-15 15:14:25 -08:00
Kris Maglione
5c12caa1dc Bug 1217129: Part 4b - [webext] Use the extension name as the default title value for browserAction/pageAction popups. r=billm
This brings our behavior closer in line with Chrome's.

--HG--
extra : commitid : 7X5knx0CtGm
extra : rebase_source : b301e9c568df0edb313b10cf06e2f7a9c23a6e78
2016-01-10 21:00:09 -08:00
Bill McCloskey
63346aac54 Bug 1208257 - [webext] page_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Kris Maglione
b729a30707 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.

--HG--
rename : devtools/.eslintrc => toolkit/components/extensions/.eslintrc
extra : commitid : 4aDZOi5MNPc
extra : rebase_source : f34ba43aeb8046a0c971cb76b76410497bd12b42
extra : source : 2a7eb4ef7b375e5fd52d843ca206a071367a6475
2015-12-02 16:58:53 -08:00
Kris Maglione
66c9592a32 Bug 1190688: Part 1 - [webext] Implement the activeTab permission. r=billm
--HG--
extra : commitid : 7CvbJtxVmuS
extra : rebase_source : 88dadc60ac17cd9036f85c81ac19dfb3db1d0c91
extra : source : 4a10c564dfca3189ab521c3ccfa92330163189b1
2015-12-01 20:37:41 -08:00
Wes Kocher
fdc2d1bcff Backed out 2 changesets (bug 1190688) for browser_ext_tabs_executeScript.js permatimeouts
Backed out changeset 1d5e9f3d094d (bug 1190688)
Backed out changeset 4a10c564dfca (bug 1190688)
2015-12-02 11:22:31 -08:00
Kris Maglione
de25656504 Bug 1190688: Part 1 - [webext] Implement the activeTab permission. r=billm
--HG--
extra : commitid : 3fCvT7O5Oax
extra : rebase_source : 6df43947daa552eb318bf74a3c71792889328618
2015-12-01 20:37:41 -08:00
Bill McCloskey
fd0aea8d56 Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag) 2015-11-12 08:19:45 -08:00
Kris Maglione
9dd208611e Bug 1197422 - Part 2: [webext] Implement the pageAction API. r=billm ui-r=bwinton
--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_icon.js => browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js
extra : commitid : GSQiN6Zykrs
extra : rebase_source : 45e056feb97f60592400568c6eeded4b7cc76ab5
2015-10-15 15:15:04 -07:00