Commit Graph

450 Commits

Author SHA1 Message Date
Shane Caraveo
cd3dba3928 Bug 1711168 allow extension pages to be loaded as top level tabs by other extensions r=rpl,geckoview-reviewers,calu
Ensure extensions can manage tabs and sessions that include tabs from other extensions.  The parent
patch to this introduces cross-extension access validation.  However that breaks this specific use case
that we need to continue supporting.  This patch modifies three extension apis, tab.create/update and
windows.create to allow the creation of extension tabs which cannot be otherwise accessed.

Differential Revision: https://phabricator.services.mozilla.com/D151766
2022-08-02 17:08:58 +00:00
Butkovits Atila
b01ed36979 Backed out 3 changesets (bug 1711168, bug 1773115) for causing failures at test_ext_web_accessible_resources.html. CLOSED TREE
Backed out changeset 703c909eb009 (bug 1773115)
Backed out changeset 902385a7ce60 (bug 1711168)
Backed out changeset 3d061ce03de7 (bug 1711168)
2022-07-27 00:13:26 +03:00
Shane Caraveo
26d3eac02e Bug 1711168 allow extension pages to be loaded as top level tabs by other extensions r=rpl
Ensure extensions can manage tabs and sessions that include tabs from other extensions.  The parent
patch to this introduces cross-extension access validation.  However that breaks this specific use case
that we need to continue supporting.  This patch modifies three extension apis, tab.create/update and
windows.create to allow the creation of extension tabs which cannot be otherwise accessed.

Differential Revision: https://phabricator.services.mozilla.com/D151766
2022-07-26 19:39:14 +00:00
Luca Greco
07a8ac1f65 Bug 1739114 - Moved privileged WebExtensions permissions in their own JSONSchema type and added a new custom privileged keyword on each privileged manifest fields. r=robwu,mixedpuppy
This patch includes only the subset of D145687 changes related to the reworked JSONSchema data, plus some minor changes to Schemas.jsm to take the new
JSONSchema type ("PrivilegedPermissions") and the new custom JSONSchema keyword (the boolean "privileged" property used to identify manifest fields
only allowed in privileged extensions).

Besides the changes to the schema data, this patch is not expected to introduce any difference in behavior and so it could also land on its own
if needed (and the rest of the changes landed separately).

Differential Revision: https://phabricator.services.mozilla.com/D146800
2022-05-20 08:55:03 +00:00
Marian-Vasile Laza
460357b17b Backed out changeset d3577f741ef5 (bug 1739114) for causing xpcshell failures on test_ext_permissions.js. CLOSED TREE 2022-05-19 23:35:07 +03:00
Luca Greco
7568f932a6 Bug 1739114 - Moved privileged WebExtensions permissions in their own JSONSchema type and added a new custom privileged keyword on each privileged manifest fields. r=robwu,mixedpuppy
This patch includes only the subset of D145687 changes related to the reworked JSONSchema data, plus some minor changes to Schemas.jsm to take the new
JSONSchema type ("PrivilegedPermissions") and the new custom JSONSchema keyword (the boolean "privileged" property used to identify manifest fields
only allowed in privileged extensions).

Besides the changes to the schema data, this patch is not expected to introduce any difference in behavior and so it could also land on its own
if needed (and the rest of the changes landed separately).

Differential Revision: https://phabricator.services.mozilla.com/D146800
2022-05-19 18:20:59 +00:00
Rob Wu
1b1a03702b Bug 1764566 - Update API availability in MV3 r=mixedpuppy
- Remove unsupported tabs API definitions that are gone in MV3.
- Mark content script APIs (superseded by scripting APIs) as MV2-only.
- Re-enable extension.getBackgroundPage in MV2 since it makes sense with
  event pages, and we enabled runtime.getBackgroundPage in bug 1759308.
- Add tests that verify API availability in MV3.

Differential Revision: https://phabricator.services.mozilla.com/D143721
2022-04-17 16:43:50 +00:00
Shane Caraveo
448d24a256 Bug 1761814 prevent menus onclick property with event pages and mv3 r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D142242
2022-04-04 22:16:56 +00:00
kernp25
f3b6f248eb Bug 1372100 - Support muted in tabs.create. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D140677
2022-03-23 21:20:31 +00:00
Richa Sharma
f690bb5cd5 Bug 1730931 - Supporting an array of cookieStoreId in the tabs.query API. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D125868
2021-12-07 13:46:53 +00:00
Shane Caraveo
6105a0cf3a Bug 1706398 support action context type for context menus r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D116858
2021-06-15 14:51:13 +00:00
Shane Caraveo
582b330975 Bug 1706398 support internal command _execute_action r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D114028
2021-06-15 14:51:12 +00:00
Rob Wu
288ff14013 Bug 1713674 - Remove unsupported bookmarks.import/export definition r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D116422
2021-05-31 21:21:19 +00:00
Shane Caraveo
0e77195c13 Bug 1697059 require favicon to be in the extension xpi r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108270
2021-04-30 20:31:41 +00:00
Rob Wu
026cd90f5a Bug 1680279 - Support "url" properties in filter r=rpl
The patch for bug 1498432 will include a unit test that uses
tabs.onUpdated with the "url" filter for "properties".

