Kris Maglione
191000683d
Bug 1317101 - Part 4: Deduplicate the handling of context tab and window IDs, and handle <browser> nesting in tabs. r=aswan
...
This could still use a fair amount of additional cleanup.
MozReview-Commit-ID: BteBFMlZCsy
--HG--
extra : rebase_source : 8b37748c25cc5c871ebac3eaab34ae6780175f37
2016-11-15 15:13:50 -08:00
Bob Silverberg
799141376a
Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
...
MozReview-Commit-ID: 7AKfMil3Dr4
--HG--
extra : rebase_source : a8a6c35e329c699eea523f1dad794e1106681719
2016-10-25 16:09:28 -04:00
Bob Silverberg
822f3154e2
Bug 1310019 - web extension API : chrome.tabs.query doesn’t get tabs title at first call, r=kmag
...
Add permission to the active tab on mousedown in ext-browserAction.js
MozReview-Commit-ID: H0oXQElppo7
--HG--
extra : rebase_source : 09ac61c479b57cb487bd81855dd9acae27537f39
extra : source : 935c49da3488b4270cf45447451d6bb0abe3f369
2016-10-31 17:30:16 -04:00
Sebastian Hengst
e9bafabd96
Backed out changeset 15760cbfa77a (bug 1308058) for almost permafailing browser_ext_sessions.js on Linux debug in e10s mode. r=backout a=backout
...
MozReview-Commit-ID: 6uhHHvTHguG
2016-11-05 11:12:19 +01:00
Bob Silverberg
7083cbf0d9
Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
...
MozReview-Commit-ID: 7AKfMil3Dr4
--HG--
extra : rebase_source : 075f74835aff7f9937d3f456714c64b9a31168db
2016-10-25 16:09:28 -04:00
Kris Maglione
e9c3a589bb
Bug 1312690: Lazily initialize extension APIs. r=aswan
...
MozReview-Commit-ID: 2ofzT6wPvus
--HG--
extra : rebase_source : 462e3eca2a9750fb07ad753322e86bc1494a8b4e
2016-11-02 19:21:04 -07:00
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