Commit Graph

1742 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
5ee0a6a910 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 19:16:16 +00:00
Mike Kaply
eab2966a66 Bug 1720821 - Allow dynamic result types to remove attributes. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D121113
2021-07-28 18:30:53 +00:00
Neil Deakin
734124e0f9 Bug 1714337, remove separate high and non-high notification box references, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D121083
2021-07-28 18:24:42 +00:00
Sandor Molnar
5e383dfda4 Backed out changeset 7eb8945dd8e3 (bug 1719272) for causing bustages in gecko decision task. CLOSED TREE 2021-07-28 19:47:06 +03:00
Christoph Kerschbaumer
8fef13ba13 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 16:08:07 +00:00
Harry Twyford
58cf2e7f96 Bug 1713827 - Hand off to search mode if searching is disabled in the Urlbar. r=amy,Standard8,flod
This patch also addresses bug 1645293. It essentially reverts parts 1 and 3 of bug 1616700 for users with searching disabled. Since we had to introduce branching behaviour, there are some new constructs like a shouldHandOffToSearchMode multi-pref in UrlbarPrefs.

Differential Revision: https://phabricator.services.mozilla.com/D118606
2021-07-22 15:46:30 +00:00
Cosmin Sabou
b7f0575fc4 Backed out changeset 5a673b05aea0 (bug 1713827) for bc failures on browser_contentSearchUI_default.js. CLOSED TREE 2021-07-21 01:06:27 +03:00
Harry Twyford
107a1e3766 Bug 1713827 - Hand off to search mode if searching is disabled in the Urlbar. r=amy,Standard8,flod
This patch also addresses bug 1645293. It essentially reverts parts 1 and 3 of bug 1616700 for users with searching disabled. Since we had to introduce branching behaviour, there are some new constructs like a shouldHandOffToSearchMode multi-pref in UrlbarPrefs.

Differential Revision: https://phabricator.services.mozilla.com/D118606
2021-07-20 21:25:10 +00:00
Daisuke Akatsuka
7b5e4d0e98 Bug 1714242: Rename settingsButtonCompact with settingsButton. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D119581
2021-07-19 20:41:43 +00:00
Iulian Moraru
ecc226e602 Backed out changeset 3e9e40d668c1 (bug 1714242) for causing bc failures on browser_urlbar_event_telemetry_noEvent.js. CLOSED TREE 2021-07-14 04:10:35 +03:00
Daisuke Akatsuka
39dba6b1dd Bug 1714242: Rename settingsButtonCompact with settingsButton. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D119581
2021-07-13 22:35:14 +00:00
Mike Conley
8eb9dd9a31 Bug 1712750 - Open sanitize dialog using the window modal dialog box when possible. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D117567
2021-07-12 13:50:02 +00:00
Harry Twyford
079579c0fb Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119310
2021-07-09 23:52:39 +00:00
Harry Twyford
340e2692d4 Bug 1717509 - Part 4 - Remove files and result group related to UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119309
2021-07-09 23:52:39 +00:00
Harry Twyford
a58e80b016 Bug 1717509 - Part 3 - Remove unused, obsolete, and duplicated code from UrlbarProviderPlaces. r=adw
There's more I'd like to do here. Namely, I want to eliminate the Search class in favour of everything being part of ProviderPlaces, and I'd like to get rid of "match" objects/nsIAutoCompleteResult in favour of always dealing with UrlbarResults. I think major changes like those are best left to bug 1717511. The latter change would require moving the muxer-lite deduping code from ProviderPlaces to the muxer. That way, ProviderPlaces can just send results to the muxer as soon as they're ready rather than needing to first order them inside an nsIAutoCompleteResult.

Differential Revision: https://phabricator.services.mozilla.com/D119308
2021-07-09 23:52:38 +00:00
Harry Twyford
9dd2c26f14 Bug 1717509 - Part 2 - Minimal working UrlbarProviderPlaces. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119307
2021-07-09 23:52:38 +00:00
Harry Twyford
87f29f6e7f Bug 1717509 - Part 1 - Hook up UrlbarProviderPlaces and fix various lint issues. r=adw,preferences-reviewers
UnifiedComplete must stick around to serve as an mozIPlacesAutoComplete implementation for XUL consumers like search.js and privacy.js.

