Commit Graph

586 Commits

Author SHA1 Message Date
Wes Kocher
86964bef8b Merge inbound to central, a=merge 2016-11-07 14:00:52 -08:00
Kris Maglione
0ab41d69f6 Bug 1306797: Dispatch key events to the correct windows. r=me
MozReview-Commit-ID: 2jxb5dnVREu
2016-11-06 19:18:24 -08:00
Phil Ringnalda
4c46d018e5 Merge m-c to m-i
MozReview-Commit-ID: KCA8bY2DowI
2016-11-06 19:16:46 -08:00
Kris Maglione
1f1a3e01f3 Bug 1266510: Try explicitly focusing new browser window before waiting for focus change event. r=me
MozReview-Commit-ID: B3mod2MtA8d
2016-11-06 19:03:03 -08:00
Kris Maglione
8583b9858a Bug 1308649: Split browser_ext_windows_create.js into three files. r=me
MozReview-Commit-ID: 5abJw8VEJCU
2016-11-06 17:43:47 -08:00
Bob Silverberg
aad054cf11 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
2016-10-31 17:30:16 -04:00
Sebastian Hengst
e7b63fb1b2 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
526a59632c Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
MozReview-Commit-ID: 7AKfMil3Dr4
2016-10-25 16:09:28 -04:00
Bob Silverberg
fac8d96785 Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
MozReview-Commit-ID: 7AKfMil3Dr4
2016-10-25 16:09:28 -04:00
Kris Maglione
b4842e7473 Bug 1308421: Handle MessageChannel responses correctly after docshells have been swapped. r=aswan
MozReview-Commit-ID: HDTrBfdclXd
2016-10-11 21:08:33 +01:00
Kris Maglione
85d559d507 Bug 1307551: Don't attempt to pre-load popup for disabled browserAction. r=bsilverberg
MozReview-Commit-ID: 8imoqD1Xoja
2016-11-01 09:41:30 -07:00
Kris Maglione
bec1b361f5 Bug 1312690: Lazily initialize extension APIs. r=aswan
MozReview-Commit-ID: 2ofzT6wPvus
2016-11-02 19:21:04 -07:00
Kris Maglione
970653dbb7 Bug 1313956: Async all the tests. r=aswan
MozReview-Commit-ID: CyNCfEsDD42
2016-11-07 21:03:14 -08:00
Carsten "Tomcat" Book
c2b964b9a5 Backed out changeset efc9b52a218f (bug 1313956) for failing on own tests 2016-11-08 14:07:22 +01:00
Kris Maglione
37f654a810 Bug 1313956: Async all the tests. r=aswan
MozReview-Commit-ID: CyNCfEsDD42
2016-11-07 21:03:14 -08: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
Jared Wein
0c41af265f Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
MozReview-Commit-ID: DnpVQRrG9Ec
2016-11-07 22:34:25 -05:00
Ryan VanderMeulen
112d5746d5 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Andrea Marchesini
b45c01c2f2 Bug 1302697 - Containers and WebExtensions - part 3 - getAllCookieStores, r=kmag 2016-10-28 10:16:32 +02:00
Andrea Marchesini
bc1116fcdc Bug 1302697 - Containers and WebExtensions - part 1 - Tab API, r=kmag 2016-10-28 10:15:42 +02:00
Rob Wu
1a903f50f2 Bug 1299411 - Pass port parameter to port.onMessage r=kmag
This should have been a part of bug 1298810, but that only set the
argument for native messaging ports, which does not use Port from
ExtensionUtils. The port parameter must also be included in runtime's
Port.onMessage to avoid regressions when the port implementations are
unified and native messaging starts using runtime's Port.

Note that starting from this commit, multiple onMessage listeners
receive the same (cloned) message instead of a new clone per listener.
This is a side effect of using `fire.withoutClone` instead of `fire`:
`fire` clones all parameters, but ports are not cloneable so we have
to use `fire.withoutClone` instead. This change with regards to message
cloning is fully compatible with Chrome's messaging API (which also
passes the same message object to all `port.onMessage` calls).