The updated test here verifies that the tabs.onUpdated event does not
include other properties in changeInfo when filtering by "status".

Differential Revision: https://phabricator.services.mozilla.com/D106733
2021-03-07 16:16:36 +00:00
Alexandru Michis
d28b5e906b Backed out 2 changesets (bug 1498432, bug 1680279) for causing bc failures in browser_ext_tabs_discard_reversed.js
CLOSED TREE

Backed out changeset 9ce142e600af (bug 1498432)
Backed out changeset 4c8c60ac262a (bug 1680279)
2021-03-05 02:50:58 +02:00
Rob Wu
c53b19cfab Bug 1680279 - Support "url" properties in filter r=rpl
The patch for bug 1498432 will include a unit test that uses
tabs.onUpdated with the "url" filter for "properties".

The updated test here verifies that the tabs.onUpdated event does not
include other properties in changeInfo when filtering by "status".

Differential Revision: https://phabricator.services.mozilla.com/D106733
2021-03-04 20:50:35 +00:00
harry
e4a3bcc261 Bug 1687313 - Add international Amazon search suggestions URLs. r=Standard8,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D102210
2021-01-21 21:57:41 +00:00
Shane Caraveo
3055f359f5 Bug 1253129 warn when using focused property with windows.create r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D76944
2020-12-18 19:06:56 +00:00
Csoregi Natalia
1673685a38 Backed out 2 changesets (bug 1253129) for causing failures on browser_ext_windows_create_params.js. CLOSED TREE
Backed out changeset ac8d0372dcb1 (bug 1253129)
Backed out changeset 016006d107b6 (bug 1253129)
2020-12-17 00:50:20 +02:00
Shane Caraveo
a5582fcca6 Bug 1253129 warn when using focused property with windows.create r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D76944
2020-12-16 19:55:45 +00:00
Agi Sferro
710f8513c3 Bug 1625233 - Refactor ext-browsingData code so it can be shared with other platforms. r=rpl,robwu
Depends on D96150

Differential Revision: https://phabricator.services.mozilla.com/D96152
2020-12-04 20:52:52 +00:00
Tom Schuster
bae1a13cae Bug 1670811 - Basic browsingData.remove cookieStoreId support for clearing cookies r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93275
2020-11-03 18:28:40 +00:00
Dorel Luca
259c103ad1 Backed out 4 changesets (bug 1670811) for Browser-chrome failures in extensions/test/browser/browser_ext_browsingData_localStorage.js. CLOSED TREE
Backed out changeset d8c8748e2368 (bug 1670811)
Backed out changeset edde0caa4fa2 (bug 1670811)
Backed out changeset 3ce25bc93634 (bug 1670811)
Backed out changeset 2e6562022528 (bug 1670811)
2020-11-03 16:29:56 +02:00
Tom Schuster
e9d904c316 Bug 1670811 - Basic browsingData.remove cookieStoreId support for clearing cookies r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93275
2020-11-02 21:00:14 +00:00
Narcis Beleuzu
3dfd969748 Backed out 4 changesets (bug 1670811) for mochitest failures on test_ext_cookies_containers.html
Backed out changeset 26b4582e47ae (bug 1670811)
Backed out changeset 3de473631613 (bug 1670811)
Backed out changeset ef9da168cdfd (bug 1670811)
Backed out changeset 3175566381a6 (bug 1670811)
2020-11-02 18:13:48 +02:00
Tom Schuster
4132331572 Bug 1670811 - Basic browsingData.remove cookieStoreId support for clearing cookies r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93275
2020-11-02 12:22:53 +00:00
Ricky Stewart
31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
612312a64c Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
065d2eb893 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
43baed3c18 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Tomislav Jovanovic
6c1385c575 Bug 1636508 - Add options to select captureTab area and scale r=robwu,geckoview-reviewers,agi
Also fix test for HiDPI monitors, and refactor it to remove duplicate code for captureVisibleTab.

