Commit Graph

119 Commits

Author SHA1 Message Date
Mark Banner
0677cff70b Bug 1838155 - Clean up some console.error calls that had been migrated from Cu.reportError. r=jdescottes,perftest-reviewers,geckoview-reviewers,credential-management-reviewers,search-reviewers,sgalich,owlish,jteow,sparky
This goes through the previous changes in the dependencies of bug 877389, and does two things:
1) Remove instances of \n
2) Change reporting of exceptions so that they are passed as separate arguments. This should result
   in an improved display of the exception in the browser console, should it occur.

Differential Revision: https://phabricator.services.mozilla.com/D180843
2023-06-15 08:33:57 +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
Emilio Cobos Álvarez
0ae8f17683 Bug 1823187 - Don't asynchronously size searchbar popup. r=mak
After bug 1809084, the popup positioning code became more sound,
including reliably positioning once after opening.

This code was asynchronously reducing the size of the popup, sometimes
after popup positioning.

Which means that if the popup had to slide (due to having many one-off
buttons), and we then shrunk it, the popup would be mispositioned.

There's no reason the getBoundsWithoutFlushing call has to be async
afaict, so just size the popup up-front.

Differential Revision: https://phabricator.services.mozilla.com/D172928
2023-03-20 14:44:18 +00:00
Mark Banner
319bc25bd8 Bug 1802855 - Convert toolkit/components/satchel JSM modules to ES modules. r=credential-management-reviewers,daleharvey,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D163201
2022-11-29 15:53:20 +00:00
Mark Banner
104bf81d34 Bug 1801808 - Automatically replace Cu.reportError with console.error (search). r=scunnane
Manual fixing of tests.

Differential Revision: https://phabricator.services.mozilla.com/D162696
2022-11-23 12:29:20 +00:00
Marco Bonardo
6859ef34b1 Bug 1429108 - Switch FormHistory::update to promises. r=sgalich,mconley
Differential Revision: https://phabricator.services.mozilla.com/D160925
2022-11-03 09:35:39 +00:00
Sam Johnson
386bc0ca68 Bug 1795986 - Fix compact mode urlbar icon alignment and macOS toolbar height r=desktop-theme-reviewers,dao,Gijs,Itiel
Modern flexbox increased the macOS compact mode toolbar height by 2px due to a line-height rule from bug 1402368. The issue from that bug no longer reproduces on current Nightly, even without the added rule, so it seems safe to remove.

There was also some extra spacing introduced with Proton that should have been only applied to the search "go" button, so I scoped that more tightly and also fixed the alignment of that button while at it.

Differential Revision: https://phabricator.services.mozilla.com/D159975
2022-11-02 19:41:50 +00:00
trickypr
ed1b5fe3ae Bug 1510561 - Part 5: Apply plugin:mozilla/require-jsdoc to browser/components/search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159470
2022-10-24 13:32:37 +00:00
Emilio Cobos Álvarez
1f2ad76857 Bug 1790616 - Minor CSS tweaks that are needed for modern flexbox. r=dao
These fix rendering or test issues with flex emulation, but don't change
rendering without, so can land separately.

Differential Revision: https://phabricator.services.mozilla.com/D159073
2022-10-13 14:38:01 +00:00
Masayuki Nakano
89ceba2ffb Bug 1792759 - part 3: Add nsIEditor.undoAll r=m_kato,Standard8
`nsIEditor.undo` and `nsIEditor.redo` are called with `1` except by the search
bar, and search bar wants to undo everything to reset the value.  Therefore,
search bar needs an API to undo all, and the others do not need the number of
undoing/redoing transactions.  Therefore, this patch adds `nsIEditor.undoAll`
for search bar, and remove the arguments from `nsIEditor.undo` and
`nsIEditor.redo`.

Differential Revision: https://phabricator.services.mozilla.com/D158338
2022-10-09 01:13:50 +00:00
Masayuki Nakano
3ee9858ad2 Bug 1792759 - part 1: Add nsIEditor.clearUndoRedo() to get rid of nsIEditor.transactionManager r=m_kato,NeilDeakin,Standard8
`nsIEditor.transactionManager` is used only for some simple purposes, however,
`nsIEditor` exposes the rich API.  That makes it harder to maintain internal
code around transactions.  Instead, `nsIEditor` exposes only simple and
necessary APIs.

This patch creates a new API to clear undo/redo history and make the users in
mozilla-central use it instead of using `nsITransactionManager.clear()`.

