Commit Graph

3298 Commits

Author SHA1 Message Date
William Durand
030a4eb213 Bug 1777481 - Introduce a new extension button on the toolbar. r=rpl,mstriemer,fluent-reviewers,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D151497
2022-07-19 15:10:00 +00:00
Cosmin Sabou
dcd84afd12 Bug 1776652 - disable test_ext_settings_overrides_search_mozParam.js on condprof due to permafailures. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151974
2022-07-19 05:01:28 +00:00
Butkovits Atila
7dd51c0a72 Backed out 4 changesets (bug 1742797, bug 1748808) for causing crashes at mozilla::layers::APZCTreeManagerParent::RecvUpdateZoomConstraints.
Backed out changeset 23f2a369a5a7 (bug 1748808)
Backed out changeset 5b0edd03f698 (bug 1742797)
Backed out changeset 8ed69c2c1d49 (bug 1742797)
Backed out changeset 18e11e7ea9d0 (bug 1742797)
2022-07-19 08:12:04 +03:00
Luca Greco
cb40f0a429 Bug 1748808 - Prevent browser_ext_getViews.js permafailure due to a previous test leaving mouse positioned over browserAction widget. r=willdurand
This patch includes the workaround mentioned in Bug 1748808 comment 25 as a short term workaround to prevent the test from
failure due to the position where a previous test may have moved the mouse to.

The short term test-only workaround would become unnecessary once we have landed a proper longer term fix
from Bug 1780008, and so:
- if this patch landes before Bug 1780008, as part of Bug 1780008 we should also remove this short term workaround
- if Bug 1780008 got already signed and pushed to autoland before this one, then this patch can be just dropped
  and the related bug marked as fixed by Bug 1780008.

Differential Revision: https://phabricator.services.mozilla.com/D152090
2022-07-18 18:01:52 +00:00
William Durand
0795de4a14 Bug 1779380 - Enable browser_toolbar_prefers_color_scheme.js on MacOS (non-debug). r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D151715
2022-07-13 13:07:20 +00:00
Emilio Cobos Álvarez
a904c457f1 Bug 1778374 - Make extension history API use async queries. r=mak,robwu
Differential Revision: https://phabricator.services.mozilla.com/D151237
2022-07-13 11:08:44 +00:00
Bogdan Szekely
1048f0772f Backed out changeset e3ba86211812 (bug 1772943) for causing mochitest failures on browser_html_discover_view.js CLOSED TREE 2022-07-12 13:46:27 +03:00
Barret Rennie
b19840f113 Bug 1772943 - Port osfile.jsm usage to IOUtils in toolkit/mozapps/ r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148967
2022-07-12 10:09:15 +00:00
Tooru Fujisawa
328d63ce7f Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
f009ba2983 Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Butkovits Atila
cd8e9e4ac6 Backed out changeset 8d3cd97887d1 (bug 1392125) for causing failures at browser_ext_sessions_forgetClosedTab. CLOSED TREE 2022-07-11 20:18:58 +03:00
kernp25
2a3d3bf6ef Bug 1392125 - Fix MAX_SESSION_RESULTS is not defined. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D143391
2022-07-11 15:52:07 +00:00
Tooru Fujisawa
bf0a8b781b Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
48c568867c Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa
b10d0289af Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Andreea Pavel
5464b98d45 Bug 1776135 - disable test_ext_settings_overrides_defaults.js on condprof r=Standard8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D150563
2022-07-05 06:02:57 +00:00
kernp25
0ee68a9f02 Bug 1770651 - Make sure tabs.update don't use loadURI on a discarded tab. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D149702
2022-07-04 09:10:38 +00:00
Neil Deakin
c9ddb2f4b9 Bug 1682621, remove keypress listener for main toolbar buttons, and use the inputSource to distinguish keyboard events, r=Gijs
The virtual click event is also removed. It seems this event is only used to check whether this was a key or mouse event in PanelMultiView.jsm

This also removes support for pressing the enter key to trigger these toolbarbuttons on Mac which shouldn't be happening anyway.

Differential Revision: https://phabricator.services.mozilla.com/D149285
2022-07-03 09:44:39 +00:00
mcheang
27d628ba02 Bug 1777278 - Change all references of originalEngine to appDefaultEngine in search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D150599
2022-06-30 19:26:20 +00:00
Norisz Fay
f4827a4636 Backed out 2 changesets (bug 1682621) for causing bc failures on browser_menu_touch.js CLOSED TREE
Backed out changeset 88be5107a4a1 (bug 1682621)
Backed out changeset e32910a4948b (bug 1682621)
2022-06-29 19:36:51 +03:00
Neil Deakin
4674aa45e8 Bug 1682621, remove keypress listener for main toolbar buttons, and use the inputSource to distinguish keyboard events, r=Gijs
The virtual click event is also removed. It seems this event is only used to check whether this was a key or mouse event in PanelMultiView.jsm

