Commit graph

1275 commits

Author SHA1 Message Date
Daisuke Akatsuka
2f199393c2 Bug 1673299: Change the timing that moves the focus to the browser. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D95830
2020-11-08 23:51:44 +00:00
Sebastian Hengst
0407d5cb3d Bug 1511273 - disable browser/components/search/test/browser/browser_google_behavior.js on Linux ccov. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96174
2020-11-06 15:15:08 +00:00
Razvan Maries
10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell
5f9c85da95 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-04 00:55:36 +00:00
Ricky Stewart
02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
tanner drake
60df9c6452 Bug 1642878 - update context menu items disabled states after _maybeSelectAll in contextmenu open. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D91151
2020-09-30 14:22:42 +00:00
Mark Banner
633ab11df1 Bug 1511065 - Switch Search Provider telemetry probes to Remote Settings. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D92202
2020-10-09 16:41:34 +00:00
Mark Banner
d92de51aae Bug 1511065 - Update existing search telemetry provider field names to match those of the new remote settings schema. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D92244
2020-10-09 16:41:26 +00:00
Mark Banner
8182076531 Bug 1511065 - Update SearchTelemetry logging to use console.createInstance. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D92243
2020-10-09 16:41:18 +00:00
Dorel Luca
9fd7c4a9f4 Backed out 3 changesets (bug 1511065) for Browser-chrome failures in browser/modules/test/browser/browser_UsageTelemetry_urlbar.js. CLOSED TREE
Backed out changeset c1182c07b4fc (bug 1511065)
Backed out changeset 9ba2ec197bbb (bug 1511065)
Backed out changeset 35c1fdc39645 (bug 1511065)
2020-10-09 18:45:07 +03:00
Mark Banner
33dec86beb Bug 1511065 - Switch Search Provider telemetry probes to Remote Settings. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D92202
2020-10-09 14:33:45 +00:00
Mark Banner
95cf7925c0 Bug 1511065 - Update existing search telemetry provider field names to match those of the new remote settings schema. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D92244
2020-10-09 08:25:46 +00:00
Mark Banner
4acf1656a8 Bug 1511065 - Update SearchTelemetry logging to use console.createInstance. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D92243
2020-10-09 08:28:18 +00:00
Harry Twyford
a576962a26 Bug 1668389 - Only set #urlbar[open] if we are sure there will be either results or one-offs. r=mak
This was more difficult to solve than I expected. The main issue is that the
`[open]` attribute on `#urlbar` wasn't accurate when the view was "open" but
there were no results or one-offs, so it was in fact closed. This broke a few
style rules.

This bug can also be reached when the user has no engines and clears the search
string while in search mode. This includes pressing Accel+K when typing a search
string while not in search mode.

The relationship between the UrlbarView and the one-offs is complex and depends
on a lot of listeners and async calls made in synchronous contexts. Furthermore,
most of the UrlbarView open/close code is synchronous, but checking the number
of engines (to determine if the one-offs will open) is an async operation. These
factors make it difficult for the view to discern any state about the one-offs
and plan accordingly.

First I tried adding a [oneoff] attribute to .urlbarView, set asynchronously when
the one-offs are built. Then I changed CSS rules to check
```
.urlbarView:not([noresults]),
.urlbarView[oneoffs]
```
instead of just `#urlbar[open]`. This approach would've required changing
a bunch of CSS from the simple `#urlbar[open]` to the more complicated CSS
above, which was not good for code readability. Also it would keep `[open]` in
a weird useless state where it couldn't really be trusted. This would've caused
other styling problems.

I settled on adding a `.then` call around the affected UrlbarView opening. The
view opens only if we are sure that we will have either results or one-offs,
so we can once again trust the `[open]` parameter. This approach has its
drawbacks. Mainly, it's a more JavaScript-heavy solution so it's possibly
slow. Thankfully, it's something that can be easily cached.