Differential Revision: https://phabricator.services.mozilla.com/D158336
2022-10-09 01:13:49 +00:00
Mark Banner
8bd836f9f4 Bug 1793414 - Remove MozSearchbar reliance on BrowserSearch where possible. r=jteow
Also moves modules to be loaded lazily to avoid unnecessarily loading them on startup.

Differential Revision: https://phabricator.services.mozilla.com/D158500
2022-10-07 07:12:18 +00:00
Mark Banner
97bfe28c29 Bug 1793414 - Move paste and search handling for the search bar into the search bar code itself. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D158499
2022-10-07 07:12:18 +00:00
Sandor Molnar
6dd3eab3a1 Backed out 2 changesets (bug 1793414) for causing browser-chrome failures in browser/components/search/test/browser/browser_searchbar_context.js CLOSED TREE
Backed out changeset f27b2a93224e (bug 1793414)
Backed out changeset 1f011637d116 (bug 1793414)
2022-10-06 12:03:15 +03:00
Mark Banner
c4a14a2fb6 Bug 1793414 - Remove MozSearchbar reliance on BrowserSearch where possible. r=jteow
Also moves modules to be loaded lazily to avoid unnecessarily loading them on startup.

Differential Revision: https://phabricator.services.mozilla.com/D158500
2022-10-06 07:44:51 +00:00
Mark Banner
b97f8b371b Bug 1793414 - Move paste and search handling for the search bar into the search bar code itself. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D158499
2022-10-06 07:44:51 +00:00
Mark Banner
c34ea601d2 Bug 1634555 - Send event telemetry for search default engine changes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157471
2022-09-28 09:40:36 +00:00
Daisuke Akatsuka
77ace0d25a Bug 1776607: Record search source for searchbar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D151574
2022-08-08 21:07:31 +00:00
Mark Banner
6552d11eaf Bug 1779981 - Migrate search consumers to use ESM imports directly. r=mcheang,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152001
2022-07-19 17:12:43 +00:00
Kagami Sascha Rosylight
4fb733cb3b Bug 1773740 - Part 4: Reapply mach -l eslint --fix with use-isInstance changes r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148939
2022-06-27 20:31:34 +00:00
Daisuke Akatsuka
ffcce5d700 Bug 1757376: Continue post processing of Enter key when any keyup event is detected on search bar. r=adw
Depends on D140908

Differential Revision: https://phabricator.services.mozilla.com/D141058
2022-03-15 02:16:41 +00:00
Mark Banner
7ea3c792f2 Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-11 16:41:29 +00:00
smolnar
19781d16c7 Backed out changeset 5018856d8fee (bug 1758474) for causing node eslint failure. CLOSED TREE 2022-03-10 11:58:45 +02:00
Mark Banner
de1754318e Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-10 09:25:28 +00:00
Daisuke Akatsuka
aa9c90459f Bug 1751819: Ignore char key input while processing enter key on searchbar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D136712
2022-02-01 03:02:05 +00:00
Niklas Baumgardner
bfdb61df14 Bug 1730953 - Migrate strings from browser.dtd to Fluent and remove file. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D126372
2021-09-28 21:19:29 +00:00
criss
38e0075aaf Backed out changeset 828a968d0d1d (bug 1730953) for causing browser-chrome failures. CLOSED TREE 2021-09-27 21:00:19 +03:00
Niklas Baumgardner
116edc4d16 Bug 1730953 - Migrate strings from browser.dtd to Fluent and remove file. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D126372
2021-09-27 16:49:45 +00:00
Antonin LOUBIERE
b153934dcf Bug 350079 - Esc in search box now selects all and reverts. r=mak
Fix bug, now escape in the search box (if the popup is disimissed) will select all the content and will revert to the last search.

