Commit Graph

2805 Commits

Author SHA1 Message Date
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
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
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
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
Andreas Farre
139b0999f2 Bug 1756995 - Optimize docshell load end session store collection. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D146207
2022-05-25 16:33:54 +00:00
Luca Greco
5e68e9a62d Bug 1770288 - Fix wrong parameter type signature in AddonTestUtils.checkMessages call in browser_ext_tabs_insertCSS.js. r=willdurand
This other call to AddonTestUtils.checkMessage is also using a `forbidden` option wrongly set to the regular expression,
and the manual `messages.filter(...)` is definitely a workaround for preventing an intermittent similar to the one
fixed in the other patch. Better to fix this other call even if not strictly related to this bugzilla issue.

Depends on D146935

Differential Revision: https://phabricator.services.mozilla.com/D146936
2022-05-23 17:19:38 +00:00
Mathieu Leplatre
d4a89f2c4b Bug 1702759 - Remove bucket name preference r=robwu
This introduces a breaking change: the buckets cannot be changed via preferences anymore.

Before landing this patch, we should have a released a new version of the Remote Settings DevTools that is compatible with this new API.

Differential Revision: https://phabricator.services.mozilla.com/D145455
2022-05-23 16:24:57 +00:00
Mark Banner
cc09541457 Bug 1769569 - Automatically replace Components.* with C* in sjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D146451
2022-05-18 08:13:19 +00:00
Sebastian Hengst
e8e4f38731 Backed out 5 changesets (bug 1769569) for causing devtools' browser/browser_page_redirection.js to fail. CLOSED TREE
Backed out changeset 66a42eb3a366 (bug 1769569)
Backed out changeset d3cc9629cd9a (bug 1769569)
Backed out changeset edcd3dade079 (bug 1769569)
Backed out changeset 29d8dd058b7a (bug 1769569)
Backed out changeset 1aed34fdf2d3 (bug 1769569)
2022-05-17 19:49:17 +02:00
Mark Banner
82aef582ff Bug 1769569 - Automatically replace Components.* with C* in sjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D146451
2022-05-17 16:50:33 +00:00
Emilio Cobos Álvarez
afb69e165e Bug 1768278 - Prevent negative margins from causing us to flip / resize / slide popups. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D145879
2022-05-17 14:37:23 +00:00
Bogdan Szekely
961cae0445 Bug 1767952 fixed lint failures r=fix CLOSED TREE 2022-05-13 16:36:30 +03:00
lyavor
d77f6d400a Bug 1767952 - Update all .sjs test files that use base64ToString() instead of atob. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D145701
2022-05-13 12:20:23 +00:00
Norisz Fay
859fb66266 Backed out changeset 31a206537bb6 (bug 1767952) for causing lint failure on authenticate.sjs CLOSED TREE 2022-05-12 17:47:13 +03:00
lyavor
a66a97d43e Bug 1767952 - Update all .sjs test files that use base64ToString() instead of atob. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D145701
2022-05-12 13:58:24 +00:00
William Durand
0b2f83c246 Bug 1766615 - Enable scripting APIs in MV2. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D145629
2022-05-10 14:30:24 +00:00
kernp25
1938ec1743 Bug 1654355 - Fix activeTab with middle click. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D143876
2022-04-28 08:35:41 +00:00
Luca Greco
49b448f3e0 Bug 1747813 - ExtensionPopups ViewPopup class should not block the parser when a browserAction popup navigated between extension pages. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D143394
2022-04-27 16:35:46 +00:00
Oriol Brufau
0fc0ba7687 Bug 1765747 - Fix intermittent failure in browser_ext_tabs_onCreated.js. r=mixedpuppy
It seems that tab creation may sometimes trigger 'status' updates.
It may depend on whether about:newtab is cached or has to be loaded.

