Commit graph

75 commits

Author SHA1 Message Date
Kris Maglione
1d020acead Bug 1246034 - Part 1: [webext] Add a helper function to trigger a browserAction. r=jaws
MozReview-Commit-ID: JUW6oUpWiN4

--HG--
extra : rebase_source : 91473d3b5278df43694709fe732b176696f25151
2016-08-05 18:35:39 -07:00
fiveNinePlusR
f69df51c78 Bug 1289213 - Part 2: Fall back to the tab.label when there is no browser.contentTitle available. r=kmag
When a tab is unloaded, the session browser.contentTitle is unavailable so this patch allows the title to be exposed when the tab is unloaded.
2016-08-11 19:44:00 -04:00
fiveNinePlusR
479a4f4ae3 Bug 1291830 - Do not return tabs that are in the process of closing from a chrome.tabs.query call. r=kmag
--HG--
extra : rebase_source : 24e51c2a777bf22b4314f7001018aa8ae756ea53
2016-08-09 16:43:33 -07:00
Kris Maglione
9462ff7027 Bug 1225215: Follow-up: ESLint fix. r=me
MozReview-Commit-ID: WP5idmrVE6
2016-08-14 20:05:07 -07:00
Kris Maglione
4f1b1dda0b Bug 1225215: [webext] Raise the expected errors when given invalid tab IDs. r=aswan
MozReview-Commit-ID: E5G0GmVhzLh

--HG--
extra : rebase_source : 5c6624b9d2d06109a1b047ad48dcac7e9405ee59
extra : amend_source : fb23020f7d2772f56fabc61f2e32f7d9c4c2f52a
2016-02-26 17:56:30 -08:00
Kris Maglione
d63b08badc Bug 1293099: Fill panel arrow and arrow content with browser body's background color. r=bwinton ui-r=maritz
MozReview-Commit-ID: 3xf31UgUy2A

--HG--
extra : rebase_source : 4f1e4149587da7a2c0aefdde7c8880ea21330393
2016-08-08 14:06:19 -07:00
Kris Maglione
bc51ef01c8 Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz
MozReview-Commit-ID: 9jmuxdSLmBM

--HG--
extra : source : 9999b6b8022bfe815d79a4f309986d2859285e16
extra : histedit_source : 69afe0d2ecfa9d73e30fc6e363dbfa6849530dcf%2C3a9aaafbb3288f43d7f2b17b0e93597d9a305032
2016-08-09 12:08:04 -07:00
Wes Kocher
8ca795c1c8 Backed out changeset 9999b6b8022b (bug 1280128) for ESLint failures 2016-08-09 11:28:12 -07:00
Kris Maglione
818537d543 Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz
MozReview-Commit-ID: 9jmuxdSLmBM

--HG--
extra : rebase_source : 377e47f39b1c52e36813f79e9d650c5f6bfab970
extra : histedit_source : c0d5ec2e5143ac4013e203dd75980dfcb43e7c9e
2016-08-09 10:54:53 -07:00
Kris Maglione
93814e012e Bug 1293036: Prevent BasePopup._resizeBrowser from being called recursive from MozScrolledAreaChanged events. r=robwu
This doesn't include tests for this behavior, because I'm not sure there's a
good way to test it reliably.

MozReview-Commit-ID: CM5rj1f9YiG

--HG--
extra : rebase_source : 11608a2d0b78802021a4f8aec39f0caa2f75af2c
2016-08-07 12:44:15 -07:00
Kris Maglione
97c23c220b Bug 1287649: Don't hide pageAction when only hash fragment changes. r=aswan
MozReview-Commit-ID: EvufryoPgcs

--HG--
extra : rebase_source : c0730dd43ab2400145e30759ad721e9701287d01
2016-07-26 17:28:29 -07:00
Kris Maglione
1ecad9867e Bug 1282189: Improve resizing behavior for browser action views in menu panel. r=Gijs
MozReview-Commit-ID: 3SPQ1IimAY8

