Commit Graph

2756 Commits

Author SHA1 Message Date
Gregory Pappas
e9950eccfd Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Chris H-C
ad914329f7 Bug 1845400 - reporting_url should be sent on 'quick-suggest' ping r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D184510
2023-07-25 20:52:31 +00:00
Marc Seibert
5c780ccb5f Bug 1704420 - Test.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D184456
2023-07-25 15:14:23 +00:00
James Teow
f89157326f Bug 1842766 - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D183753
2023-07-25 14:39:26 +00:00
Dale Harvey
bc5e0456c4 Bug 1843386 - Dont deduplicate rich suggestions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D183881
2023-07-21 08:37:25 +00:00
Daisuke Akatsuka
6ea5606c5d Bug 1844266: Check enabling the feature after async processing in onRemoteSettingsSync r=adw
Differential Revision: https://phabricator.services.mozilla.com/D183951
2023-07-19 22:27:13 +00:00
Marco Bonardo
dfb55f6331 Bug 1843100 - Address Bar view should not try to reuse rows from different providers. r=daleharvey
Different providers have different time characteristics, reusing results across
providers may thus cause flicker of results coming from the fastest ones.

Differential Revision: https://phabricator.services.mozilla.com/D183507
2023-07-19 07:43:40 +00:00
Marc Seibert
77df2cb8ef Bug 1416881 - Entering characters with character/accent marks on macOS doesn't remove the autofilled selected part.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D182664
2023-07-18 08:00:38 +00:00
Daisuke Akatsuka
2c5a3d58ab Bug 1843186: Append UTM parameter to Pocket suggestions r=dao
Differential Revision: https://phabricator.services.mozilla.com/D183455
2023-07-13 21:20:01 +00:00
Marco Bonardo
3eb480f620 Bug 1843074 - SkippableTimer.done should be set immediately. r=scunnane
Invoking fire() in a loop may invoke the callback multiple times because done
is not set immediately.

Differential Revision: https://phabricator.services.mozilla.com/D183412
2023-07-13 09:25:37 +00:00
Mark Banner
544ecba3af Bug 1837176 - Convert imports of httpd.js to consume the ES module directly. r=necko-reviewers,webcompat-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,robwu,issammani,bytesized,pbz,valentin
Differential Revision: https://phabricator.services.mozilla.com/D181159
2023-07-12 13:38:34 +00:00
Mark Banner
88e658c23d Bug 1792824 - Convert ObjectUtils.jsm to an ES module. r=barret,necko-reviewers,devtools-reviewers,kershaw
Depends on D183308

Differential Revision: https://phabricator.services.mozilla.com/D183309
2023-07-12 08:07:23 +00:00
Hannah Peuckmann
2bab8aaf0e Bug 1836248 - Update the strip-on-share strings from the prototype for the v1. r=pbz,bolsson
I got the strings from Martin Balfanz, he worked on them with the content-team. They also requested to have a localization note added.

