Commit Graph

3839 Commits

Author SHA1 Message Date
Marc Seibert
288359ceb2 Bug 1833091 - Replacing all get refs of UrlbarInput 'inputField.value' with '.value'.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D180085
2023-06-07 14:59:13 +00:00
ganna
6ae89f2f46 Bug 1814414 - Replace constructed xul label with moz-support-link in ExtensionControlledPopup.jsm r=extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D179835
2023-06-07 14:27:39 +00:00
Mark Banner
40de601f11 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Narcis Beleuzu
ec23d338d8 Backed out changeset 862bd1ab18fd (bug 1833091) for bc failure on browser_ext_webNavigation_urlbar_transitions.js . CLOSED TREE 2023-06-06 19:05:07 +03:00
Alexandre Poirot
1af6128178 Bug 1822782 - [devtools] Use location.source.id instead of location.sourceId. r=devtools-reviewers,bomsy,extension-reviewers,rpl
Now location objects are slightly different between SourceMapLoader and Debugger frontend.
SourceMapLoader doesn't make any use of the source objects, so I only pass `sourceId`.
This will reduce the amount of data transferred between the main thread and source-map worker.
But this requires mapping location objects in and out of the source map worker.
We were already mapping location objects returned by the worker in order to lookup
for the related source object.

Also make SourceMapLoader return null when the location doesn't map,
so that it is easier to identify when it doesn't map and prevent having to do:
`originalLocation.sourceId == location.sourceId`.

Differential Revision: https://phabricator.services.mozilla.com/D178397
2023-06-06 14:42:38 +00:00
Marc Seibert
7d202de3f8 Bug 1833091 - Replacing all get refs of UrlbarInput 'inputField.value' with '.value'.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D180085
2023-06-06 13:46:55 +00:00
Narcis Beleuzu
af051f5347 Backed out 3 changesets (bug 1822782, bug 1822783) for dt failure on browser_dbg-old-breakpoint.js . CLOSED TREE
Backed out changeset d65af714b0fd (bug 1822783)
Backed out changeset c76cbc9a0c4a (bug 1822782)
Backed out changeset 684217cdfebd (bug 1822782)
2023-06-06 15:10:18 +03:00
Rob Wu
2cf8688545 Bug 1836673 - Document AppTestDelegate and AppUiTestDelegate r=geckoview-reviewers,extension-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D179891
2023-06-06 11:23:41 +00:00
Alexandre Poirot
3e3c13d254 Bug 1822782 - [devtools] Use location.source.id instead of location.sourceId. r=devtools-reviewers,bomsy,extension-reviewers,rpl
Now location objects are slightly different between SourceMapLoader and Debugger frontend.
SourceMapLoader doesn't make any use of the source objects, so I only pass `sourceId`.
This will reduce the amount of data transferred between the main thread and source-map worker.
But this requires mapping location objects in and out of the source map worker.
We were already mapping location objects returned by the worker in order to lookup
for the related source object.

Also make SourceMapLoader return null when the location doesn't map,
so that it is easier to identify when it doesn't map and prevent having to do:
`originalLocation.sourceId == location.sourceId`.

Differential Revision: https://phabricator.services.mozilla.com/D178397
2023-06-06 09:48:37 +00:00
Marco Bonardo
ac9c47ede2 Bug 1826946 - Delay frecency calculation for history batch inserts. r=daisuke
When inserting multiple URIs in history, it makes sense to delay expensive
frecency calculations to a later time. We only set recalc_frecency and the
PlacesFrecencyRecalculator will take care of it.
We keep immediately calculating frecency only when a single url is inserted,
that is the case when the user is normally browsing the Web.

Differential Revision: https://phabricator.services.mozilla.com/D179263
2023-06-05 16:13:57 +00:00
William Durand
cb3f21567f Bug 1836383 - Re-enable test_originControls_with_submenus on macOS. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D179774
2023-06-05 14:08:27 +00:00
Rob Wu
f0c7c874d6 Bug 1830814 - Migrate remaining extension jsm files to ESM r=geckoview-reviewers,Standard8,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D179890
2023-06-05 10:23:40 +00:00
Rob Wu
bad812f243 Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
This patch was generated as follows:

Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.

The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.

1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.

Commands:

```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^  # and verify that the removed lines are ok.
git commit -va  # one last review to verify correctness of whole patch.
git rebase -i HEAD~3  # drop the WIP + reverted commit, pick only the last.
```