Differential Revision: https://phabricator.services.mozilla.com/D89128
2020-09-10 19:38:17 +00:00
Dale Harvey
55dd657467 Bug 1650881 - Support multiple aliases in webextensions r=Standard8,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D84921
2020-08-06 12:10:30 +00:00
Rob Wu
f7ffeeca35 Bug 1651665 - Remove http:-URL validation bypasses from chrome_settings_overrides.search_provider r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D83013
2020-07-10 17:51:41 +00:00
Dana Keeler
49157578f7 Bug 1649518 - 1/3: revert a34e77d6c3bf in preparation of enabling osclientcerts by default r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D81888
2020-07-06 19:29:17 +00:00
Csoregi Natalia
5ac3e1fe4d Backed out 2 changesets (bug 1253129) for failures on browser_ext_windows_create_params.js. CLOSED TREE
Backed out changeset 1881ebd34b2b (bug 1253129)
Backed out changeset 93f852ad5d28 (bug 1253129)
2020-06-29 22:28:56 +03:00
Shane Caraveo
7df41e1375 Bug 1253129 warn when using focused property with windows.create r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D76944
2020-06-26 16:49:20 +00:00
Mélanie Chauvel (ariasuni)
534b097855 Bug 1402256 - Add WebExtensions API to “warm up” a tab r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D71873
2020-06-25 11:45:47 +00:00
Drew Willcoxon
5eb2c44695 Bug 1632105 - Implement dynamic result types. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D71921
2020-06-23 19:14:43 +00:00
Dana Keeler
0c5609b6c7 Bug 1637807 - add browser.pkcs11.autoload API to allow webextensions to enable osclientcerts r=mixedpuppy CLOSED TREE
This patch adds the setting `browser.pkcs11.autoload` that can be set to `true`
to cause Firefox to load the built-in "osclientcerts" module, which uses OS APIs to
provide access to client certificates. This means that webextensions can opt to
use a module developed and supported by Mozilla for TLS client authentication
rather than 3rd party modules that have historically caused stability and
performance issues for users.

This API is currently only available on Windows and macOS.

Differential Revision: https://phabricator.services.mozilla.com/D78353
2020-06-09 23:10:28 +00:00
Noemi Erli
d5af740060 Backed out changeset a34e77d6c3bf (bug 1637807) for crashes @InvalidArrayIndex_CRASH CLOSED TREE 2020-06-10 04:52:30 +03:00
Dana Keeler
cee0155c6c Bug 1637807 - add browser.pkcs11.autoload API to allow webextensions to enable osclientcerts r=mixedpuppy
This patch adds the setting `browser.pkcs11.autoload` that can be set to `true`
to cause Firefox to load the built-in "osclientcerts" module, which uses OS APIs to
provide access to client certificates. This means that webextensions can opt to
use a module developed and supported by Mozilla for TLS client authentication
rather than 3rd party modules that have historically caused stability and
performance issues for users.

This API is currently only available on Windows and macOS.

Differential Revision: https://phabricator.services.mozilla.com/D78353
2020-06-09 23:10:28 +00:00
Myeongjun Go
19f4114f51 Bug 1612013 - add search provider with http for localhost URL r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D77644
2020-06-02 04:57:04 +00:00
Narcis Beleuzu
0bc81ca44a Backed out changeset 082fb07b2a02 (bug 1253129) for bc failures on browser_ext_windows_create_params.js . CLOSED TREE 2020-05-29 00:06:56 +03:00
Shane Caraveo
5d9165f448 Bug 1253129 warn when using focused property with windows.create r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D76944
2020-05-27 22:59:17 +00:00
Harry Twyford
fdb875cd69 Bug 1634279 - Allow accessing the TopSites feed even if Top Sites are hidden on the new tab page. r=dao,thecount,mixedpuppy
Creates a new pref, "...activity-stream.feeds.system.topsites" to control whether TopSitesFeed is enabled. The existing "...activity-stream-feeds.topsites" pref is kept to allow users to downgrade and to ensure that people who disabled Top Sites in the past will continue to not see Top Sites on the New Tab Page -- the difference being that Top Sites will now be generated for those users.

Differential Revision: https://phabricator.services.mozilla.com/D75603
2020-05-27 16:38:03 +00:00
Csoregi Natalia
69202f3fdb Backed out changeset 9855eb03a9f1 (bug 1402256) for failures on test_ext_all_apis.html. CLOSED TREE 2020-05-26 06:43:06 +03:00
Mélanie Chauvel (ariasuni)
a2705d751b Bug 1402256 - Add WebExtensions API to “warm up” a tab r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D71873
2020-05-26 02:29:45 +00:00
Razvan Maries
840037594e Backed out changeset 9b32011328f0 (bug 1402256) for multiple perma failures. CLOSED TREE 2020-05-17 23:23:15 +03:00