Differential Revision: https://phabricator.services.mozilla.com/D144285
2022-04-25 08:38:05 +00:00
Mark Banner
c6d4f0d51f Bug 1725952 - Upgrade ESLint to v8.x. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144002
2022-04-22 11:23:30 +00:00
Oriol Brufau
ce0f675cd9 Bug 1764452 - Avoid tabs.onUpdated events for 'attention' when value doesn't change. r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D143553
2022-04-21 08:30:07 +00:00
Oriol Brufau
b0af8ae997 Bug 1764107 - Fix browser_ext_tabs_update_highlighted.js to avoid potential timeouts. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D143546
2022-04-21 08:29:21 +00:00
kernp25
c73a299858 Bug 1493396 - Make browser.permissions.request work in WebExtension sidebar. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D143084
2022-04-21 08:28:54 +00:00
Alexandre Poirot
29c6f7d5ff Bug 1764505 - [devtools] Migrate Tool's definition isTargetSupport to isToolSupported. r=nchevobbe
And pass a toolbox instead of only the toplevel target.
It helps identify the browser toolbox and easily enable/disable tools for it.

Differential Revision: https://phabricator.services.mozilla.com/D143628
2022-04-20 15:15:06 +00:00
Luca Greco
92da1c3205 Bug 1763043 - Fix browser_ext_menus_eventpage.js intermittent failures. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D143996
2022-04-19 19:50:06 +00:00
Rob Wu
aaac457a1d Bug 1723156 - Warn instead of fail for manifest version mismatches r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D143720
2022-04-17 16:43:49 +00:00
Shane Caraveo
8a81b8a988 Bug 1762394 menu startupCache persistence r=robwu
Add a StartupCache for menus so they are recreated when extensions use event pages.

Differential Revision: https://phabricator.services.mozilla.com/D139789
2022-04-07 22:26:19 +00:00
Shane Caraveo
d47baeee32 Bug 1748558 enforce requirement of id in menus apis for event pages r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D138489
2022-04-04 22:16:55 +00:00
Shane Caraveo
9e2c9b1e0e Bug 1748558 persistence for menus events r=robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D138488
2022-04-04 22:16:54 +00:00
Andreea Pavel
e622e3f051 Bug 1722607 - disable browser_ext_tabs_discard_reversed.js on linux64 r=intermittent-reviewers,MasterWayZ,robwu
Differential Revision: https://phabricator.services.mozilla.com/D142287
2022-04-02 20:19:56 +00:00
Shane Caraveo
594876b513 Bug 1748567 support persistent events in tabs api r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D140915
2022-03-31 23:29:25 +00:00
Tooru Fujisawa
845f7c0588 Bug 1762326 - Do not get information about a tab with empty history in browser.sessions.getRecentlyClosed. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D142526
2022-03-31 16:36:10 +00:00
Norisz Fay
eab63d7fa6 Backed out 3 changesets (bug 1748558, bug 1761814) for causing bc failures on browser_ext_contextMenus_commands.js CLOSED TREE
Backed out changeset af7fa12fd8f2 (bug 1761814)
Backed out changeset 4dbc1e13c9ce (bug 1748558)
Backed out changeset d254a677ce9e (bug 1748558)
2022-03-31 18:10:01 +03:00
Shane Caraveo
e9cf249fc1 Bug 1748558 enforce requirement of id in menus apis for event pages r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D138489
2022-03-31 13:50:36 +00:00
Shane Caraveo
142e6783ad Bug 1748558 persistence for menus events r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D138488
2022-03-31 13:50:35 +00:00
Emilio Cobos Álvarez
069226d949 Bug 1762081 - Add a hidden pref to default to a unified chrome/content color-scheme. r=Gijs
Thunderbird wants this. I could put the check in C++ instead, but this
is simple enough IMO.

Differential Revision: https://phabricator.services.mozilla.com/D142405
2022-03-30 17:24:01 +00:00
Gijs Kruitbosch
edda40141b Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +00:00
Rob Wu
86b2fcd91f Bug 1556427 - Add node.title to bookmarks.onRemoved event r=Standard8,willdurand,markh
The `bookmarks.onRemoved` event should have a `title` attribute
reflecting the title of the removed bookmark. This behavior is
documented in an example at:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks/onRemoved

That documented example was reportedly broken: https://github.com/mdn/content/issues/13052

Differential Revision: https://phabricator.services.mozilla.com/D139293
2022-03-30 12:57:28 +00:00