The strings for the prototype have been added in [D174253](https://phabricator.services.mozilla.com/D174253) and [D174251](https://phabricator.services.mozilla.com/D174251)

Differential Revision: https://phabricator.services.mozilla.com/D183245
2023-07-12 07:34:16 +00:00
Daisuke Akatsuka
28c94baccd Bug 1838743: Avoid firing paste event when middle-clicking on not editor in Chrome document r=masayuki,dao
Differential Revision: https://phabricator.services.mozilla.com/D182880
2023-07-12 01:31:29 +00:00
Marco Bonardo
b98a9b276e Bug 1842381 - The address bar chunk timer is not firing early when all heuristic providers are done. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D183164
2023-07-11 08:27:37 +00:00
Marco Bonardo
0a487b36b8 Bug 1816572 - Allow more time for Address Bar heuristic results to be returned. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D181128
2023-07-07 15:48:34 +00:00
Marco Bonardo
b99e0f7f7e Bug 1827770 - Remove isPrivate argument from onEngagement() since it can be inferred. r=daleharvey
We can't use context.isPrivate because sometimes context is undefined.
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1841762 about that.

Differential Revision: https://phabricator.services.mozilla.com/D182772
2023-07-07 10:01:50 +00:00
Marco Bonardo
ff3c4323fc Bug 1827770 - Remove QueryContext.view and pass the controller to onEngagement() instead. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D182771
2023-07-07 10:01:50 +00:00
Norisz Fay
bdd652b5e3 Backed out changeset 909fc50c54a1 (bug 1838743) for causing failures on browser_947914_button_paste.js CLOSED TREE 2023-07-07 05:57:07 +03:00
Daisuke Akatsuka
a083b83b1c Bug 1838743: Ignore paste event if the event was fired from not urlbar r=masayuki,dao
Differential Revision: https://phabricator.services.mozilla.com/D182880
2023-07-07 00:43:34 +00:00
Daisuke Akatsuka
519c3272c6 Bug 1841877: Hide 'Show less frequently' for high confidence matches r=adw
Differential Revision: https://phabricator.services.mozilla.com/D182822
2023-07-07 00:31:45 +00:00
Drew Willcoxon
a97e10fc4d Bug 1841409 - Create new row content as necessary to make sure the Feedback button is shown. r=dao
Depends on D182537

Differential Revision: https://phabricator.services.mozilla.com/D182625
2023-07-05 18:24:57 +00:00
Stanca Serban
538414cfdf Backed out changeset 5cf32b0ba18a (bug 1841409) for causing mochitests failures. CLOSED TREE 2023-07-06 01:30:56 +03:00
Drew Willcoxon
03f0ab404d Bug 1841409 - Create new row content as necessary to make sure the Feedback button is shown. r=dao
Depends on D182537

Differential Revision: https://phabricator.services.mozilla.com/D182625
2023-07-05 18:24:57 +00:00
Drew Willcoxon
f4e3504885 Bug 1841447 - Change the "Top pick" label to "Recommended reads" for Pocket suggestions. r=daisuke,fluent-reviewers,flod
Depends on D182634

Differential Revision: https://phabricator.services.mozilla.com/D182635
2023-07-05 15:47:25 +00:00
Drew Willcoxon
d9b865e27c Bug 1841446 - Update the "Not interested" command to disable Pocket suggestions. r=daisuke,fluent-reviewers,flod
Depends on D182606

Differential Revision: https://phabricator.services.mozilla.com/D182634
2023-07-05 15:47:24 +00:00
Drew Willcoxon
15ceeed7e0 Bug 1837097 - Implement "Show less frequently" behavior for Pocket suggestions. r=daisuke
Same as addon suggestions.

Depends on D182632

Differential Revision: https://phabricator.services.mozilla.com/D182606
2023-07-05 15:47:24 +00:00
Drew Willcoxon
75a6c22fe7 Bug 1841442 - Finish integrating Pocket suggestions with rich suggestions. r=daisuke,fluent-reviewers,flod
* Add the "Pocket - Related to {keyword}" bottom text
* Don't show the description for non-top-picks
* Make sure the URL is always shown

[Reference Figma](https://www.figma.com/file/3m1GVo9lejjorUZrPSn7VW/Pocket-collections-suggestions?type=design&node-id=2616%3A9002&mode=design&t=0BKzoltXIvYTpPi6-1) (see "CD Work area" in the left sidebar, then the "V4 - Final" group)

Depends on D182537

Differential Revision: https://phabricator.services.mozilla.com/D182632
2023-07-05 15:47:24 +00:00
Drew Willcoxon
bf1430c569 Bug 1841408 - Unify rich suggestions, best match, Firefox Suggest sponsored results, and Pocket Suggestions. r=dao,daleharvey
This does a few things:

* Unify the view implementations of rich suggestions, Firefox Suggest sponsored
  results, and best match. I did this by using the best match implementation
  and extending it to rich suggestions and Suggest sponsored.
* Use the unified implementation for Pocket suggestions too.
* Add a bottom-text concept since Pocket suggestions shown as top picks need to
  show both a description and some text below it. (The actual bottom text per
  result is added in D182632 since I didn't want to make this patch bigger than
  necessary)

I have a couple motivations for these changes:

* I'm implementing Pocket suggestions, which need to show some text below the
  suggestion title as well as the URL. I was going to just use the Firefox
  Suggest sponsored approach, where the action text is wrapped below the title,
  but that doesn't work because it can't show both the wrapped action text and
  the URL.
* IMO we should use rich suggestions as the basis for all rows going forward,
  i.e., unify the different row implementations around rich suggestions.

The reason I chose the best match implementation instead of the rich suggestions
implementation is because the grid-based approach of rich suggestions doesn't
work well when the URL also needs to be shown. The URL should be
baseline-aligned with the row title, which isn't easy to do when the URL is
outside the grid. The rich suggestions implementation also doesn't wrap the URL.

Other details:

* The `rich-suggestion=no-icon` attribute value is only used for styling, so we
  can replace it with `@supports -moz-bool-pref()`. That lets us make the
  `rich-suggestion` attribute a simple boolean.
* I kept the `isBestMatch` property for results since
  `searchEngagementTelemetryGroup()` uses it to return "top_pick", and the view
  also uses it to create the "Top pick" row/group label. It still has semantic
  meaning so I think that's OK. It's no longer used by the view to create
  different DOM or styling.
* Move `isRichSuggestion` from the payload to the result itself, since it's no
  longer used for only one type of result. It's like `isBestMatch`, which is
  also on the result.
* Add `richSuggestionIconSize` to the result too. The best match icon size
  is 52. The Pocket best match icon size is 24 (but will have added padding and
  a background color to make it appear 52px). IMO this is better than adding
  rules for each type of suggestion to the CSS. It's cleaner and also indicates
  what the "standard" icon sizes are.

Depends on D182580

Differential Revision: https://phabricator.services.mozilla.com/D182537
2023-07-05 15:47:24 +00:00
Drew Willcoxon
251154ed22 Bug 1841553 - JsonSchemaValidator: Support "additionalProperties" in schema objects and rename "allowExtraProperties" to "allowAdditionalProperties". r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D182683
2023-07-05 15:47:23 +00:00
Dale Harvey
075100a227 Bug 1796805 - Only update quickactions searchmode layout on search. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D182330
2023-07-05 09:23:11 +00:00
Butkovits Atila
ceeb51063d Backed out changeset 986f4f6398a4 (bug 1816572) for causing failures at browser_search_bookmarks.js. CLOSED TREE 2023-07-04 16:29:04 +03:00
Marco Bonardo
dc48e94cda Bug 1816572 - Allow more time for Address Bar heuristic results to be returned. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D181128
2023-07-04 09:28:46 +00:00
Drew Willcoxon
3bbfcdad94 Bug 1841295 - Update PocketSuggestions for the final suggestions schema and implement the desired matching behavior. r=daisuke
Each suggestion has "low" and "high confidence" keywords. When a high confidence
keyword is matched, the suggestion should be shown as a top pick, and otherwise
it should be shown as a normal Suggest result. High confidence keywords must be
matched in full, but low confidence keywords can be matched with prefixes
starting at the first word.

The low confidence matching behavior is the same as addon suggestions, so I
factored out that function into a new helper defined on `SuggestionsMap`.

I added a `full_keyword` property to the suggestions. It's not used yet but
we'll use it when we implement the final UI, which needs to show the full
keyword.

Differential Revision: https://phabricator.services.mozilla.com/D182580
2023-07-04 02:28:21 +00:00
Drew Willcoxon
a3b4788a20 Bug 1841354 - Always remove the feedback acknowledgment when a row is updated. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D182608
2023-07-03 21:00:25 +00:00
Dão Gottwald
31cca62565 Bug 1840827 - Restore Go button when switching tabs. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D182453
2023-06-30 15:47:03 +00:00
Butkovits Atila
56c7c23b88 Backed out changeset a72a5e849a5d (bug 1840827) for causing failures at browser_windowopen.js. CLOSED TREE 2023-06-29 18:19:55 +03:00
Dão Gottwald
8f1c558608 Bug 1840827 - Restore Go button when switching tabs. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D182453
2023-06-29 13:35:07 +00:00
mcheang
719249fa5b Bug 1840558 - Remove autofill search engines code. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D182163
2023-06-29 12:36:08 +00:00
James Teow
a17069d865 Bug 1840376 - Remove outstanding references to Preloaded Top URLs - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D182195
2023-06-29 08:18:27 +00:00
Sandor Molnar
a2204a4797 Backed out changeset 85caefe95672 (bug 1796805) for causing xpc failures in browser/components/urlbar/tests/unit/test_quickactions.js CLOSED TREE 2023-06-28 18:27:02 +03:00
Dale Harvey
176968fd70 Bug 1796805 - Only update quickactions searchmode layout on search. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D182330
2023-06-28 13:18:16 +00:00
Stephanie Cunnane
ddcbc18d91 Bug 1589602 - Improve urlbar performance with very long search strings. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D180734
2023-06-27 13:13:11 +00:00
Dão Gottwald
760282cdb1 Bug 1777870 - Format the urlbar value after tab select and focus change, and avoid formatting multiple times when handling blur events. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D181888
2023-06-27 12:42:07 +00:00
Chris H-C
eca601ffd9 Bug 1836283 - Reinstrument contextual services PingCentre pings in parallel with Glean r=perry.mcmanis,nanj,wstuckey
Covers topsites and quicksuggest impressions, clicks, and blocks.

Removes unused and not-to-be-used topsites-in-urlbar pingcentre instrumentation
rather than reinstrumenting it.

Differential Revision: https://phabricator.services.mozilla.com/D179856
2023-06-26 19:02:46 +00:00
James Teow
84dd20c6b8 Bug 1466103 - Add telemetry for adaptive history results in the address bar - r=mak
Differential Revision: https://phabricator.services.mozilla.com/D180168
2023-06-22 23:36:23 +00:00
James Teow
d6897c0c12 Bug 1781806 - Trigger afterTabSwitchFocusChange in the Urlbar even if the tab is already selected and is going to receive a TabSelect event - r=tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D181115
2023-06-22 12:06:43 +00:00
Drew Willcoxon
bd2145522d Bug 1839558 - Allow suggestion scores to be specified in Nimbus. r=daisuke
This adds a `quickSuggestScoreMap` Nimbus variable that lets experiments
override suggestion scores. It maps from telemetry types to score values. For
example:

```
"quickSuggestScoreMap": {
  "amo": 0.25,
  "adm_sponsored": 0.3
}
```

In this example, addon suggestions will always have a score of 0.25, and
sponsored suggestions will always have a score of 0.3. Of course, different
branches within an experiment and different experiments can set different
scores.

While working on this, I saw we have a bug when we try to look up the
`BaseFeature` for a result. To do the lookup, we look up the result's
`telemetryType` in `FEATURE_NAMES_BY_TELEMETRY_TYPE`. That's a problem for `adm`
suggestions because the `telemetryType` will be either `adm_sponsored` or
`adm_nonsponsored`, but neither of those is present in
`FEATURE_NAMES_BY_TELEMETRY_TYPE` -- only `adm` is.

To fix it, I added back the `provider` property to result payloads that I
previously removed, and I added `BaseFeature.merinoProvider` so each feature can
specify its Merino provider. Then, `QuickSuggest` can build a map from Merino
provider names to features, allowing us to look up features without needing to
hardcode something like `FEATURE_NAMES_BY_TELEMETRY_TYPE` or
`FEATURE_NAMES_BY_MERINO_PROVIDER`.

Since I added back the `provider` property, I had to update a lot of tests. (As
a follow up, it would be nice to centralize the creation of expected result
objects in the test helper.)

I also added `BaseFeature.getSuggestionTelemetryType()` to help implement the
score map and to better formalize the idea that telemetry types are an important
property that all quick suggest results should include.

Differential Revision: https://phabricator.services.mozilla.com/D181709
2023-06-22 03:55:40 +00:00
Karandeep
c7eb714ef2 Bug 1713675 - Fix Shift+up/Shift+down for text selection in address bar on Mac. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D180838
2023-06-20 17:37:07 +00:00
Katherine Patenio
ce9d8a5dad Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 18:44:48 +00:00