Differential Revision: https://phabricator.services.mozilla.com/D92526
2020-10-07 15:02:16 +00:00
Mark Banner
3dc768cd68 Bug 1651394 - Update DDG ad-click probe recording. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D92177
2020-10-02 14:05:51 +00:00
Dão Gottwald
6f1b5977ef Bug 1644972 - Restrict browser.urlbar.disableExtendForTests to tests and remove it from tests that don't need it. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D92154
2020-10-02 11:56:16 +00:00
Tooru Fujisawa
7a98582567 Bug 1558642 - Part 2: Use EventUtils.synthesizeNative* where possible. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D39604
2020-09-29 20:01:12 +00:00
Csoregi Natalia
2d0fac4d45 Backed out changeset f12c895fc5e7 (bug 1605305) for causing bustage on nsHttpChannel.cpp on mc. CLOSED TREE 2020-09-25 09:58:22 +03:00
Akihiko Odaki
857f18b6f5 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
***
trr debugging

Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-09-23 19:00:10 +00:00
tanner
0b44639084 Bug 513180 - Add identical if check from key press to search-go-button press for newTabPref r=adw
Differential Revision: https://phabricator.services.mozilla.com/D90586
2020-09-22 03:38:34 +00:00
Mark Banner
02ae3b9de6 Bug 863474 - Centralise OpenSearch install failure prompts into SearchUIUtils. r=daleharvey,flod,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D89879
2020-09-14 11:08:43 +00:00
Razvan Maries
e3020a8f57 Backed out 2 changesets (bug 863474) for build bustages on search.properties. CLOSED TREE
Backed out changeset 5f00eaaa4e2d (bug 863474)
Backed out changeset 42d66b1f9b82 (bug 863474)
2020-09-12 19:41:12 +03:00
Mark Banner
d1abbfeaf8 Bug 863474 - Centralise OpenSearch install failure prompts into SearchUIUtils. r=daleharvey,flod
Differential Revision: https://phabricator.services.mozilla.com/D89879
2020-09-12 14:57:34 +00:00
Harry Twyford
b896496e10 Bug 1657212 - Support one-off key modifiers and remove one-off context menus. r=adw
This patch adds support for key modifiers on the refreshed one-offs. They work the same as the old key modifiers, with one exception: Shift+Click and Shift+Enter both execute a search immediately in the current tab, replicating the behaviour of the old one-offs. For empty searches, Shift+Click and Shift+Enter just enter search mode. To support these Shift modifiers, we dropped support for opening a one-off search in a new window. Users can still search in a new window with a non-default engine by typing a search string, selecting a one-off with the keyboard, then Shift+Clicking the heuristic result or the Go button.

Other key modifiers worth pointing out include Accel+Click to search in a new background tab and Alt+Enter to search in a new foreground tab. If these modifiers are used on the local one offs or with an empty query, we open search mode in the new tab.

Differential Revision: https://phabricator.services.mozilla.com/D89504
2020-09-11 20:07:07 +00:00
Mark Banner
8161a9bd69 Bug 1559530 - Remove nsISearchService.reInit. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D88277
2020-09-02 22:24:37 +00:00
Mark Banner
552793d2cc Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-09-01 18:08:46 +00:00
Mark Banner
b0311dd767 Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 18:08:29 +00:00
Butkovits Atila
7b340f9684 Backed out 15 changesets (bug 1612824, bug 1661234, bug 1619926, bug 1612380, bug 1559530, bug 1642990) for Xpc failures. CLOSED TREE
Backed out changeset 426d017d7e46 (bug 1642990)
Backed out changeset 84ab4021d403 (bug 1559530)
Backed out changeset 82a8305543e5 (bug 1559530)
Backed out changeset 38832c1185b8 (bug 1559530)
Backed out changeset f16918c10a6b (bug 1661234)
Backed out changeset 3a13258fbd51 (bug 1661234)
Backed out changeset abf8d8b24845 (bug 1612824)
Backed out changeset 7dfeb065a385 (bug 1619926)
Backed out changeset bc9d3e210fe7 (bug 1619926)
Backed out changeset 786164c461ae (bug 1619926)
Backed out changeset d89793e9d17d (bug 1619926)
Backed out changeset d665885bc912 (bug 1619926)
Backed out changeset 9260b6620943 (bug 1619926)
Backed out changeset af69a4896f2f (bug 1619926)
Backed out changeset b9cd6b7047b9 (bug 1612380)
2020-09-01 21:03:23 +03:00
Marco Bonardo
05dde8785e Bug 1632318 - Left / Right Arrow key navigation in the one-off search buttons breaks convention (should move caret, not select one-off). r=adw
Differential Revision: https://phabricator.services.mozilla.com/D88536
2020-09-01 13:28:00 +00:00
Mark Banner
783dff5b28 Bug 1559530 - Remove nsISearchService.reInit. r=daleharvey
Depends on D88276

