Rob Wu
0b6a21b18a
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
2016-09-06 15:25:10 -07:00
Rob Wu
eceb2a8e2a
Bug 1287007 - Fix timing issue in browser_ext_tabs_getCurrent.js r=billm
...
browser.test.sendMessage does not have enough time to finish
before tabs.remove since test moved to ChildAPIManager for
extension pages, causing the test to time out.
MozReview-Commit-ID: 1mmGZOi9fzm
2016-09-06 14:45:58 -07:00
Rob Wu
19ac7136a0
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
2016-09-05 23:50:11 -07:00
Rob Wu
85f4c6b8ea
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
2016-09-05 22:26:56 -07:00
Rob Wu
a87111ce7c
Bug 1287007 - Mark all browserAction methods as async r=billm
...
E.g. browser.browserAction.enable(...).then(...) now works as expected.
Removed a Promise.resolve() because that is the default.
MozReview-Commit-ID: 4Shxtn0rjYH
2016-09-02 14:22:09 -07:00
Rob Wu
58cc11a650
Bug 1287007 - Require "async" in schemas to match name r=billm
...
In the pageAction and browserAction schemas, several methods are
declared with `"async": true` but without a specified callback in the
`"parameters"` object, so callbacks are not allowed. However, when a
callback is proxied, the `ParentAPIManager` will mirror the call by
passing in an extra callback to the proxied API - and break.
This patch fixes the issue by removing uses of async:true. Also for
consistency between the browserAction and pageAction methods, the
methods that were not declared as async have also been marked as async.
MozReview-Commit-ID: JQqzmTUAotB
2016-09-02 03:37:55 -07:00
Rob Wu
26987b4df4
Bug 1287007 - Fix timing issue in browser/page action tests r=billm
...
MozReview-Commit-ID: 9L0ttaq42Ga
2016-09-02 16:33:32 -07:00
Dave Townsend
7ef7234b4b
Bug 1312055: Fix various eslint errors. r=standard8
...
MozReview-Commit-ID: 2XbldhBnofs
2016-10-21 10:03:51 -07:00
Andy McKay
1b0a8253b8
bug 1240631 so that both invalid windows and tabs hit runtime.lastError r=kmag
...
MozReview-Commit-ID: EflXdTBWEEO
2016-10-21 14:45:18 -07:00
Kris Maglione
f8bf3dfe72
Bug 1312224: Fix race in browser_ext_browserAction_popup_resize.js. r=me
...
MozReview-Commit-ID: 6pSsJDfNJzO
2016-10-22 14:22:43 -07:00
Kris Maglione
b6df3694bd
Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
...
MozReview-Commit-ID: 79Xa3j5Kzov
2016-10-20 19:02:14 -07:00
Kris Maglione
d4f9daf879
Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
...
MozReview-Commit-ID: DIfynklqrus
2016-10-20 15:27:51 -07:00
Tomislav Jovanovic
d6d743d109
bug 1290057 - fire onFocusChanged when Firefox loses/gains focus r=kmag
...
MozReview-Commit-ID: 7OdyglGjnFQ
2016-10-14 05:38:34 +02:00
Sebastian Hengst
b8a5819c2d
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
1546bd1e9a
Backed out changeset 642ee7eb70bb (bug 1287209)
2016-10-20 09:16:15 +02:00
Kris Maglione
d2dfc382dc
Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
...
MozReview-Commit-ID: 79Xa3j5Kzov
2016-10-19 15:13:25 -07:00
Kris Maglione
c0448e9939
Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
...
MozReview-Commit-ID: DIfynklqrus
2016-10-19 20:19:43 -07:00
Kris Maglione
2d95c042c8
Bug 1294442: Follow-up: Fix additional windows-only test failures. r=bustage
...
MozReview-Commit-ID: 2fz7eeC7WLm
2016-10-19 18:52:15 -07:00
Eric Rahm
544eabdb4d
Bug 1311223 - Stop using nsISupportsArray for window args. r=froydnj
...
WindowWatcher allows for either nsIArray or nsISupports array to be passed in
for the arguments param. This converts all internal usage to nsIArray.
MozReview-Commit-ID: DQjtIkobik0
2016-10-19 16:23:57 -07:00
Kris Maglione
5ce1f253b4
Bug 1294442: Follow-up: Fix test failures. r=bustage
...
MozReview-Commit-ID: F7qWPN1SsNT
2016-10-19 15:15:51 -07:00
Kris Maglione
e3b52ce5eb
Bug 1294442: Part 2 - Fix layout issues when popup's preferred size is larger than maximum. r=aswan
...
MozReview-Commit-ID: E9gaAeQWtDb
2016-10-19 13:47:59 -07:00
Mark Banner
233309fbe2
Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
...
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Tomislav Jovanovic
12181226a0
bug 1281354 - test current window correct after moving tab, r=aswan
...
MozReview-Commit-ID: 14dgxq0FkNB
2016-10-12 23:46:21 +02:00
Tomislav Jovanovic
1346509ec7
bug 1273146 - populate tabs in windows.create() return value r=kmag
...
MozReview-Commit-ID: 5dnnSdXrsaJ
2016-10-09 02:11:25 +02:00
Bob Silverberg
07f202619f
Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
...
MozReview-Commit-ID: 7AKfMil3Dr4
2016-10-25 16:09:28 -04:00
Matthew Wein
9b292feafe
Bug 1246034: Part 2 - [webext] Add support for _execute_browser_action. r=kmag
...
MozReview-Commit-ID: EIbPidn07qZ
2016-07-08 15:02:49 -07:00
Kris Maglione
c2be3319a7
Bug 1246034: Part 1 - [webext] Add a helper function to trigger a browserAction. r=jaws
...
MozReview-Commit-ID: JUW6oUpWiN4
2016-09-07 11:05:11 +01:00
Ryan VanderMeulen
0cd9c69a12
Merge m-c to autoland. a=merge
2016-10-07 23:22:46 -04:00
Kris Maglione
843c84b50c
Bug 1289273: Resolve URLs passed to windows.create relative to the caller. r=aswan a=al
...
MozReview-Commit-ID: 3TUIK6EvO3q
2016-10-05 20:27:06 +01:00
Tomislav Jovanovic
3dba50915d
bug 1278685 - test contextMenus.removeAll with two extensions, r=aswan
...
MozReview-Commit-ID: AoEw1Jo7m4R
2016-10-07 02:11:05 +02:00
Tomislav Jovanovic
d2118d8126
bug 1301227 - add allowScriptsToClose option to windows.create(), r=kmag
...
MozReview-Commit-ID: 4p8A1y2FALX
2016-09-23 23:40:24 +02:00
Kris Maglione
6641bc1d39
Bug 1299891: Make pageAction panels tab-specific. r=jaws
...
MozReview-Commit-ID: D0ZIJzWnUF6
2016-09-29 23:56:58 +01:00
Jesper Kristensen
4b02f4ef0a
Bug 1254221 - Support private browsing cookies in WebExtensions r=kmag
...
MozReview-Commit-ID: 29ci8wbnMra
2016-09-29 19:18:14 +02:00
Carsten "Tomcat" Book
8ec316a2dc
merge mozilla-inbound to mozilla-central a=merge
2016-09-30 12:02:16 +02:00
Rob Wu
1adbe191ae
Bug 1301862 - Call tabs.create sooner r=kmag
...
Call tabs.create immediately after the tab is created without delay to
reduce the chance of losing tabs.onUpdated events.
If needed, the tab waiting is done by `executeScript`, etc.
MozReview-Commit-ID: 7A1zH99zafK
2016-09-11 01:32:24 -07:00
Phil Ringnalda
f9b2178711
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
Kris Maglione
0e8fb15468
Bug 1306037: Support options_ui in embedded WebExtensions. r=aswan
...
MozReview-Commit-ID: KZVPz52qrTS
2016-09-28 23:11:35 +01:00
Jesper Kristensen
69262c1580
Bug 1254221 - Support private browsing cookies in WebExtensions r=kmag
...
MozReview-Commit-ID: 29ci8wbnMra
2016-05-15 12:18:13 +02:00
Rob Wu
ce9c6d652e
Bug 1296900 - Hide commands API if manifest key is missing r=kmag
...
MozReview-Commit-ID: 7vld6MgSlqG
2016-08-20 23:01:43 -07:00
Rob Wu
f70a6dfc83
Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
...
MozReview-Commit-ID: LIr5Nsv51I3
2016-08-20 22:21:45 -07:00
Wes Kocher
8174fa8630
Backed out 2 changesets (bug 1296900) for mochitest failures in test_ext_all_apis.html a=backout
...
Backed out changeset c37cf3cfd39c (bug 1296900)
Backed out changeset 998ed8336288 (bug 1296900)
2016-09-23 16:15:05 -07:00
Rob Wu
08e4735360
Bug 1296900 - Hide commands API if manifest key is missing r=kmag
...
MozReview-Commit-ID: 7vld6MgSlqG
2016-08-20 23:01:43 -07:00
Rob Wu
b90356b171
Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
...
MozReview-Commit-ID: LIr5Nsv51I3
2016-08-20 22:21:45 -07:00
Tomislav Jovanovic
d5ac19ab3e
bug 1269421 - enable HTML tooltips in extension popups, r=aswan
...
MozReview-Commit-ID: 6pyJKgKGW5F
2016-09-22 03:22:15 +02:00
Tomislav Jovanovic
1dbc50dbf9
bug 1274809 - Add missing properties to OnClicked data, r=aswan
...
MozReview-Commit-ID: 4BodpIuKCz2
2016-09-21 02:12:11 +02:00
Phil Ringnalda
ca89254357
Backed out 2 changesets (bug 1296900) for est_ext_all_apis.html | failures
...
Backed out changeset fa509c880990 (bug 1296900)
Backed out changeset 06ee8b3640af (bug 1296900)
2016-09-21 18:59:22 -07:00
Rob Wu
36055ef9cc
Bug 1296900 - Hide commands API if manifest key is missing r=kmag
...
MozReview-Commit-ID: 7vld6MgSlqG
2016-08-20 23:01:43 -07:00
Rob Wu
7536f44a24
Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
...
MozReview-Commit-ID: LIr5Nsv51I3
2016-08-20 22:21:45 -07:00
Jared Wein
b6817d7876
Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
...
MozReview-Commit-ID: 1mhCWplknyN
2016-11-07 22:34:25 -05:00
Iris Hsiao
d24e67dbe4
Backed out changeset f6f28be8d8f2 (bug 1315781) for XPCShell test timed out
2016-11-10 14:53:46 +08:00