`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.

Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Mark Banner
232facd440 Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Depends on D179819

Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Tomislav Jovanovic
3bbb8e263b Bug 1836279 - Disable test_originControls_with_submenus on OSX temporarily, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D179700
2023-06-01 14:19:08 +00:00
William Durand
fd07ed0190 Bug 1836224 - A click on the "learn more" link in the panel should close it. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D179649
2023-06-01 11:27:43 +00:00
William Durand
846ce75f99 Bug 1833438 - Implement user notification for quarantined domains. r=zombie,rpl,fluent-reviewers,flod
Depends on D179388

Differential Revision: https://phabricator.services.mozilla.com/D179386
2023-05-31 20:42:37 +00:00
Tomislav Jovanovic
0820e892b6 Bug 1835155 - Update Origin Controls state and message for quarantined extensions r=willdurand,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D179388
2023-05-31 20:42:36 +00:00
Saira Abdulla
d8dc989e1b Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 15:27:03 +00:00
Iulian Moraru
05e26cad32 Backed out 2 changesets (bug 1824612) for causing dt failures on browser_dbg-features-source-tree.js. CLOSED TREE
Backed out changeset c3f38adc818e (bug 1824612)
Backed out changeset 58ba8bb3398a (bug 1824612)
2023-05-31 17:28:16 +03:00
Saira Abdulla
cac3d1f236 Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 10:21:37 +00:00
Katherine Patenio
a408bb9d46 Bug 1834115 - migrate newtab/lib JSMs that do not import modules to ESMs r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D178568
2023-05-30 22:44:42 +00:00
Sam Foster
ffc79712f2 Bug 1819675 - rename SessionStore.getClosedTabCount and getClosedTabData to getClosedTabCountForWindow and getClosedTabDataForWindow. r=dao,fxview-reviewers,kcochrane
- As closed tabs will change to mean closed tabs from all windows, rename these functions to make
  changes in later patches clearer when we mean closed tabs from this window specifically, or closed
  tabs for all private/non-private windows

Differential Revision: https://phabricator.services.mozilla.com/D177849
2023-05-30 18:54:12 +00:00
Shane Hughes
9ecaef8cdb Bug 1810509 - Add a clickable invisible space around the UEI menu button. r=willdurand,extension-reviewers,desktop-theme-reviewers,dao
A unified extension item has two buttons: an action button and a menu
button. They are visually separated by 8px. The description string in
the action button depends on which of the buttons is hovered - the
action button, the menu button, or neither. If the mouse moves from the
action button to the menu button, it has to cross the 8px gap where
neither is hovered, causing the description to flash quickly between 3
strings. This patch circumvents that issue by making the 8px gap an
invisible padding of the menu button. This also removes the inert area
where you can move the mouse within the item and see a tooltip with the
name of the extension, but clicking would have no effect since a button
is not hovered.

Differential Revision: https://phabricator.services.mozilla.com/D177979
2023-05-30 02:14:49 +00:00
Cosmin Sabou
b0bd982cc5 Bug 1800712 - Disable browser_unified_extensions_context_menu.js for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179338
2023-05-29 11:45:39 +00:00
Marco Bonardo
ddbafa4329 Bug 1834989 - Clean up UrlbarTestUtils use. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D179056
2023-05-26 14:56:55 +00:00
Mark Banner
81c86b200c Bug 1834204 - Update more consumers to import ES modules directly. r=kpatenio,geckoview-reviewers,whimboo,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D178590
2023-05-26 11:36:33 +00:00
Katherine Patenio
99d830d71b Bug 1830418 - Convert browser/components/customizableui/CustomizableUI.jsm to ESM r=Standard8,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D177423
2023-05-24 15:52:34 +00:00
Natalia Csoregi
1b67d0b941 Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner
d1fc869252 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Noemi Erli
1f146f097e Backed out 2 changesets (bug 1834176) for causing xpc failures in test_unload.js CLOSED TREE
Backed out changeset 57876d77a652 (bug 1834176)
Backed out changeset ae2f0837b528 (bug 1834176)
2023-05-23 12:14:37 +03:00
Mark Banner
08ff6c0ad9 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 08:13:08 +00:00
Gregory Pappas
2c5da4f3d1 Bug 1801531 - Implement 'browser.commands.onChanged' r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D162482
2023-05-20 16:17:45 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Iulian Moraru
9a36d620f9 Backed out changeset bbb3bbd9b6af (bug 1830679) for causing dt failures on browser_storage_cache_delete.js. CLOSED TREE 2023-05-18 22:09:25 +03:00
Itiel
801dad3de3 Bug 1830679 - Convert element.setAttribute(data-l10n-{id,args}) uses in the codebase to document.l10n.setAttributes(element, id, args) r=eemeli,willdurand,extension-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,mconley,Standard8,jdescottes,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D176791
2023-05-18 17:19:45 +00:00
Johannes J. Schmidt
0679b59e81 Bug 1824112 - switch to addLoginAsync in tests r=credential-management-reviewers,sync-reviewers,sgalich,markh
Differential Revision: https://phabricator.services.mozilla.com/D175704
2023-05-10 13:52:10 +00:00
Sandor Molnar
84627283e9 Backed out 16 changesets (bug 1824112) for causing mochitest failures in toolkit/components/passwordmgr/test/mochitest/test_autocomplete_tab_between_fields.html CLOSED TREE
Backed out changeset 6830c9a5d1ce (bug 1824112)
Backed out changeset ebfc28fdb638 (bug 1824112)
Backed out changeset ae112f47fdf1 (bug 1824112)
Backed out changeset 7295fad178a2 (bug 1824112)
Backed out changeset 3074e99ee5a0 (bug 1824112)
Backed out changeset a821ff170e11 (bug 1824112)
Backed out changeset 7bfa8564a6b5 (bug 1824112)
Backed out changeset ce59496fc86f (bug 1824112)
Backed out changeset e3f3d730e9fa (bug 1824112)
Backed out changeset b2f3bcc9bf07 (bug 1824112)
Backed out changeset 03447a1935df (bug 1824112)
Backed out changeset fc82a197b868 (bug 1824112)
Backed out changeset 406121a380d9 (bug 1824112)
Backed out changeset 196bb8eb2cc0 (bug 1824112)
Backed out changeset 0948d06a3c2c (bug 1824112)
Backed out changeset bc994ffb1614 (bug 1824112)
2023-05-10 12:07:00 +03:00
Johannes J. Schmidt
364acf3f03 Bug 1824112 - switch to addLoginAsync in tests r=credential-management-reviewers,sync-reviewers,sgalich,markh
Differential Revision: https://phabricator.services.mozilla.com/D175704
2023-05-10 07:47:25 +00:00
Daisuke Akatsuka
4e52c765a7 Bug 1829161: Make the tab loading non-web-controlled page in _blank target as 1-based. r=extension-reviewers,farre,rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D176238
2023-05-09 20:46:13 +00:00
Gijs Kruitbosch
6641241811 Bug 1508369 - clean up browser CSS to pass basic stylelint rules, r=desktop-theme-reviewers,webcompat-reviewers,extension-reviewers,devtools-reviewers,nchevobbe,denschub,dao
Differential Revision: https://phabricator.services.mozilla.com/D177476
2023-05-09 17:12:50 +00:00
Mark Banner
0fadbc1ec4 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Cosmin Sabou
3d2030d92a Backed out changeset 3e0e63f9531d (bug 1799988) in order to wait patch from Bug 1829161. 2023-05-09 18:08:25 +03:00
Cosmin Sabou
2a9cc44482 Bug 1799988 - Disable browser_ext_sessions_forgetClosedTab.js on linux, osx and windows opt for frequent failures. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D177455
2023-05-09 14:57:49 +00:00
Noemi Erli
81fb845a46 Backed out 14 changesets (bug 1824112) for causing mochitest failures in test_autocomplete_password_generation.html CLOSED TREE
Backed out changeset baf6c4c08d47 (bug 1824112)
Backed out changeset 999f8503465f (bug 1824112)
Backed out changeset 4830f780be1e (bug 1824112)
Backed out changeset 73b00f93c2e2 (bug 1824112)
Backed out changeset a53067121b90 (bug 1824112)
Backed out changeset f5d52901dfec (bug 1824112)
Backed out changeset 8b31247f3c94 (bug 1824112)
Backed out changeset 990365a7418d (bug 1824112)
Backed out changeset c3be4f0b5337 (bug 1824112)
Backed out changeset f23b0ce08de1 (bug 1824112)
Backed out changeset 526d53b4a35f (bug 1824112)
Backed out changeset b8010f604733 (bug 1824112)
Backed out changeset 602e53d29d80 (bug 1824112)
Backed out changeset 50e0b57bd30d (bug 1824112)
2023-05-08 10:45:21 +03:00
Johannes J. Schmidt
c2ea52d5bd Bug 1824112 - switch to addLoginAsync in tests r=credential-management-reviewers,sync-reviewers,sgalich,markh
Differential Revision: https://phabricator.services.mozilla.com/D175704
2023-05-08 06:51:46 +00:00
Rob Wu
e0e0519b73 Bug 1827910 - Show deprecation warnings for browser_style in MV3 r=willdurand
This patch has no observable changes, other than printing deprecation
messages when browser_style is effectively true in MV3.

This patch does include the full logic for all stages of the deprecation
process behind prefs, which will follow the schedule described at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1827910#c1.

All combinations of these prefs are fully covered by unit tests in
toolkit/components/extensions/test/xpcshell/test_ext_browser_style_deprecation.js
The next test tasks confirm the behavior of the current patch:
- browser_style_never_deprecated_in_MV2
- supported_with_browser_style_false
- supported_with_browser_style_true
- supported_with_mv2_defaults

Differential Revision: https://phabricator.services.mozilla.com/D176811
2023-05-04 20:55:21 +00:00
Narcis Beleuzu
6c1e445bc3 Backed out changeset 11d90368805b (bug 1827910) for xpcshell failure on test_ext_browser_style_deprecation.js . CLOSED TREE 2023-05-04 20:49:15 +03:00
Rob Wu
96bd9fd814 Bug 1827910 - Show deprecation warnings for browser_style in MV3 r=willdurand
This patch has no observable changes, other than printing deprecation
messages when browser_style is effectively true in MV3.

This patch does include the full logic for all stages of the deprecation
process behind prefs, which will follow the schedule described at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1827910#c1.

All combinations of these prefs are fully covered by unit tests in
toolkit/components/extensions/test/xpcshell/test_ext_browser_style_deprecation.js
The next test tasks confirm the behavior of the current patch:
- browser_style_never_deprecated_in_MV2
- supported_with_browser_style_false
- supported_with_browser_style_true
- supported_with_mv2_defaults

Differential Revision: https://phabricator.services.mozilla.com/D176811
2023-05-04 16:29:07 +00:00