Commit graph

21 commits

Author SHA1 Message Date
Kris Maglione
1338145ff4 Bug 1217129: Part 6 - [webext] Test browserAction popups in both the toolbar and in the menu panel. r=gijs r=billm
--HG--
extra : commitid : E032c8k3ujN
extra : rebase_source : c4a991bc2d9dd9ec90de5c39d6fdf7ea3a4f9695
extra : source : 106365a3847c66c2122563abb423c29685ea059c
2016-01-10 19:58:09 -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
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
ed68509b62 Bug 1217129: Part 6 - [webext] Test browserAction popups in both the toolbar and in the menu panel. r=gijs r=billm
--HG--
extra : commitid : 6dDqn4OyRZf
extra : rebase_source : a00cd5a4e1f7c22e2b45e0aaa3c1efe22ae5cb0b
2016-01-10 19:58:09 -08: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
09f2a22adf Bug 1239884: Part 2 - [webext] Force a GC after certain tests in debug mode to deal with timeout issues. r=billm
--HG--
extra : commitid : 2ebJbbI8V89
extra : rebase_source : 632b25203af39508240a7ed7053592f997f8d81f
2016-01-13 22:34:16 -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
5c5a4d1119 Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm
--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js => browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js
extra : commitid : iRaiDjAAti
extra : rebase_source : 3906f8f3ffaf91815f9463564b9e6243f443750c
extra : source : 1d5e9f3d094d075cfda767dd2108b07c7f8557de
2015-12-02 15:07:02 -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
0776c5fb47 Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm
--HG--
extra : commitid : EEVPrB3WgcX
extra : rebase_source : 98f6f3363287429c8211c28f50e5a8abb0a66a01
2015-12-01 20:47:08 -08:00
Kris Maglione
e5cf10f6e9 Bug 1212890: [webext] Implement browser.tabs.getCurrent. r=gabor
--HG--
extra : commitid : 1s2jDVvyZVV
extra : rebase_source : b014b7fb47a3a8e42c27bba5cbfcfaa568d4f08f
2015-11-24 19:04:00 -08:00
Kris Maglione
7214e18679 Bug 1218443: [webext] Fix some instances of window listeners not being added correctly. r=billm
--HG--
extra : commitid : EWbKyZP08Fs
extra : rebase_source : 3008f5a339c74af641f4a0d2f07942cb6acefb04
extra : source : 6fa3b2df62cc80058ea2f63834dcbdd6ec7caa36
2015-11-15 19:34:09 -08:00
Phil Ringnalda
b3918f8ac1 Back out 6fa3b2df62cc (bug 1218443) for browser_ext_pageAction_context.js leaks
CLOSED TREE
2015-11-17 22:38:20 -08:00
Kris Maglione
efe250798d Bug 1218443: [webext] Fix some instances of window listeners not being added correctly. r=billm
--HG--
extra : commitid : GkZzr4Rpp81
extra : rebase_source : 364da950cb8d50dcf990b529753d4e2cb3b0acf3
2015-11-15 19:34:09 -08:00
Luca Greco
a9764f9ff5 Bug 1213975 - add WebExtension tabs.onUpdated test case. r=billm 2015-10-26 04:54:00 +01:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Bill McCloskey
dd18632ad0 Bug 1202483 - [webext] Support ImageData for browser.browserAction.setIcon (r=gabor) 2015-09-23 17:18:32 -07:00
Phil Ringnalda
5b1ea9212a 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)

--HG--
rename : browser/components/extensions/test/browser/browser_ext_simple.js => browser/components/extensions/test/browser/browser_extensions_simple.js
rename : toolkit/components/extensions/test/mochitest/file_sample.html => toolkit/components/extensions/test/mochitest/file_contentscript_page1.html
2015-09-22 19:29:51 -07:00
Bill McCloskey
095d27b08a Bug 1202483 - [webext] Support ImageData for browser.browserAction.setIcon (r=gabor) 2015-09-22 16:09:22 -07:00