Differential Revision: https://phabricator.services.mozilla.com/D120137
2021-09-26 09:10:02 +00:00
Neil Deakin
a2b0395af6 Bug 1717680, use popup.triggerNode instead of document.popupNode in browser menu commands, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D118522
2021-07-09 11:51:14 +00:00
Daisuke Akatsuka
158c2b93e9 Bug 1709405: Make icons area wider. r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D116068
2021-06-03 01:48:26 +00:00
Emilio Cobos Alvarez
c946015d10 Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-30 12:31:49 +00:00
Butkovits Atila
0cd2df1600 Backed out changeset 229e905d571e (bug 1708735) for multiple regressions. CLOSED TREE 2021-05-30 14:27:20 +03:00
Emilio Cobos Alvarez
33b5b3ec17 Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-28 11:56:07 +00:00
Michelle Goossens
ad74dbf9dd Bug 1692339 - Add a "Redo" option underneath "Undo" in context menu for form fields r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D106565
2021-02-27 01:19:38 +00:00
Butkovits Atila
97b8fba0d3 Backed out changeset a2091ee84e0e (bug 1692339) for causing failures at browser_contextmenu_keyword.js. CLOSED TREE 2021-02-27 01:23:52 +02:00
Michelle Goossens
dbaa1097f9 Bug 1692339 - Add a "Redo" option underneath "Undo" in context menu for form fields r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D106565
2021-02-26 20:04:29 +00:00
Michelle Goossens
2530101ace Bug 1692670 - Remove separator between delete and "select all" in the content context menu r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D105992
2021-02-24 17:54:03 +00:00
Daisuke Akatsuka
a5799021d0 Bug 1687704: Reset needBrowserFocusAtEnterKeyUp when the searchbar lost the focus. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D104653
2021-02-10 23:57:08 +00:00
Mark Banner
8a9fc4165b Bug 1687235 - Enable ESLint rule no-setter-return for browser/. r=mossop,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102152
2021-01-26 13:42:38 +00:00
Brindusan Cristian
201069fdac Backed out 5 changesets (bug 1687235) for mochitest failures at test_menulist_null_value.xhtml. CLOSED TREE
Backed out changeset 638c802ca1d1 (bug 1687235)
Backed out changeset ec830b771bce (bug 1687235)
Backed out changeset a7c933ddecfd (bug 1687235)
Backed out changeset c36493fb0599 (bug 1687235)
Backed out changeset 6eb33ad5d460 (bug 1687235)
2021-01-26 10:58:43 +02:00
Mark Banner
36cf48f89d Bug 1687235 - Enable ESLint rule no-setter-return for browser/. r=mossop,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102152
2021-01-25 22:27:19 +00:00
Mark Banner
79fc6ebc12 Bug 1664847 - Change BrowserSearchTelemetry.recordSearch to take a browser rather than tabbrowser as that is more accurate. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D102440
2021-01-21 23:08:09 +00:00
Marco Bonardo
d845b18979 Bug 1682434 - Don't store long strings in search history. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D99954
2020-12-21 21:02:54 +00:00
Mark Banner
6f32af3733 Bug 1662553 - Simplify recording search telemetry. r=mak
This simplifies recording of the search telemetry by dropping the seperate logging of one-off button clicks, and combining the flows in recordSearch into one.

With the previous simplifications the calls in search bar and url bar, the remaining parts were two flows through recordSearch for the one-off buttons, and one for everything else. The two flows for one-off buttons each stopped at various times or skipped parts to continue to the rest.

This means we can combine those into one, have the flow governed by `details.isOneOff`, and change `maybeRecordTelemetry` into a function that simply determines if a one-off button was selected.

Differential Revision: https://phabricator.services.mozilla.com/D100053
2020-12-21 15:38:12 +00:00
Mark Banner
be49c11ad5 Bug 1662553 - Remove unnecessary call to recordSearch in searchbar.js as nothing gets recorded in telemetry. r=mak
'header' and 'paste' sources are unknown, so they don't get logged for search counts, and they just get skipped.
Additionally, the target check for 'paste' is wrong so that would not have been recorded in recent releases anyway.

Differential Revision: https://phabricator.services.mozilla.com/D100051
2020-12-18 14:16:03 +00:00
Mark Banner
014cfd0139 Bug 1662553 - Remove unused detail.type property for BrowserSearchTelemetry.recordSearch calls. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D100050
2020-12-18 13:07:51 +00:00
Dorel Luca
e24a50422b Backed out 2 changesets (bug 1682434) for Browser-chrome in browser/components/search/test/browser/browser_contentSearchUI.js. CLOSED TREE
Backed out changeset 4fb5a850c536 (bug 1682434)
Backed out changeset 8ffb755b259c (bug 1682434)
2020-12-18 19:53:59 +02:00
Marco Bonardo
74cad2af6d Bug 1682434 - Don't store long strings in search history. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D99954
2020-12-18 14:27:18 +00:00
Mark Banner
51533badb0 Bug 1682264 - Simplify the search bar selected index telemetry reporting. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D99669
2020-12-17 18:14:07 +00:00