Commit graph

329 commits

Author SHA1 Message Date
Mark Striemer
7aba48c482 Bug 1303384 - Part 4: Localize command descriptions r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D6346

--HG--
extra : moz-landing-system : lando
2019-01-12 02:25:23 +00:00
Denis Palmeiro
1d2e62c07a Bug 1497016 - Add an API to extract tracelogger data and use this within the gecko profiler r=mstange,djvj
Add a new class to extract tracelogger data using chunked buffers and use this to write the data out to the profiler JSON output.  Copying the data in chunks lets us minimize our memory overhead when writing out to the profiler so a large array of millions of elements does not need to be allocated ahead of time.

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

--HG--
extra : moz-landing-system : lando
2018-12-04 21:43:38 +00:00
hawaiianchimp
53d1150f9c Bug 1500320 - Updating the omnibox keyword regex to allow trailing slashes r=robwu,aswan
Previously the omnibox keyword would not allow trailing slashes, such as go/
Chrome allows this keyword, and Firefox should allow this too.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 23:16:22 +00:00
Cosmin Sabou
e1e8f2ea69 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
Ryan Hendrickson
c81dc8dd55 Bug 1500479 - Part 2: expose tab successors in browser.tabs; r=mixedpuppy,rpl
1. Add successorTabId to the Tab type, so that it will be returned in, e.g.,
   browser.tabs.get calls

2. Extend or create the following methods on the browser.tabs API:
  - update: add successorTabId as an optional property on the provided
    updateProperties object
  - moveInSuccession: new method that manipulates tab successors in bulk

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

--HG--
extra : moz-landing-system : lando
2018-11-26 04:17:00 +00:00
Ryan Hendrickson
86f002c544 Bug 1500479 - Part 1: browser.tabs.onActivated; r=mixedpuppy,rpl,JanH
Add an optional previousTabId property to the onActivated event,
which is present if the previously activated tab is still open.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 04:16:30 +00:00
Nazım Can Altınova
52910a3163 Bug 1476775 - Part 1: Discard samples that are older than given duration r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6267

--HG--
extra : moz-landing-system : lando
2018-11-21 14:13:15 +00:00
Narcis Beleuzu
7ea4ed8008 Backed out 2 changesets (bug 1500479) for bc failures on browser_ext_tabs_update_highlighted.js. CLOSED TREE
Backed out changeset e93f7c2b5263 (bug 1500479)
Backed out changeset 838185d7a6e7 (bug 1500479)
2018-11-15 21:05:39 +02:00
Ryan Hendrickson
1a95942b97 Bug 1500479 - Part 2: expose tab successors in browser.tabs; r=mixedpuppy,rpl
1. Add successorTabId to the Tab type, so that it will be returned in, e.g.,
   browser.tabs.get calls

2. Extend or create the following methods on the browser.tabs API:
  - update: add successorTabId as an optional property on the provided
    updateProperties object
  - moveInSuccession: new method that manipulates tab successors in bulk

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

--HG--
extra : moz-landing-system : lando
2018-11-14 22:40:52 +00:00
Ryan Hendrickson
23e955ddbf Bug 1500479 - Part 1: browser.tabs.onActivated; r=mixedpuppy,rpl,JanH
Add an optional previousTabId property to the onActivated event,
which is present if the previously activated tab is still open.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 15:17:16 +00:00
Andreea Pavel
71b3a6709d Backed out 2 changesets (bug 1500479) for failing bc at browser/components/extensions/test/browser/browser_ext_tabs_events.js on a CLOSED TREE
Backed out changeset 6f209bee42c5 (bug 1500479)
Backed out changeset 02ea631f55c3 (bug 1500479)
2018-11-14 21:09:19 +02:00
Ryan Hendrickson
180811af32 Bug 1500479 - Part 2: expose tab successors in browser.tabs; r=mixedpuppy,rpl
1. Add successorId to the Tab type, so that it will be returned in, e.g.,
   browser.tabs.get calls

2. Extend or create the following methods on the browser.tabs API:
  - update: add successorTabId as an optional property on the provided
    updateProperties object
  - moveInSuccession: new method that manipulates tab successors in bulk

Depends on D4731

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

--HG--
extra : moz-landing-system : lando
2018-11-14 17:24:36 +00:00
Ryan Hendrickson
253883c531 Bug 1500479 - Part 1: browser.tabs.onActivated; r=mixedpuppy,rpl,JanH
Add an optional previousTabId property to the onActivated event,
which is present if the previously activated tab is still open.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 17:22:26 +00:00
Michael Kaply
3a96af1460 Bug 1500741 - Support encoding for WebExtension engines. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D10941

--HG--
extra : moz-landing-system : lando
2018-11-06 17:34:31 +00:00
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
Diego Pino Garcia
87dc896de6 Bug 1440700 - Add frameId in onClickData in menus.json r=mixedpuppy
--HG--
extra : amend_source : 8c7225a258d9ecb1d5e59c6957b9a934b47abd3a
2018-11-28 00:29:11 +02: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