Commit graph

159 commits

Author SHA1 Message Date
Andrea Marchesini
c119e65ac0 Bug 1302697 - Containers and WebExtensions - part 1 - Tab API, r=kmag 2016-10-28 10:15:42 +02:00
Rob Wu
67b8230b49 Bug 1287007 - Remove .contentWindow from ProxyContext r=billm
MozReview-Commit-ID: ASNigrM07yz

--HG--
extra : rebase_source : e9169090ec8cb1d9822f235faa15516403576dde
2016-09-13 16:02:03 -07:00
Rob Wu
dce0635037 Bug 1287007 - Use IPC to share viewType, tabId and windowId r=billm
Accessing <browser> in ContentChild does not work when extensions run in
a separate process.

MozReview-Commit-ID: EK0aOYeGaZ5

--HG--
extra : rebase_source : 359cb1f9022b8097d27aa74a30e133c4a7e7c742
2016-09-06 15:25:10 -07:00
Rob Wu
ff65d297cc Bug 1287007 - Move extension context initialization to ExtensionContent r=billm
This is a simple move of ExtensionContext creation logic to
ExtensionChild.

Before the change, ExtensionContext was initialized as follows:

1. (ext-backgroundPage.js) Create background page
2. (Extension.jsm) document-element-inserted observed.
3. (Extension.jsm) new ExtensionContext + unload observer.

After this commit:

1. (ext-backgroundPage.js) Create background page
2. (ext-backgroundPage.js) emit extension-browser-inserted event
3. (Extension.jsm) Pass global to ExtensionContent + unload listener.
4. (ExtensionContent.jsm) document-element-inserted observed.
5. (ExtensionChild.jsm) new ExtensionContext

The next step is to use frame scripts and synchronize state.

MozReview-Commit-ID: K6mPdq7KQ2T

--HG--
extra : rebase_source : c742dfe89646d6717da134c7408aa5a066107c66
2016-09-05 23:50:11 -07:00
Rob Wu
6023c940a4 Bug 1287007 - Rename "context.type" to "context.viewType" r=billm
"viewType" is more easily searchable and not as ambiguous as "type".

MozReview-Commit-ID: 8sG4qagFCBu

--HG--
extra : rebase_source : 39d76379996e631b9fc33f0c77d565cf302b9df9
2016-09-05 22:26:56 -07:00
Kris Maglione
8e0d5c9c7e Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
MozReview-Commit-ID: 79Xa3j5Kzov

--HG--
extra : source : 642ee7eb70bbe1d512a06cf6478910bd2d0db273
extra : intermediate-source : 50dcca551b63ee6e9b07207208d6cb1c239467af
extra : histedit_source : ac9867b9d5c0a1666f751b86199b4ba14e32d918%2C6261a9a05cd6386e2abfeddddf6f67a1d208d6f3
2016-10-20 19:02:14 -07:00
Kris Maglione
062bc47b74 Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
MozReview-Commit-ID: DIfynklqrus

--HG--
extra : source : 68806639c03110bfb67dd6c705a5441a917afcd6
extra : intermediate-source : cc7503f09572bc49cd2f86184d0d3abc810351c3
2016-10-20 15:27:51 -07:00
Phil Ringnalda
ad36def0ad Backed out 2 changesets (bug 1287209) for failures in browser_ext_pageAction_popup_resize.js
Backed out changeset 50dcca551b63 (bug 1287209)
Backed out changeset cc7503f09572 (bug 1287209)

MozReview-Commit-ID: A5q4SnWzgOa
2016-10-20 19:23:33 -07:00
Kris Maglione
9512e2b48d Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
MozReview-Commit-ID: 79Xa3j5Kzov

--HG--
extra : source : 642ee7eb70bbe1d512a06cf6478910bd2d0db273
extra : intermediate-source : a6787db4d131dce2eabe0fab90c0e03e531190b5
extra : histedit_source : a18f4b2640680660f6a79c294b9d398be5be535d
2016-10-19 15:13:25 -07:00
Kris Maglione
1b0cc16a74 Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
MozReview-Commit-ID: DIfynklqrus

--HG--
extra : source : 68806639c03110bfb67dd6c705a5441a917afcd6
extra : intermediate-source : 7ea8213113d73fcbdd5160397db9ed4fbe295ee0
extra : histedit_source : 62c8339301d4e1939b5873554d2c751d76a15c22%2C291e31423225845deb0a7785cd06e9f4cec81221
2016-10-20 15:27:51 -07:00
Wes Kocher
c405db181b Backed out 2 changesets (bug 1287209) for browser_ext_commands_execute_browser_action.js leaks a=backout
Backed out changeset a6787db4d131 (bug 1287209)
Backed out changeset 7ea8213113d7 (bug 1287209)
2016-10-20 14:37:12 -07:00
Kris Maglione
3143cd075d Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
MozReview-Commit-ID: 79Xa3j5Kzov

