Commit graph

314 commits

Author SHA1 Message Date
Oriol Brufau
82cfa8e2d9 Bug 1489814 - Add 'populate' parameter in 'tabs.highlight'. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D7240

--HG--
extra : moz-landing-system : lando
2018-10-05 13:42:33 +00:00
Shane Caraveo
ea0139912f Bug 1486819 - support mozParams in webext search engines r=aswan,adw,mkaply
mkaply for overall search engine api changes
adw for searchservice changes.  note that a small part of it will be removed in favor of the fix from bug 1485508
aswan for webextension side.  note that I want to do better with the distribution signal, that can be in bug 1488517

Differential Revision: https://phabricator.services.mozilla.com/D4473

--HG--
extra : moz-landing-system : lando
2018-10-03 20:23:16 +00:00
Luca Greco
c0768c8f7c Bug 1398734 - Support devtools.panels.elements sidebar.setPage API method. r=mixedpuppy
Depends on D5420

Differential Revision: https://phabricator.services.mozilla.com/D5421

--HG--
extra : moz-landing-system : lando
2018-10-03 18:26:39 +00:00
Shane Caraveo
823fef0e70 Bug 1494135 add pinned option to page_action manifest, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D7098

--HG--
extra : moz-landing-system : lando
2018-10-02 15:39:16 +00:00
Rob Wu
4cb234ed7e Bug 1416839 - Add viewType/viewTypes to menus API r=mixedpuppy
- Support viewTypes property in menus.create / menus.update.
- Add info.viewType to menus.onShown / menus.onClicked event.
- This "viewType" reuses the existing extension.ViewType enum,
  which is a "tab", "popup" (pageAction/browserAction) or "sidebar".

Differential Revision: https://phabricator.services.mozilla.com/D6205

--HG--
extra : moz-landing-system : lando
2018-10-01 16:56:53 +00:00
Michael Kaply
7f9771ca36 Bug 1474934 - Add support for POST search to WebExtensions r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4004

--HG--
extra : moz-landing-system : lando
2018-09-28 22:03:04 +00:00
Rob Wu
e1571e4a5a Bug 1280347 - Remove <all_urls> requirement for the "tab" context r=mixedpuppy
See https://bugzilla.mozilla.org/show_bug.cgi?id=1280347#c28

Differential Revision: https://phabricator.services.mozilla.com/D6831

--HG--
extra : moz-landing-system : lando
2018-09-27 15:32:14 +00:00
Rob Wu
fd1f17a6e3 Bug 1280347 - Require a permission for the API r=mixedpuppy
The new permission is added to make it easier to audit the usage of the
API. It is an optional permission, in case we ever decide to introduce
a permission warning for it.

Differential Revision: https://phabricator.services.mozilla.com/D6771

--HG--
extra : moz-landing-system : lando
2018-09-27 08:21:07 +00:00
Rob Wu
7939207209 Bug 1280347 - Support changing context type to tab and bookmark r=mixedpuppy
This allows extensions to include tab/bookmark menu items from other
extensions. Built-in menu items from the browser are *not* added.

Depends on D6623

Differential Revision: https://phabricator.services.mozilla.com/D6624

--HG--
extra : moz-landing-system : lando
2018-09-27 08:21:05 +00:00
Rob Wu
ee0928a251 Bug 1367160 - Allow extensions to hide default menu items r=mixedpuppy
The new method allows extensions to modify menu items in their own
moz-extension:-pages, with the following features:

- All matching extension items are shown in the root menu (instead of
  being moved into a submenu), above other menu items, if any.
- The icons for these menu items are customizable.
- Optionally, the default menu items (including those from other
  extensions) can be hidden.

Depends on D6621

Differential Revision: https://phabricator.services.mozilla.com/D6622

--HG--
extra : moz-landing-system : lando
2018-09-25 16:41:47 +00:00
Rob Wu
6a8bd50325 Bug 1393570 - Support cookieStoreId in windows.create extension API r=Gijs,rpl
Other (internal API) changes besides extension API changes:

- This also introduces support for opening a window with multiple tabs
  in a non-default container tab.

- This also adds LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL to the
  gBrowser.loadTabs call, unless allowInheritPrincipal is set.
  For backwards-compatibility, this flag defaults to true.

Depends on D4928

Differential Revision: https://phabricator.services.mozilla.com/D4929