This also removes support for pressing the enter key to trigger these toolbarbuttons on Mac which shouldn't be happening anyway.

Differential Revision: https://phabricator.services.mozilla.com/D149285
2022-06-29 12:38:30 +00:00
Marian-Vasile Laza
3dee1242d8 Backed out 2 changesets (bug 1682621) for causing bc failures on browser_ext_browserAction_click_types.js.
Backed out changeset 31a6b027b4e7 (bug 1682621)
Backed out changeset 782fd4871c5f (bug 1682621)
2022-06-28 20:27:15 +03:00
Neil Deakin
27e54692b9 Bug 1682621, remove keypress listener for main toolbar buttons, and use the inputSource to distinguish keyboard events, r=Gijs
The virtual click event is also removed. It seems this event is only used to check whether this was a key or mouse event in PanelMultiView.jsm

This also removes support for pressing the enter key to trigger these toolbarbuttons on Mac which shouldn't be happening anyway.

Differential Revision: https://phabricator.services.mozilla.com/D149285
2022-06-28 16:02:37 +00:00
Tomislav Jovanovic
ead2b98c2f Bug 1774641 - Run content scripts on action click with ungranted host permission r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D149621
2022-06-23 21:08:56 +00:00
Joel Maher
2743cca01a Bug 1776212 - cleanup e10s in manifest conditions for bc/dt. r=aryx,necko-reviewers,extension-reviewers,preferences-reviewers,dragana,zombie
Differential Revision: https://phabricator.services.mozilla.com/D150127
2022-06-23 17:49:07 +00:00
smolnar
85cbea3145 Backed out 2 changesets (bug 1774641) for causing browser-chrome failures in browser/components/extensions/test/browser/browser_ext_browserAction_activeScript.js CLOSED TREE
Backed out changeset e381563e7786 (bug 1774641)
Backed out changeset b57a7dca9b97 (bug 1774641)
2022-06-23 17:54:12 +03:00
Tomislav Jovanovic
5ef3e62f87 Bug 1774641 - Run content scripts on action click with ungranted host permission r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D149621
2022-06-23 13:04:09 +00:00
kernp25
4810ec320e Bug 1772704 - Fix browser/components/extensions/test/browser/browser_ext_sessions_incognito.js test. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148344
2022-06-23 08:46:33 +00:00
Joel Maher
5d7fe68032 Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 16:47:06 +00:00
Bogdan Szekely
72726c29d0 Backed out changeset 7b707ff8a7d1 (bug 1769154) for causing xpcshell failures on test_system_upgrades.js 2022-06-22 17:17:10 +03:00
Joel Maher
c0af767fd4 Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 13:03:46 +00:00
Emilio Cobos Álvarez
51af54fe65 Bug 1774378 - Make select code harder to mess up. r=Gijs
Right now we rely on the menulist to be injected by hand in all the
relevant windows. Instead create it lazily, making the select code more
standalone.

The DevTools window was missing it, for example.

Differential Revision: https://phabricator.services.mozilla.com/D149620
2022-06-21 21:42:58 +00:00
Tomislav Jovanovic
b9e226bdd5 Bug 1769793 - Add origin controls for current website from action context menu r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D148510
2022-06-20 20:53:01 +00:00
Alexandre Poirot
531f69f66a Bug 1770363 - [devtools] Implement on-demand multiprocess debugging in TargetCommand API. r=nchevobbe,rpl
This new feature will only work in the "MBT", when devtools.browsertoolbox.fission is true.

It is based on yet another preference, devtools.browsertoolbox.scope,
which is meant to be toggle by DevTools UI only (see next patches).

When the new pref is set to "everything", we will observe FRAME and PROCESS targets
and so debug everything running in content processes.
But when it is set to "parent-process", we will only observe WORKER
and be restricted to parent process resources only.