--HG--
extra : source : 642ee7eb70bbe1d512a06cf6478910bd2d0db273
extra : histedit_source : 0e7b363e1faade71f1ba406c1941f93a46bf751b
2016-10-19 15:13:25 -07:00
Kris Maglione
bdc9da3225 Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
MozReview-Commit-ID: DIfynklqrus

--HG--
extra : source : 68806639c03110bfb67dd6c705a5441a917afcd6
extra : histedit_source : fa626fa73864633321201ab46e6c08ed1692280b%2C8ac18763ca4bb7f7c40c4b0cd58ca53ddc26618e
2016-10-20 09:57:13 -07:00
Sebastian Hengst
0c23c32b56 Backed out changeset 68806639c031 (bug 1287209) for failing browser-chrome test browser_ext_popup_corners.js. r=backout 2016-10-20 09:17:03 +02:00
Sebastian Hengst
304f2d4ce5 Backed out changeset 642ee7eb70bb (bug 1287209) 2016-10-20 09:16:15 +02:00
Kris Maglione
0d4f94f79a Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
MozReview-Commit-ID: 79Xa3j5Kzov

--HG--
extra : rebase_source : 4746880f12993aab2055221d752be50105278a85
2016-10-19 15:13:25 -07:00
Kris Maglione
00de90e4be Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
MozReview-Commit-ID: DIfynklqrus

--HG--
extra : rebase_source : fe673f907b56f4d2bdc53be2e37271541c5332d6
2016-10-19 20:19:43 -07:00
Kris Maglione
a6b566a249 Bug 1294442: Part 2 - Fix layout issues when popup's preferred size is larger than maximum. r=aswan
MozReview-Commit-ID: E9gaAeQWtDb

--HG--
extra : rebase_source : d74f85a06a29ffcf40ffbb64d01625aaf3acd082
2016-10-19 13:47:59 -07:00
Kris Maglione
5fa61868b6 Bug 1246034: Part 1 - [webext] Add a helper function to trigger a browserAction. r=jaws
MozReview-Commit-ID: JUW6oUpWiN4

--HG--
extra : rebase_source : 324a7ece3b7bc550478326b5bd2795599a5ec6bb
2016-09-07 11:05:11 +01:00
Kris Maglione
fcb32d398e Bug 1299891: Make pageAction panels tab-specific. r=jaws
MozReview-Commit-ID: D0ZIJzWnUF6

--HG--
extra : rebase_source : c577f58115cf737c005a030c00b5f6131db6b212
2016-09-29 23:56:58 +01:00
Jesper Kristensen
6401f74ad3 Bug 1254221 - Support private browsing cookies in WebExtensions r=kmag
MozReview-Commit-ID: 29ci8wbnMra

--HG--
extra : rebase_source : e124aa6526cbe9f8f51736aaa0258442b125b588
2016-09-29 19:18:14 +02:00
Phil Ringnalda
6f3a9050ba Backed out changeset 9b6a4552a5c2 (bug 1254221) for test_ext_cookies.html timeouts and lint failures
CLOSED TREE
2016-09-27 18:21:01 -07:00
Jesper Kristensen
f4c17f8383 Bug 1254221 - Support private browsing cookies in WebExtensions r=kmag
MozReview-Commit-ID: 29ci8wbnMra

--HG--
extra : rebase_source : 8ab40a6dfa39c2988d52212630305bc10542b9ad
2016-05-15 12:18:13 +02:00
Tomislav Jovanovic
4e44ccab20 bug 1269421 - enable HTML tooltips in extension popups, r=aswan
MozReview-Commit-ID: 6pyJKgKGW5F

--HG--
extra : rebase_source : ccb839e4a8bed8fff2f384d095893ec0ada26f6b
2016-09-22 03:22:15 +02:00
Kanika Narang
fcdff1b513 Bug 1302950 - Rename --panel-arrowcontent* CSS variables to --arrowpanel*. r=dao 2016-09-20 09:27:49 +02:00
Sebastian Hengst
05c340d60c Backed out changeset 752f33561e8f (bug 1302950) for failing browser-chrome test browser_ext_popup_background.js. r=backout 2016-09-17 14:49:50 +02:00
Kanika Narang
89af03b5df Bug 1302950 - Rename --panel-arrowcontent* CSS variables to --arrowpanel*. r=dao
--HG--
extra : rebase_source : d8dccc1fb8131ba27b2f2e22a5439d1a841ebdc4
2016-09-17 12:17:04 +02:00
Greg Tatum
1e5a5a50e2 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-color.js => devtools/shared/css/color.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-parsing-utils.js => devtools/shared/css/parsing-utils.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : 51d8d92db0ae91a7368b109aae9a509ba8012b3f
extra : histedit_source : ee3409615461cba0c656b32fee7f80d4b72a09d1
2016-09-14 10:00:27 -05:00
Sebastian Hengst
d11146270a Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout
--HG--
rename : devtools/shared/css/color-db.js => devtools/shared/css-color-db.js
rename : devtools/shared/css/lexer.js => devtools/shared/css-lexer.js
rename : devtools/shared/css/properties-db.js => devtools/shared/css-properties-db.js
2016-09-13 17:43:44 +02:00
Greg Tatum
da1990f19b Bug 1290988 - Collect devtools/shared/css-* files into a folder; r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : b73bbe7fcf8177a25b41ecdd6d6c760ed1472fb7
2016-08-29 11:02:34 -05:00
Rob Wu
3df8d2e80e Bug 1298979 - Add ProxyMessenger, change message managers and getSender r=billm
- Introduce a proxy for IPC messages to allow the following APIs
  to be run out-of-process (ProxyMessenger):

    * runtime.connect
    * runtime.sendMessage
    * tabs.connect
    * tabs.sendMessage
    * runtime.onConnect
    * runtime.onMessage