--HG--
extra : moz-landing-system : lando
2018-09-19 10:57:48 +00:00
Tom Schuster
8d185b567f Bug 1477248 - browser.search.search: Remove requireUserInput. r=mkaply
--HG--
extra : rebase_source : ce37a62a721eb2ea074ae0fa3eebda3f4d36a9bc
2018-09-19 23:05:26 +02:00
Coroiu Cristina
38507750b2 Backed out 2 changesets (bug 1393570) for build bustage on linux on a CLOSED TREE
Backed out changeset 23f496cd8a42 (bug 1393570)
Backed out changeset e41e69aa9eb5 (bug 1393570)
2018-09-12 20:40:27 +03:00
Rob Wu
3d83d6e742 Bug 1393570 - Support cookieStoreId in windows.create extension API r=Gijs,rpl
Other (internal API) changes besides extension API changes:

- This also introduces support for opening a window with multiple tabs
  in a non-default container tab.

- This also adds LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL to the
  gBrowser.loadTabs call, unless allowInheritPrincipal is set. Currently
  there are no callers that set this flag, but in case it's desired,
  I added an opt-in via window.arguments[10] in browser.xul/js.

  For single-argument URLs, the flag is an opt-out, since there are
  multiple callers that rely on principal inheritance (bug 1475201).

Depends on D4928

Differential Revision: https://phabricator.services.mozilla.com/D4929

--HG--
extra : moz-landing-system : lando
2018-09-12 15:15:22 +00:00
Arshad Kazmi
3e3a37df88 Bug 1469148 - Add button info to click event of contextMenus API r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4960

--HG--
extra : moz-landing-system : lando
2018-09-06 12:02:49 +00:00
Andreea Pavel
84279844a7 Backed out changeset 0adb1474cc23 (bug 1469148) for failing bc at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_capture_secondary_click.js on a CLOSED TREE 2018-09-05 23:38:31 +03:00
tushararora.cs
a50bc5b5f2 Bug 1414566 browser.menus.update() does not support updating icon r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4628

--HG--
extra : moz-landing-system : lando
2018-09-04 14:25:37 +00:00
Arshad Kazmi
70701eba6e Bug 1469148 - Add button info to click event of contextMenus API r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4960

--HG--
extra : moz-landing-system : lando
2018-09-05 16:33:50 +00:00
Arshad Kazmi
43fb2c87eb Bug 1396684 - Allow extensions to access tab's "attention" flag r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3984

--HG--
extra : moz-landing-system : lando
2018-08-28 14:41:31 +00:00
Oriol Brufau
6be8c01caa Bug 1479129 - Implement support for updateProperties.highlighted in browser.tabs.update(). r=mixedpuppy,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3800

--HG--
extra : moz-landing-system : lando
2018-08-23 22:09:45 +00:00
Rob Wu
36516a10a8 Bug 1475842 - Change parameter format in browser.search API r=rpl
Changes to browser.search.search API:
- Change the positional parameters to an object parameter.
- Rename "engineName" to "engine", and make this an optional parameter.
- Rename "searchTerms" to "query".

Changes to browser.search.search implementation:
- Simplify gBrowser getter. None of the "!gBrowser" conditionals are
  necessary, as demonstrated by the new options page+sidebar tests
  (which passed even after  removing the `if (!gBrowser ...)` blocks).
  Use windowTracker.topWindow for consistency with our other code.

Test changes:
- Remove unneeded name / "TEST_ID" in tests
- Use SEARCH_TERM constant in more places.
- New test: Using API from options page.
- New test: Using API from sidebar.
- New test: Using API without explicit "engine" parameter.

Differential Revision: https://phabricator.services.mozilla.com/D3417

--HG--
extra : moz-landing-system : lando
2018-08-21 14:43:46 +00:00
Rob Wu
3a260706b3 Bug 1482529 - Support "visible" in menus.create and menus.update r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3794

--HG--
extra : moz-landing-system : lando
2018-08-20 15:16:09 +00:00
Rob Wu
23cf8852bb Bug 1325814 - Add extension API to find menu target r=mixedpuppy
- Add info.targetElementId to menus.onShown event.

- Add info.targetElementId to menus.onClicked event.

- Add menus.getTargetElement API that is available to all contexts,
  including content scripts, which allows extensions to get the DOM
  element for a given targetElementId.

- Add new schema instead of re-using schemas/menus.json to avoid sending
  too much schema data (of the existing menus API) to content processes.

MozReview-Commit-ID: 6Onf7jZlIho