Differential Revision: https://phabricator.services.mozilla.com/D88277
2020-08-28 11:39:22 +00:00
Mark Banner
074a2c9ecb Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-08-31 16:34:25 +00:00
Mark Banner
3ac411544c Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 12:51:08 +00:00
Mark Banner
ed5ad0b344 Bug 1660196 - Add Search Engine URLs for experiment. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D87746
2020-08-20 13:31:50 +00:00
Mark Banner
0542586f06 Bug 1656220 - Implement recording attributions for search engines. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D87501
2020-08-20 12:58:23 +00:00
Cristina Coroiu
3a18ab95b5 Backed out 2 changesets (bug 1656220, bug 1656219) for browser-chrome failures at browser_UsageTelemetry_urlbar.js and browser_oneOffs.js on a CLOSED TREE
Backed out changeset bf68aec38a05 (bug 1656220)
Backed out changeset 706d2900077b (bug 1656219)
2020-08-20 14:15:07 +03:00
Mark Banner
21253cfa1a Bug 1656220 - Implement recording attributions for search engines. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D87501
2020-08-20 09:06:59 +00:00
Csoregi Natalia
ff0a68004d Backed out changeset 7cad986c81a5 (bug 1605305) for failures on test_trr.js. CLOSED TREE 2020-08-18 23:38:17 +03:00
Akihiko Odaki
7f71e11e00 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-08-18 16:32:43 +00:00
Razvan Maries
44ae0cd57e Backed out changeset 1047cef8519b (bug 1605305) for perma failures on test_trr.js. CLOSED TREE 2020-08-18 17:39:29 +03:00
Akihiko Odaki
77429bc942 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-08-18 13:15:27 +00:00
Marco Bonardo
6fb175caeb Bug 1657572 - Store form history source from search access points. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D86170
2020-08-08 12:49:24 +00:00
Drew Willcoxon
be6777746d Bug 1657633 - Make the up/down arrow keys avoid moving the selection through the one-offs when they are not shown. r=harry
This is a narrow fix to the bug, which happens because I removed this
conditional in bug 1654439: https://hg.mozilla.org/mozilla-central/rev/f561eb606ad3#l1.251

That conditional kept the selection out of the one-offs when the urlbar hid
them. This patch replaces that conditional with a version that can be overridden
by the urlbar subclass. It adds a `hasView` getter that is equivalent, but note
that `this._view` can't be used because the urlbar subclass sets `this.view` in
its constructor and never nulls it out, unlike the original implementation. So
instead the subclass `hasView` checks whether the one-offs are hidden. This is
effectively the same thing because in the old implementation the urlbar one-offs
were hidden at the same time `this._view` was nulled out.

Differential Revision: https://phabricator.services.mozilla.com/D86293
2020-08-08 00:57:20 +00:00
Dale Harvey
ff9dc1c764 Bug 1650883 - Remove hardcoded aliases, replace with webextension keywords r=Standard8,thecount
Differential Revision: https://phabricator.services.mozilla.com/D85345
2020-08-06 12:10:53 +00:00
Dale Harvey
e27206c34b Bug 1650881 - Support multiple aliases in webextensions r=Standard8,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D84921
2020-08-06 12:10:30 +00:00
Drew Willcoxon
2d1682945a Bug 1655902 - Fix intermittent failure in browser/components/search/test/browser/browser_oneOffContextMenu_setDefault.js. r=harry
The test intermittently fails because sometimes `tooltiptext` is not set when
the engine has an alias. For engines with aliases, we set l10n attributes on
their button elements instead of setting `tooltiptext` directly.

At first I thought that the l10n machinery is setting `tooltiptext` asyncly so
that it's sometimes not set when the test checks for it. So I added a
`waitForCondition` in [this try push](https://treeherder.mozilla.org/#/jobs?repo=try&revision=049b44c1bb97e1e8bc11dc464a57ca4b85781246&selectedTaskRun=GXE1b3XAQeaPI7ExPDwQXg.0).
But there was still one failure out of 11 runs. This time the `waitForCondition`
timed out. So there seems to be something more going on. (I also added a check
for the l10n attributes before the `waitForCondition` call, and that check
passed.)

This patch just has the check for the l10n attributes without the `tooltiptext`
check when the engine has an alias. I don't think it's worth spending more
cycles on this.

Differential Revision: https://phabricator.services.mozilla.com/D85958
2020-08-05 17:37:48 +00:00
Sebastian Streich
bf58055b03 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-08-04 11:10:41 +00:00