MozReview-Commit-ID: AUDuUKHkXCM
2016-09-24 11:34:26 +02:00
Carsten "Tomcat" Book
7b3ddedddd Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js 2016-10-28 15:45:29 +02:00
Rob Wu
dcfc8d1a52 Bug 1287007 - Fix timing issue in browser_ext_windows_create_tabId.js r=billm
When tabs.onUpdated is called before the promise of windows.create
resolves, the test fails.
This test failure was observed on almost every try run with non-e10s,
and sometimes (rarely) with e10s.

MozReview-Commit-ID: 3znCP1uAUSB
2016-10-21 01:35:03 +02:00
Rob Wu
6f174d89d2 Bug 1287007 - Fix timing issue in browser_ext_contextMenus.js r=billm
MozReview-Commit-ID: D7No2zFUWjf
2016-10-12 01:10:33 +02:00
Rob Wu
c7f6b42024 Bug 1287007 - Adjust state test in browser_ext_windows_update.js on Linux r=kmag
The test/browser/browser_ext_windows_update.js test fails on Linux.

The window ID is not expected to change, add assertion for it to
eliminate causes for test failures.

Ultimately, it turns out that the test failure is caused by a defect
in the implementation, not the test itself, see bugzil.la/1307759

MozReview-Commit-ID: Lo8IIvcfYQ2
2016-10-03 01:13:32 +02:00
Rob Wu
925536f20a Bug 1287007 - Fix timing issue in browser_ext_tabs_onUpdated.js r=billm
Reload about:blank tab after opening it and registering the
`tabs.onUpdated` event. This is needed because about:blank loads very
fast, before the callback of `tabs.create` is invoked. This effect is
amplified by the fact that the APIs are now proxied.

MozReview-Commit-ID: DgPtIqHSUDx
2016-10-01 01:07:22 +02:00
Rob Wu
d18dd3dbb9 Bug 1287007 - Make browser_ext_tabs_executeScript.js reliable r=billm
The ProxyMessenger registers a listener whenever the first addon
starts. Although the map does not have any listeners any more at
the end of the test, the listener itself is not removed because
the message-manager-close notification is not sent for them.

So do not count these persistent message managers in the test.
The actual message managers of interest are those associated with
the (closed) tab.

Note: When the test is run in isolation, it may still fail due
to bugzil.la/1293583. See bug for work-around if you want to test.

MozReview-Commit-ID: IiDHhmvQPcv
2016-09-15 15:53:03 -07:00
Rob Wu
9ebbb4a33c Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm
Main thing: Making contextMenus implementation webext-oop compatible.

Preparation:

- Add getParentEvent to ChildAPIManager to allow use of remote events.
- Introduce `addon_parent_only` to "allowedContexts" to only generate a
  schema API in the main process.
- Do not fill in `null` for missing keys if the schema declares a key as
  `"optional": "omit-key-if-missing"`. This is needed for the second
  point in the next list.

Drive-by fixes:

- Ensure that the "onclick" handler is erased when a context closes.
- Do not clear the "onclick" handler in `contextMenus.update` if the
  onclick key has been omitted (parity with Chrome).
- Remove some unnecessary `Promise.resolve()`
- Add extensive set of tests that check the behavior of the contextMenus
  APIs with regards to the onclick attribute in various scenarios.

MozReview-Commit-ID: A5f3AUQzU8T
2016-09-12 18:26:03 -07:00
Rob Wu
e498d721b2 Bug 1287007 - Only close extension tabs upon shutdown r=billm
In one of the previous patches, the viewType of popup changed from
"popup" to "tab". As a result it was closed by the `page-shutdown`
event handler in ext-tabs.js. This prevents that from happening.

Also added a test that checks whether the options page type is a tab, to
prevent future regressions.

MozReview-Commit-ID: 3Qcf08PgNqb
2016-09-08 19:02:56 -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
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
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
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