Differential Revision: https://phabricator.services.mozilla.com/D119306
2021-07-09 23:52:37 +00:00
Harry Twyford
30b0902a03 Bug 1717507 - Convert tests bound to a legacy instance of unifiedcomplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119429
2021-07-09 14:24:01 +00:00
Harry Twyford
8a3274a2a5 Bug 1717507 - Convert test_special_search.js. r=adw
Apologies in advance for this review. It's the test I've had to rewrite the most. This is because the unifiedcomplete tests did not care about sorting, and urlbar tests do. Since this test does some complicated stuff with frecency, many of the expected matches had to be reordered in the test. The old test just listed all the uris in descending order in `matches`, paying no mind to frecency. As I've been doing with other tests, I reversed the order which with they are added to history/bookmarks, to reduce the number of changes required in the sets of expected matches.
That yielded this order, in descending order of frecency:
uri11
uri1
uri4
uri6
uri5
uri7
uri8
uri9
uri10
uri12
uri2
uri3

Differential Revision: https://phabricator.services.mozilla.com/D119113
2021-07-09 14:23:47 +00:00
Harry Twyford
bdcd0b3c83 Bug 1719180 - Set restrictSource to the first restriction token, dropping support for combined tokens. r=mak
This bug was introduced because UnifiedComplete was only filtering tokens when the queryContext contained a restrictToken. UrlbarProvidersManager was only setting queryContext.restrictToken when a source restriction token was typed (i.e. not including $ and #). This meant that # and $ were never filtered from the search string. This patch now sets restrictToken to whatever the first token is, including # and $. This ensures UnifiedComplete will always filter tokens when a restriction token is typed.

Differential Revision: https://phabricator.services.mozilla.com/D119197
2021-07-09 14:23:46 +00:00
Daisuke Akatsuka
b4cda913d5 Bug 1719766: Avoid using ui.popup.disable_autohide pref. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119473
2021-07-09 02:31:55 +00:00
Anny Gakhokidze
33a3d37016 Bug 1692749 - Skip superfluous about:blank load when duplicating a tab, r=kashav,extension-reviewers,kmag
When we duplicate a tab, we don't need to have about:blank load in it, because
we are going to use restore mechanism to copy data into the new tab. If we
don't skip the superfluous load, the restoring process might race with the
loading of about:blank, and sometimes we might try to destroy the
WindowGlobalChild actor just as SessionStore is trying to restore docshell
capabilities for that tab resulting in a rejected promise in _restoreHistory
and `_restoreHistoryComplete` not getting called.

Differential Revision: https://phabricator.services.mozilla.com/D119313
2021-07-08 22:31:52 +00:00
Harry Twyford
839003bde1 Bug 1717507 - Convert batch 2 of miscellaneous tests from unifiedcomplete to urlbar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119112
2021-07-08 22:13:35 +00:00
Daisuke Akatsuka
3624af0cb6 Bug 1715699: Re-enable browser_suppressFocusBorder test for linux TV. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D119371
2021-07-08 21:25:54 +00:00
Harry Twyford
c1e76289d8 Bug 1717507 - Convert batch 1 of miscellaneous tests from unifiedcomplete to urlbar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D118744
2021-07-08 15:01:49 +00:00
Harry Twyford
ab0fbca5bf Bug 1717507 - Convert protocol tests from unifiedcomplete to urlbar. r=adw
There are two substantive changes to test_protocol_swap worth pointing out:
1. Some subtests now search for <protocol>://sit instead of <protocol>://site. This is because the latter would make the heuristic result the same as the relevant history result and the history result would be deduped. We would thus lose test coverage for that history result.
2. Tests that expected allMatches no longer expect uri5. The muxer dedupes https://www. URLs in favour of https:// URLs.

Depends on D118636

Differential Revision: https://phabricator.services.mozilla.com/D118637
2021-07-08 15:01:31 +00:00
Harry Twyford
1397c0ae9c Bug 1717507 - Convert URI escaping tests from unifiedcomplete to urlbar. r=adw
Depends on D118635

Differential Revision: https://phabricator.services.mozilla.com/D118636
2021-07-08 15:01:30 +00:00
Harry Twyford
3b48468856 Bug 1717507 - Convert tag tests from unifiedcomplete to urlbar. r=adw
The last few subtests in test_tags_returnedInSearches.js got substantive changes. This is because urlbar tests reflect the results actually shown in the Urlbar and unifiedcomplete tests just tested what came out of UnifiedComplete. Those last few subtests tested that we show non-matching tags. While UnifiedComplete returns those non-matching tags, UrlbarProviderUnifiedComplete has filtered them out since bug 1522226.

Differential Revision: https://phabricator.services.mozilla.com/D118635
2021-07-08 15:01:30 +00:00
Drew Willcoxon
a724eef86d Bug 1718158 - Change "Google suggestions" to "Google Suggestions" for Firefox Suggest. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D118776
2021-07-07 00:44:03 +00:00
Dorel Luca
088762e74e Backed out changeset 5ca5387a57ce (bug 1712750) on Dev's request. CLOSED TREE 2021-07-06 19:26:21 +03:00
Drew Willcoxon
5e8db0b24c Bug 1717719 - Don't show quick suggest results in private windows. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D118548
2021-06-23 20:04:56 +00:00
Harry Twyford
68acebebe1 Bug 1713662 - Apply more checks in the muxer to results marked with satisfiesAutofillThreshold. r=mak
This patch will reduce the number of TTS results we show, because we will no longer allow some partially matched hosts. Previously, we let some TTS results through the muxer even when a domain was not autofilled because we thought the user might be typing a subdomain of the TTS domain. However, this created false positives, as demonstrated in the bug. This patch strikes a compromise by retaining the satisfiesAutofillThreshold property, but requires the heuristic result to be a URL result. That way, we can ensure the TTS engine domain has the same hostname as the heuristic URL. This patch still handles the Wikipedia and eBay cases that satisfiesAutofillThreshold was designed to address.

Differential Revision: https://phabricator.services.mozilla.com/D116644
2021-06-23 17:25:51 +00:00
Harry Twyford
0f0cfc751b Bug 1715137 - Part 3 - Port test_preloaded_sites.js. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D118220
2021-06-22 21:02:58 +00:00
Harry Twyford
de16b6f30c Bug 1715137 - Part 2 - Remove Preloaded Sites and heuristic result code from UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D118219
2021-06-22 21:02:58 +00:00
Harry Twyford
e8579e3e0d Bug 1715137 - Part 1 - Split UrlbarProviderPreloadedSites out from UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D118218
2021-06-22 21:02:57 +00:00
Mike Conley
3482cd4ce2 Bug 1712750 - Open sanitize dialog using the window modal dialog box when possible. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D117567
2021-06-22 20:43:41 +00:00
Dorel Luca
0b62728af0 Backed out changeset 2e289ebaa100 (bug 1713662) for Browser-chrome and XPCshell failures. CLOSED TREE 2021-06-21 19:13:48 +03:00
Harry Twyford
17cbf06bf8 Bug 1713662 - Apply more checks in the muxer to results marked with satisfiesAutofillThreshold. r=mak
This patch will reduce the number of TTS results we show. Previously, we let some TTS results through the muxer even when the heuristic URL was not similar to the tab-to-search engine. We did this because ProviderTabToSearch thought the user might be typing part of a TTS domain, but we didn't check that the actual heuristic result was for that domain. This patch allows tab-to-search results only when (1) the heuristic result is not a URL result or (2) the heuristic URL resembles the tab-to-search engine domain. This patch still handles the Wikipedia and eBay cases that satisfiesAutofillThreshold was designed to address.

Differential Revision: https://phabricator.services.mozilla.com/D116644
2021-06-21 14:49:08 +00:00
Harry Twyford
b76ea00e46 Bug 1716025 - Part 1 - Add hardcoded blocklist of sites to exclude from history metadata. r=mak
This patch creates a blocklist of sites that should not be saved as keyframes. The blocklist maps hostnames to regular expressions. While the map is a bit of an awkward structure, it lets us avoid checking every URL against a list of regular expressions. This performance gain will be more apparent as the list expands.

Differential Revision: https://phabricator.services.mozilla.com/D117543
2021-06-21 14:32:46 +00:00
Andreas Farre
7165c5a126 Bug 1713901 - Turn on browser_aboutHomeLoading.js for Fission. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118189
2021-06-21 08:48:53 +00:00
Daisuke Akatsuka
9ec42cbc69 Bug 1265208: Restore url if the value of inputed bar that had been inputting is empty upon switching tab. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D118125
2021-06-21 02:30:06 +00:00
Daisuke Akatsuka
1c4aedcd22 Bug 1686951: Support switch-to-tab in private browsing window. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D117974
2021-06-21 01:33:26 +00:00
Drew Willcoxon
f7a33b2d57 Bug 1713322 - Properly fill flex groups and add support for both availableSpan and maxResultCount. r=mak
The problem in this bug is that the sum of the available spans of child buckets
is not necessarily equal to the available span of the parent bucket. That's
because each child span must be an integer, but a child's ideal span may not be
an integer, so we have to round and an error can accumulate.

This fixes it by detecting that case and then tweaking child spans until their
sum is equal to the parent's available span. If the sum is smaller than the
parent span, then we increment child spans until it's equal; if the sum is
larger than the parent span, then we decrement instead. (The case where the sum
is larger isn't as much of a problem as when it's smaller. We still correctly
limit the total result span due to logic elsewhere, but the bucket's final
result composition may not reflect flex ratios as accurately as it could.)

I added some logic so that the child spans we choose to tweak are the ones that
minimize the mathematical error between the final integer spans and the ideal
unrounded spans. In other words, we pick the best spans possible given that they
must be integers.

We need to do this tweaking when we try to overfill buckets too, not only on the
first pass for a bucket. Currently the second pass is hardcoded in
`_fillBuckets`. Rather than hardcoding the tweaking in both places, I added an
`_updateFlexData` helper method. While I was doing that, I realized we may need
more than two passes per parent bucket in order to optimally fill the children.
So I modified `_fillBuckets` so it recurses with the parent bucket itself when
we need to overfill any of its children.

I also added support for both `availableSpan` and `maxResultCount`. That lets us
get rid of the ugly heuristic special case in `_addResults`. A bucket will be
filled while both its used span and result count are under both these limits.

This also removes support for zero flex. I got really annoyed with it while I
was working on earlier versions of this. It made the code unnecessarily complex.
I added zero flex kind of as a hack to support tail suggestions, but we don't
actually need it at all. We can just move the tail suggestions bucket out of the
main suggestions bucket with form history and remote suggestions.

Finally while I was here I switched from "bucket" to "group" in light of the
renaming in bug 1715484 and bug 1715822.

Differential Revision: https://phabricator.services.mozilla.com/D117582
2021-06-18 00:08:25 +00:00
Harry Twyford
d6fa112502 Bug 1662172 - Part 3 - Port and combine test_keyword_search and test_keyword_search_action. r=adw
Depends on D116899

Differential Revision: https://phabricator.services.mozilla.com/D116900
2021-06-17 22:04:54 +00:00
Harry Twyford
37e26b996a Bug 1662172 - Part 2 - Remove keyword code from UnifiedComplete. r=adw
Depends on D116898

Differential Revision: https://phabricator.services.mozilla.com/D116899
2021-06-17 22:04:54 +00:00
Harry Twyford
44671b2659 Bug 1662172 - Part 1 - Port UrlbarProviderBookmarkKeywords from UnifiedComplete. r=adw
Depends on D116764

Differential Revision: https://phabricator.services.mozilla.com/D116898
2021-06-17 22:04:54 +00:00
Silke Hofmann
9834d64087 Bug 1715544 - Extend timezone converter's 12h correction logic for times between 12pm and 1pm, and 12am and 1am. Add testcases. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D117958
2021-06-17 15:59:31 +00:00
Harry Twyford
030b330a84 Bug 1714409 - Part 3 - Port test_search_engine_alias. r=adw
I removed the part of the test that checks for a history result. That was there to test _filterOnHost, which was removed. See Part 2.

Depends on D116763

Differential Revision: https://phabricator.services.mozilla.com/D116764
2021-06-17 11:34:13 +00:00
Harry Twyford
6f6e6e6366 Bug 1714409 - Part 2 - Remove _matchSearchEngineAlias from UnifiedComplete. r=adw
I didn't port _filterOnHost, which searches for history from an engine's domain when its alias is typed. It is no longer relevant: a heuristic alias search result puts the user in search mode.

Depends on D116762

Differential Revision: https://phabricator.services.mozilla.com/D116763
2021-06-17 11:34:13 +00:00
Harry Twyford
09079a9f0c Bug 1714409 - Part 1 - Split UrlbarProviderAliasEngines from UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D116762
2021-06-17 11:34:12 +00:00