--HG--
extra : rebase_source : 9c7ccf3c293ed805a5a5a01c2a045a96dab600ab
2016-07-27 12:46:43 -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
Matthew Wein
569e667c08 Bug 1270742 - Add support for default_icon in chrome.pageAction r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : %FC%FBu%0Cboh%DFv%BB%8D%AC%20%ED%A5%E1%3E%DE%126
2016-05-23 15:59:33 -07:00
Martin Giger
bc7ec4df3e Bug 1282171 - Use setTimeout from parent window to throttle resizes. r=kmag
MozReview-Commit-ID: FsEjqfJKOUC
2016-06-25 00:06:56 +00:00
Sebastian Hengst
2e51abafdb Backed out changeset 1008f5b88e6b (bug 1270742) for failing browser_ext_browserAction_context.js. r=backout 2016-06-24 13:00:31 +02:00
Matthew Wein
48b0f752e6 Bug 1270742 - Add support for default_icon in chrome.pageAction. r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : %D2%EEUA%D1%C7Yp%88E%851%200n%90%D7%8F%0C%F4
2016-05-23 15:59:33 -07:00
Martin Giger
2072a2d80e Bug 1215025 - Resize popup when content size changes. r=kmag
--HG--
extra : rebase_source : f70828223c7853f68d080f0beea6f8fbd62fae72
2016-06-22 02:55:00 -04:00
Kris Maglione
c80375c0f9 Bug 1272219: Use 16px icons for BrowserAction buttons, support 18px as a legacy fallback. r=bwinton ui-r=bwinton
MozReview-Commit-ID: 2c0UWR6hITQ

--HG--
extra : rebase_source : 5dd417ba99bb85a50dd1ae87cf2fb5603da07ce8
2016-06-05 21:05:36 -07:00
Carsten "Tomcat" Book
a5fd82744f Backed out changeset 5e6356e7a99e (bug 1270742) for eslint test failures 2016-06-15 01:29:04 +01:00
Matthew Wein
e774e0c1a6 Bug 1270742 - Add support for default_icon in chrome.pageAction. r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : 5%125%05%88%F8%85%AB%D11%7C%83D%02d%EC%1A1%A6%92
2016-05-23 15:59:33 -07:00
Kris Maglione
c98153037d Bug 1276025: Stop using injectInDocShell to tag docShells with types. r=billm
MozReview-Commit-ID: 7h5PI2birY4

--HG--
extra : source : 99b213f494e1a9e20629e936681faedec16d22a3
extra : amend_source : d70ffaecbc11445a5bddeb52c9c940a866934347
2016-06-02 20:53:41 -07:00
Wes Kocher
3ec856c177 Backed out changeset 99b213f494e1 (bug 1276025) for xpcshell bustage CLOSED TREE 2016-06-07 16:59:20 -07:00
Kris Maglione
c5d392a9bc Bug 1276025: Stop using injectInDocShell to tag docShells with types. r=billm
MozReview-Commit-ID: 7h5PI2birY4

--HG--
extra : rebase_source : a8b8b9b49f9ef8304ee669f6c28c9290a1198ff3
extra : amend_source : f868dc11e3da5f89852343e88e373db14f5dcbd3
extra : histedit_source : 6ee59978a58828e22a9f2cbf651cb713ba28d25d
2016-06-02 20:53:41 -07:00
Bob Silverberg
b71e6b7eb1 Bug 1240326 - Part 2: Utilize lazyWidth and lazyHeight properties from frame loaders for tab width and height. r=kmag
MozReview-Commit-ID: FI41LGDrFFK

--HG--
extra : rebase_source : 3f967ffa258f0426990e54f7ca4d6bca6685bc07
2016-04-26 10:25:20 -04:00
Kris Maglione
d727c780b8 Bug 1266510: Add better logging to browser_ext_windows_events test. r=me
MozReview-Commit-ID: 6aKeZvH7jwk

--HG--
extra : rebase_source : 6459e210c64fb83cc134699433d0126b3ec22bb5
2016-06-02 13:36:57 -07:00
Wes Kocher
5983b42383 Backed out 2 changesets (bug 1240326) for failures in browser_ext_tabs_query.js
Backed out changeset c057ea186ced (bug 1240326)
Backed out changeset 4399e8609c74 (bug 1240326)
2016-05-05 13:06:36 -07:00
Bob Silverberg
1e8b600698 Bug 1240326 - Part 2: Utilize lazyWidth and lazyHeight properties from frame loaders for tab width and height. r=kmag
MozReview-Commit-ID: FI41LGDrFFK

--HG--
extra : transplant_source : %9C%06%B5H-%80%15%25%C3%8A%F1%D8y%93%D2%C4%9E%22%8BH
2016-04-26 10:25:20 -04: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
Bill McCloskey
74d6b169e1 Bug 1197346 - Rename ExtensionPage to ExtensionContext (r=kmag) 2016-04-23 20:04:29 -07:00
Bob Silverberg
c37418b9d5 Bug 1262976 - browser.windows.onFocusChanged sometimes fires twice, even after the event listener is removed, r=kmag
MozReview-Commit-ID: 4wfFjPBn7zJ

--HG--
extra : transplant_source : %E4%2C%DDNqS%E8%EC%96%AE%E2%C5%D3%1A.v%C9%5C%E2%80
2016-04-08 09:46:45 -04:00
Kris Maglione
c4861004a5 Bug 1248846: [webext] Don't call callbacks after a context is destroyed. r=aswan
MozReview-Commit-ID: 5O2YKGONODH