--HG--
extra : rebase_source : eb095d04ce381606be90d325712bfc57233d8291
2018-08-04 18:09:49 +02:00
Rob Wu
4f7e9cca86 Bug 1325814 - Remove unnecessary schemas/menus_internal.json r=mixedpuppy
This schema was inherited from Chromium (where it was an internal
implementation detail. This schema only defined the OnClickData
type, but was never actively used by our WebExtensions framework,
because menus.json already defines the OnClickData type.

Note: menus_internal.json specified the "menusInternal" namespace
which we do indeed implement in parent/ext-menus.js (and use in
child/ext-menus.js). However, none of the methods that we add to
menusInternal are actually defined in the schema.
This use of menusInternal was introduced in part 2 of bug 1333403 and
works without problems because the API schemas are not being used to
validate APIs as of part 2 of bug 1315575.

The only significance of "menusInternal" is that the namespace is
defined in browser/components/extensions/ext-browser.json,
implemented in browser/components/extensions/parent/ext-menus.js
and used by browser/components/extensions/child/ext-menus.js

MozReview-Commit-ID: 2ACpn595QZQ

--HG--
extra : rebase_source : f3e16486168dfb0baa56dda7ccf591855bbe90bb
2018-08-03 11:09:38 +02:00
Rob Wu
9287b6789f Bug 1477271 - Require "search" permission for search API r=aswan
And re-enable the test_ext_all_apis.html test to ensure that new APIs
are only available by default if the contributor really intents to.

MozReview-Commit-ID: FWIKybrk0EE

--HG--
extra : rebase_source : 58c5bd98ddb59be74b9454995cbbd3edef6c45f9
2018-07-31 20:14:03 +02:00
Shane Caraveo
aad6d3674f Bug 1378647 - support creating lazy tabs from extensions, r=JanH,mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P

--HG--
extra : rebase_source : 1c4d57ac25b00d0a63901f4fd00b11e0b5d765a5
2018-07-30 12:15:32 -03:00
Margareta Eliza Balazs
8f114fd737 Backed out changeset 6cc8354ce3c5 (bug 1378647) for causing failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_basic.html on a CLOSED TREE 2018-07-19 15:17:42 +03:00
Shane Caraveo
1466ab5a62 Bug 1378647 - support creating lazy tabs from extensions, r=mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P

--HG--
extra : rebase_source : 97a1e41f681ae3614c5db87d40c12bbe54ef18ed
2018-07-18 16:17:30 -03:00
Michael Kaply
879bad8101 Bug 1475347 - Cleanup search API - use camelCase and promise. r=aswan
MozReview-Commit-ID: 2HJYk8irppL

--HG--
extra : rebase_source : ec482d31e2930e5aeb7460f980d25a9dd2eacd29
2018-07-12 15:55:25 -05:00
Shane Caraveo
69e769ac8a Bug 1461695 change tabs.onUpdated filter name to isArticle, r=aswan
MozReview-Commit-ID: Ha0nJPMTYkJ

--HG--
extra : rebase_source : b9950ea7b4a2a52b45b1023b51ba87612aad86af
2018-06-19 10:38:26 -04:00
Michael Kaply
81556be6b8 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 650606638e580daa0c7f3b49e8fd085b039705bc
2018-06-18 10:39:12 -05:00
Oriol Brufau
6d0124af85 Bug 1424620 - Add setBadgeTextColor and getBadgeTextColor methods to browserAction r=mixedpuppy
MozReview-Commit-ID: ALYerCv3YJ7

--HG--
extra : rebase_source : 8288ef3e60517abb02d2d139df71242744940ad4
2018-07-05 19:37:08 +02:00
Brindusan Cristian
d2386dc6a2 Backed out changeset f5bfc9971285 (bug 1352598) for browser chrome failures on browser_ext_search.js. CLOSED TREE 2018-07-03 23:02:59 +03:00
Michael Kaply
cd47b3077c Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 811187b96b19d433249404791bbbfdff47bceebe
2018-06-18 10:39:12 -05:00
Ciure Andrei
442f7cad49 Backed out 1 changesets (bug 1352598) for frequent bc failures browser_ext_search.js CLOSED TREE
Backed out changeset 879fbe1b07f4 (bug 1352598)
2018-07-02 22:12:57 +03:00
Michael Kaply
49742b1fa3 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 811187b96b19d433249404791bbbfdff47bceebe
2018-06-18 10:39:12 -05:00
Adam Plaice
79a4e43a84 Bug 1364784 - Allow more modifier combinations for webextensions commands key; r=mixedpuppy,mstriemer
This allows keyboard shortcuts containing both "Ctrl" and "Alt" in the
manifest of webextensions (in the "commands" -> "suggested_key" key),
rather than just one of these modifiers. The equivalent combinations
on MacOS (any two of "Command", "Alt" and "MacCtrl") are also allowed.

Non-sensical combinations (such as "Ctrl+Command" or "Ctrl+Ctrl") are
forbidden.

MozReview-Commit-ID: 59tC2efLm5q

--HG--
extra : rebase_source : 5a9375116aab6b3c4abe96c4850e4ff857d93532
extra : intermediate-source : 507b35de0e93baccb54f83e8bce6cedfe9754dd9
extra : source : 115c5332fadc1d52940f8356f6273f0e9680657f
2018-06-02 00:56:44 +02:00
Oriol Brufau
e3e3ce5238 Bug 1464862 - Expose multiselected status to "tabs.Tab.highlighted", and allow to change it via "browser.tabs.highlight()" r=mixedpuppy
MozReview-Commit-ID: H2SiqM5ksCH

--HG--
extra : rebase_source : a8951d803c2c72fb0c6e39f4600b6aabcae69c41
2018-06-23 21:46:58 +02:00
Shane Caraveo
6bfb283891 Bug 1404724 - remove browser_style warning, fix default values, r=aswan
MozReview-Commit-ID: Akdhrm4leIQ

--HG--
extra : rebase_source : a59bdae5c2ea9d725062b2bf53ba659360966377
2018-05-29 16:55:43 -04:00
Xidorn Quan
cfe970a04f Bug 1463408 part 2 - Add profiler feature seqstyle for forcing sequential styling when profiling. r=emilio,mstange
MozReview-Commit-ID: 6fm8j7z1EbJ

--HG--
extra : rebase_source : 1715b6af2c72323f320ff3da8e46d1634f5f7367
2018-05-23 19:35:03 +10:00
Xidorn Quan
4f8d1e3a65 Bug 1463408 part 1 - Remove unused restyle profiler feature. r=mstange
MozReview-Commit-ID: F5i5W02jhEV

--HG--
extra : rebase_source : 5fdddf6383f334c831396dc8348a7d3c032c93a6
2018-05-23 19:34:23 +10:00
Michael Kaply
828ab007c4 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr

--HG--
extra : rebase_source : 7613b25201b248310f74862585fc507042445804
2018-05-18 10:30:04 -05:00
Oriol Brufau
b3b41d6f92 Bug 1419893 - Add windowId parameter in browserAction methods r=mixedpuppy
MozReview-Commit-ID: FFb4I1wmTH

--HG--
extra : rebase_source : 759d4a11fbd57b3335f7e0da746c79ef906a36e4
2018-04-06 23:18:44 +02:00
Shane Caraveo
41637c6525 Bug 1461693 - add missing params to changeInfo for tabs.onUpdated, r=rpl
MozReview-Commit-ID: 1brjyYc7PwW

--HG--
extra : rebase_source : 3a4be6a28e142f725cb750c1c2138b66ac0c7185
2018-05-21 12:53:08 -04:00
Greg Tatum
a95f839180 Bug 1447338 - Add thread "responsiveness" as a configurable feature to the Gecko Profiler; r=mstange
MozReview-Commit-ID: KTJRvQzUwsf

--HG--
extra : rebase_source : bac38dc65bf074f31b2e25f80620a6baa4c7e14d
2018-03-28 15:28:54 -05:00
Andreea Pavel
5fe937094b Backed out changeset 42abedd98732 (bug 1460910) for failing browser chrome at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sidebarAction.js on a CLOSED TREE 2018-05-18 22:59:25 +03:00
Michael Kaply
b181d9aaf9 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr

--HG--
extra : rebase_source : 9460ba4ce1661c2edc026f271dee317488115a8e
2018-05-18 10:30:04 -05:00
Brindusan Cristian
e636fe322a Backed out changeset 35089098baf8 (bug 1447338) for mochitest chrome failures on test_perf-settings-features.html CLOSED TREE 2018-05-17 19:48:34 +03:00
Greg Tatum
e642a3ee41 Bug 1447338 - Add thread "responsiveness" as a configurable feature to the Gecko Profiler; r=mstange
MozReview-Commit-ID: KTJRvQzUwsf

--HG--
extra : rebase_source : 8692309978447fcccb2b6463c15fccda23cd3069
2018-03-28 15:28:54 -05:00
Ciure Andrei
08c017397c Backed out changeset 134bf057ca61 (bug 1447338) for Android build bustages on builds/worker/workspace/build/src/tools/profiler/core/platform.cpp a=backout CLOSED TREE 2018-05-17 01:54:07 +03:00