Differential Revision: https://phabricator.services.mozilla.com/D146891
2022-06-20 10:12:30 +00:00
Tom Schuster
214369e07f Bug 1738694 - Pass around hasValidUserGestureActivation and fromExternal when opening links from the UI or command-line. r=Gijs,edgar
Differential Revision: https://phabricator.services.mozilla.com/D147515
2022-06-15 19:01:02 +00:00
Andreas Farre
c1d0c7e28e Bug 1756995 - Optimize docshell load end session store collection. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D146207
2022-06-15 11:15:35 +00:00
Bogdan Szekely
2b3b8e5d7b Backed out 2 changesets (bug 1756995, bug 1772344) for causing mochitest failures on browser_recently_closed_tabs.js CLOSED TREE
Backed out changeset 449e4b4fae71 (bug 1772344)
Backed out changeset 902294133e7f (bug 1756995)
2022-06-14 16:44:06 +03:00
Andreas Farre
73acff5f1b Bug 1756995 - Optimize docshell load end session store collection. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D146207
2022-06-14 11:54:45 +00:00
Tooru Fujisawa
28293a6349 Bug 1772100 - Part 8: Use plain object for lazy getter in browser/components/extensions/. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148018
2022-06-06 22:46:22 +00:00
Tooru Fujisawa
f947410342 Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 04:42:09 +00:00
Tooru Fujisawa
c56eb55371 Bug 1772313 - Part 5: Stop calling ChromeUtils.defineModuleGetter for Services. r=kmag,webcompat-reviewers,pip-reviewers,denschub,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D148158
2022-06-06 04:42:06 +00:00
Molnar Sandor
4c2b06df41 Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa
b580e51d8f Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 02:49:13 +00:00
Tooru Fujisawa
dae44f3ce8 Bug 1772313 - Part 5: Stop calling ChromeUtils.defineModuleGetter for Services. r=kmag,webcompat-reviewers,pip-reviewers,denschub,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D148158
2022-06-06 02:49:10 +00:00
Gabriele Svelto
72c2890018 Bug 1771875 - Add BrowserTestUtils.reloadTab() and use it everywhere r=mconley,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147732
2022-06-01 09:34:05 +00:00
Shane Caraveo
8a1c261452 Bug 1739114 Enforce addon privilege during manifest parsing for access to privileged features from temporarily installed addons. r=robwu,mixedpuppy,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D145687
2022-05-30 18:41:37 +00:00
Mozilla Releng Treescript
f6f71a6759 Bug 1768371 - Missing Context menu on "Bookmarks Toolbar", "Bookmarks Menu" and "Other Bookmarks" r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D146089
2022-05-27 09:47:58 +00:00
Luca Greco
08f791d8ef Bug 1770804 - Fix wrong format for the expected option used in browser_ext_windows_create_params.js AddonTestUtils.checkMessages call. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D147209
2022-05-26 14:13:43 +00:00
Luca Greco
b2565a2a3f Bug 1767550 - Make sure defaultSearch overrides levelOfControl is consistent with the default engine currently set before overriding the current default. r=mixedpuppy
For add-ons installed before the changes introduced by Bug 1757760 ExtensionSettingStorage.getLevelOfControl resolves to "controlled_by_this_extension"
even if the user did not opt-in when prompted (either by never answer the prompt, or by setting No).

The changes landed by Bug 1757760 did make sure that for a newly installed extensions ExtensionSettingsStorage.getLevelOfControl resolves to "controllable_by_this_extension"
until the user actually explicitly opt-in to the default search engine provided by the installed extension, by making sure to initially set as disabled
the defaultSearch setting for a newly installed extension (which will then be enabled if the user does explicitly opt-in).

Unfortunately, that change doesn't have any effect if the extension has been installed in a Firefox version that did not yet include Bug 1757760 changes,
in that case the setting listed in the pre-existing extension-settings.json file in the Firefox profile will still have the setting marked
as enabled even if the user did never opt-in.

This patch includes a new test task that is injecting into extension-settings.json the data needed to recreate the inconsistent state
(level of control set to "controlled_by_this_extension" while the related search engine isn't actually set as default).

In addition to the new test case, this patch is applying the following changes to `chrome_settings_overrides`:

- in the `setDefault` method: if ExtensionSettingsStorage.getLevelOfControl resolves to "controlled_by_this_extension"
  but the default search engine currently set is not the one associated to the extension, then explicitly disable the
  setting and recompute the level of control (which will resolve to "controllable_by_this_extension" as a side effect
  of explicitly disable the setting)

- in the `ensureSetting` method: remove the check on `item?.enabled`, because the result of ExtensionSettingsStorage.getSetting
  does actually never have an `enabled` property set, instead it is part of the content of the extension-settings.json file
  and it is used internally by ExtensionSettingsStorage without being returning in the format of the object returned by
  calling ExtensionSettingsStorage.getSetting
  (see https://searchfox.org/mozilla-central/rev/97c902e8f92b15dc63eb584bfc594ecb041242a4/toolkit/components/extensions/ExtensionSettingsStore.jsm#164-177)

Differential Revision: https://phabricator.services.mozilla.com/D146294
2022-05-25 18:46:12 +00:00
Cristian Tuns
9b5c5999f2 Backed out changeset 6ad49f7d560a (bug 1756995) for causing mochitest failures on browser_firefoxview_tab.js CLOSED TREE 2022-05-25 14:27:30 -04:00