Commit Graph

1593 Commits

Author SHA1 Message Date
James Teow
60e5cb7dba Bug 1807039 - Update telemetry.rst with urlbar-persisted specific info - r=Standard8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165405
2023-02-01 14:56:50 +00:00
Gijs Kruitbosch
b965c4660a Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Olivier Tilloy
ee46661816 Bug 1792816 - Always update the search engine placeholder name. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D165795
2023-01-24 22:51:21 +00:00
Stephanie Cunnane
2b2c9944be Bug 1806539 - Consolidate existing partner codes for Duck Duck Go and add a new partner code for ESR. r=Standard8,mcheang
Differential Revision: https://phabricator.services.mozilla.com/D165342
2023-01-20 17:24:08 +00:00
Gijs Kruitbosch
5a903703c5 Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Mark Banner
7e07208b85 Bug 1808173 - Convert prompts imports to direct ES imports. r=Gijs,webdriver-reviewers,necko-reviewers,application-update-reviewers,credential-management-reviewers,valentin,whimboo,dimi,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D165794
2023-01-16 13:32:20 +00:00
Marco Bonardo
52f8c82c3f Bug 1809218 - Use a more generic element id for search shortcuts. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166420
2023-01-11 16:54:33 +00:00
Marco Castelluccio
ba39d286d5 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Mark Banner
df47c60747 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Stephanie Cunnane
16c8460bd5 Bug 1798387 - Implement SERP telemetry for Ecosia. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D162164
2022-12-21 04:03:01 +00:00
James Teow
45966b7155 Bug 1792718 - Skip linux asan/debug/tsan and Windows debug for frequent failures - r=Standard8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165205
2022-12-20 21:34:10 +00:00
James Teow
1e52f80c40 Bug 1800506 - Allow data attributes to be read in search telemetry - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164749
2022-12-19 20:41:04 +00:00
Emilio Cobos Álvarez
0f61b77b68 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Mark Banner
9c19df2f46 Bug 1801813 - Improve search engine load path reporting for add-ons, user and enterprise policy engines. r=mcheang,settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D162700
2022-12-14 15:12:10 +00:00
Cristian Tuns
c9c42bc174 Backed out 2 changesets (bug 1805415) for causing dt failures on browser_net_telemetry_throttle_changed.js CLOSED TREE
Backed out changeset 5056d7df9f1e (bug 1805415)
Backed out changeset e13513500184 (bug 1805415)
2022-12-14 08:52:21 -05:00
Emilio Cobos Álvarez
9a53f8dea3 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
Stephanie Cunnane
87ff0a63e7 Bug 1804739 - Make Search SERP Telemetry work with multiple providers using the same ad provider. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164251
2022-12-12 14:59:42 +00:00
Mark Banner
0cd6f3836f Bug 1804037 - Convert PartnerLinkAttribution.jsm to an ES module. r=adw,search-reviewers,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D163814
2022-12-06 11:34: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 Castelluccio
5bcb4a1506 Bug 1790816 - Reformat browser/ with isort. r=linter-reviewers,search-reviewers,Standard8 DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162667
2022-11-22 11:09:34 +00:00
Mark Banner
11b4005c4f Bug 1791974 - Use setAsDefault* parameters where appropriate for consumers of SearchTestUtils.installSearchExtension. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D161045
2022-11-18 14:30:27 +00:00
Mark Banner
9181f205be Bug 1791974 - Add set as default (private) search engine options to SearchTestUtils.promiseNewSearchEngine. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D161043
2022-11-18 14:30:26 +00:00
Mark Banner
56d933d059 Bug 1702180 - Remove obsolete search SERP telemetry probes. r=scunnane
Differential Revision: https://phabricator.services.mozilla.com/D161563
2022-11-09 08:06:45 +00:00
Mark Banner
d992655f01 Bug 1799440 - Remove redundant locales in the Google application provided search engine. r=daleharvey
Depends on D161444

Differential Revision: https://phabricator.services.mozilla.com/D161445
2022-11-08 16:31:36 +00:00
Mark Banner
8decdffc9f Bug 1799438 - Update application search engines to use browser_specific_settings instead of applications in their manifests. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D161444
2022-11-08 16:31:35 +00:00
Michael Kohler
bbab2c851a Bug 1688599 - Remove old browser.search.with_ads/browser.search.ad_clicks scalars r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148383
2022-11-07 11:41:36 +00:00
James Teow
57cbb18445 Bug 1779470 - Part 1: Add Nimbus variable, feature gate preference, and rename showSearchTerms prefs - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D159462
2022-11-05 02:13:28 +00:00
William Durand
12a393c465 Bug 1797050 - Part 6 - Use browser_specific_settings instead of applications in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +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
Stephanie Cunnane
b2b562b410 Bug 1798046 - Update Search Telemetry docs (replace .jsm with .sys.mjs as needed). r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D160679
2022-10-28 21:26:38 +00:00
Stephanie Cunnane
74f8cbb8da Bug 1789450 - Add search shortcut keyword for Qwant. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D159530
2022-10-28 16:43:57 +00:00
James Teow
39f9af11ee Bug 1779471 - Rename pref and add telemetry for persistent search term searches - r=adw,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D156706
2022-10-27 15:53:11 +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
trickypr
beac0753a6 Bug 1510561 - Part 4: Apply plugin:mozilla/valid-jsdoc to browser/components/search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159469
2022-10-24 13:32:36 +00:00
Mark Banner
5407bdffa8 Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +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
Dale Harvey
923e5085f4 Bug 1792988 - Dont reset prefs on startup for users not in experiment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D158889
2022-10-11 14:09:50 +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
e73ca1c871 Bug 1792673 - Correctly set the separate private default urlbar result preference from experiments. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D158249
2022-09-28 09:54:46 +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
Mark Banner
79b9557a71 Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 21:47:50 +00:00
Marian-Vasile Laza
b7f6194b8d Backed out changeset 0679274d6ed5 (bug 1792398) for causing bc failures on browser_sendQuery.js. CLOSED TREE 2022-09-26 22:53:00 +03:00