- Update getSender in ext-tabs, make it independent of the context
  (in particular do not throw an error when a message is received while
  the tab is gone), and move it from MessageChannel to ProxyMessenger to
  make sure that it works in webext-oop. MessageChannel lives in a child
  process, whereas the TabManager (used by getSender) requires data from
  the main process.

- Set the third parameter of `addMessageListener` to true in some places
  to make sure that messages get delivered even after unloading the
  context. This is needed for the next two points.

- Put the `messageManager` property in BaseContext, and let it be set by
  `setContentWindow` - runtime.sendMessage/connect and tabs.sendMessage/
  connect depends on this property, and using the frame message manager
  makes sense.

- Unconditionally use the frame message manager in
  runtime.sendMessage/connect instead of sometimes the cpmm.

MozReview-Commit-ID: 4QkPnlMOkjS

--HG--
extra : rebase_source : f2c753a9d396e4b5c40e46cd926024e664372002
2016-08-25 17:08:08 -07:00
Kris Maglione
eedfd4420e Bug 1293287: Close extension popups on extension shutdown. r=aswan
MozReview-Commit-ID: 5lpIk6XrdOM

--HG--
extra : rebase_source : ec403c06c2044fc3d65cc1e830e34670ea4e500d
2016-08-24 16:26:35 -07:00
Kris Maglione
e9d8b48ce4 Bug 1259093: Part 3 - Preload browserAction popups to prevent flicker during opening. r=Gijs r=jaws r=bwinton f=mattw
MozReview-Commit-ID: EpAKLV8VPTn

--HG--
extra : rebase_source : 6ce6e622734214c7214fc2ddb7ddb2233fc0c8fd
2016-08-19 12:29:11 -07:00
Phil Ringnalda
602a0147b1 Backed out 3 changesets (bug 1246034) for Win e10s timeouts in browser_ext_commands_execute_browser_action.js
Backed out changeset f1f24546c26c (bug 1246034)
Backed out changeset 2c396099a21d (bug 1246034)
Backed out changeset 8cce25ece209 (bug 1246034)
2016-08-15 21:36:34 -07:00
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
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
a49250b7f4 Bug 1234755: Follow-up: Fix additional failures. r=trivial
--HG--
extra : commitid : 4Ef0fj48IPr
extra : amend_source : 839e710a618fc403c156e79e80d91276aa9a0f1d
2015-12-31 16:17:00 -08:00
Bill McCloskey
a3d3a41850 Bug 1208257 - [webext] browser_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
505a9bb407 Bug 1208257 - [webext] windows.json (r=kmag) 2015-12-06 08:50:24 -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
62d3c9701a Bug 1229874: Part 2 - Fix the major errors detected by ESLint. r=billm
--HG--
extra : commitid : 8MfFtdlzGEG
extra : rebase_source : 744d65868d5a3d217bd5f6428a3486e95fa14716
extra : source : 880fc261adae00a344e227ea2fa246b771cd57a6
2015-12-02 16:58:24 -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
Johann Hofmann
75a90ffc8e Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01: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
Kris Maglione
9b2c61cbae Bug 1215893: [webext] Check capturing event listeners for the correct target. r=billm
--HG--
extra : commitid : IYgT9fAiHJX
extra : rebase_source : c672622b7f2e931ceab45b5569c9de0bfd40602a
2015-11-14 23:30:52 -08:00
Kris Maglione
ef3b6a7107 Bug 1224961: Remove non-standard JS features from WebExtension code
--HG--
extra : commitid : uASoVfuiAC
extra : rebase_source : ba0dfb11eda8d1c3345463e3a8c25796ddcfb5dd
2015-11-02 18:09:09 -08:00
Edgar Chen
dba190796b Bug 1205221 - Fix chrome.tabs.onUpdate event doesn't be fired correctly when tab's attribute is changed. r=billm
--HG--
extra : transplant_source : %B7%2C%06e%0E%0F/%C3%E5-F%A1M%9B%C3%8F%060%95S
2015-09-15 14:06:51 +08:00