--HG--
extra : rebase_source : 66a5b5f51ce841fdfad28542daee7802e316e2d1
2016-04-04 14:14:35 -07:00
Kris Maglione
8706c945fd Bug 1253133: [webext] Support changing window geometry via windows.update. r=aswan
MozReview-Commit-ID: LQGXyB9WuiI

--HG--
extra : rebase_source : 840ec6f25eb4409383b6e0c7a43ba03dc3cddf9b
2016-03-22 23:13:11 +01:00
Kris Maglione
5c47b4916d Bug 1253130: [webext] Support the alwaysOnTop in the browser.windows API. r=gabor
MozReview-Commit-ID: FNBCsDt0UT8

--HG--
extra : rebase_source : 80ec6a949237e4e59b17a9a9b31b5001d9f09606
2016-03-22 23:11:35 +01:00
Blake Winton
157a38bc63 Bug 1225633 - Add better default styles to WebExtension panels. ui-r=shorlander, r=kmag
MozReview-Commit-ID: 8D7BipQtQYz

--HG--
extra : rebase_source : 448eba7a88076db1ee7948cea67749e12d427df9
2016-02-22 15:21:34 -05:00
Kris Maglione
d53da79b1c Bug 1253128: [webext] Support type=popup in the browser.windows API. r=billm
MozReview-Commit-ID: ALgprY2w7w9

--HG--
extra : rebase_source : 3608b83eb0538f1ff90a65ee064e2df544abddac
2016-03-03 18:44:18 -08:00
Kris Maglione
ebd03d7771 Bug 1253132: [webext] Support window states in browser.windows APIs. r=billm
MozReview-Commit-ID: LIw6swRAB3h

--HG--
extra : rebase_source : ab313986de1b12e9a38d341da16c8338cc3ea5e5
2016-03-05 09:59:35 -08:00
Matthew Wein
94fc7c715c Bug 1215375 - Add support for checkboxes, radio groups, and icons. r=kmag 2016-03-02 15:10:01 -08:00
Kris Maglione
cfcc885616 Bug 1190663: [webext] Add tests for window.close() in browserAction and pageAction popups. r=rpl
MozReview-Commit-ID: 8r08YRw7IGr

--HG--
extra : source : 09d8e3caf51daf1554673799609b575de4383a02
extra : amend_source : 64785002b2d8e113b744358a88154f2dd95f9814
2016-02-27 15:29:42 -08:00
Kris Maglione
301a3bd87e Backed out changeset 09d8e3caf51d (bug 1190663) for intermittent mochitest failures on Windows
MozReview-Commit-ID: BsHw1BxNF2t
2016-03-02 19:50:22 -08:00
Kris Maglione
67341496bf Bug 1190663: [webext] Add tests for window.close() in browserAction and pageAction popups. r=rpl
MozReview-Commit-ID: 8r08YRw7IGr

--HG--
extra : rebase_source : 6a88ac0d76b7a9d4659737edec09e62d98a21a1b
2016-02-27 15:29:42 -08: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
Andrew Swan
f1d18641ee Bug 1228247 - use document.getFocus() for window.focused. r=enndeakin 2016-02-18 16:36:51 -08:00
Kris Maglione
40152a25bd Bug 1234086: [webext] Add support for tabs.onAttached/onDetached events. r=billm
MozReview-Commit-ID: 4Kk1mTdGflI

--HG--
extra : source : 5ec466af51e171623333ad644a94034b55b73b08
2016-02-17 11:52:33 -08:00
Wes Kocher
099649f263 Backed out changeset 5ec466af51e1 (bug 1234086) for failures in browser_ext_tabs_update.js
--HG--
extra : commitid : F0V50PvojGj
2016-02-17 14:31:04 -08:00
Kris Maglione
937b9251be Bug 1234086: [webext] Add support for tabs.onAttached/onDetached events. r=billm
MozReview-Commit-ID: 4Kk1mTdGflI

--HG--
extra : rebase_source : bf075da744ba920bfb94587d1376a48125ddb21f
extra : histedit_source : 134b55b5e5e2bc482b33cd40c1e50145e42773e2%2C78d2857bbf3f558d3a15a161f0d63e44c9411b36
2016-02-17 11:52:33 -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
4b5513634b Bug 1238311: Part 3 - [webext] Add audible and muted support to browser.tabs API. r=gabor
--HG--
extra : commitid : 36za12ltvib
extra : rebase_source : 321506a4d0ab68ed6db18536a513584c50231c78
extra : histedit_source : 2787bfcb88593f5e943a77f64a51946e7d011db1
2016-01-26 17:06:41 -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