Commit Graph

27565 Commits

Author SHA1 Message Date
Csoregi Natalia
ac65ad4313 Backed out changeset e9f3001bd7bd (bug 1673409) for failures on browser_palette_labels.js. CLOSED TREE 2020-10-28 02:52:37 +02:00
Gijs Kruitbosch
f9bc544f40 Bug 1673409 - show icon and label for import button in customize mode, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D94783
2020-10-28 00:09:49 +00:00
Csoregi Natalia
e8de613104 Backed out changeset 6de570466e66 (bug 1668965) for failures on browser_protections_lockwise.js. CLOSED TREE 2020-10-27 20:21:52 +02:00
Scott
adcca5e982 Bug 1671670 - Update story sort to consider priority prop. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D94647
2020-10-27 17:07:51 +00:00
Harry Twyford
03d6dc2a8f Bug 1671803 - Part 2 - Add localized name for Baidu's OpenSearch engine to WEB_ENGINE_NAMES. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D94838
2020-10-27 14:21:10 +00:00
Tim Giles
1bf751355e Bug 1668965 - Remove mention of Lockwise mobile apps from about:logins. r=sfoster,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93260
2020-10-27 16:25:57 +00:00
Sean Feng
f06b595fe6 Bug 1518999 - Refactor some performance.getEntries related tests r=mstange
Some tests made some assumptions about the number of returned entries
by performance.getEntries, and these assumptions are not valid
anymore once we added new entries.

Depends on D66463

Differential Revision: https://phabricator.services.mozilla.com/D68645
2020-10-27 16:25:50 +00:00
Gijs Kruitbosch
9b68e0e813 Bug 1475489 - stop editing folder names when closing the folder tree in the edit bookmark panel, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D94227
2020-10-27 13:05:44 +00:00
Drew Willcoxon
af7e12c338 Bug 1673062 - Fix intermittent TV browser/components/urlbar/tests/browser/browser_tokenAlias.js by increasing the timeout. r=mak
The log shows that the last test task finishes, so it looks like the test is now
just taking too long on these Mac machines in verify mode. That's plausible
because I added a bunch of new checks in bug 1672680 (checking for different
types of space characters).

Green try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a320a06d40ddacfc76abc6cf097b11a959228c61&selectedTaskRun=Geg2Cpj5Q16A4-KuYuegyw.0

Differential Revision: https://phabricator.services.mozilla.com/D94665
2020-10-26 23:12:56 +00:00
Gijs Kruitbosch
b3b0b65d9e Bug 1673388 - use keepbroadcastattributeswhencustomizing for the print button to make it behave better wrt customize mode, r=mconley
Embarrassingly, I forgot I added this in bug 1388990 when we had similar issues
with the back/forward buttons. It's a more straightforward solution for this
problem.

Differential Revision: https://phabricator.services.mozilla.com/D94751
2020-10-26 20:51:04 +00:00
Ricky Stewart
855112d1e7 Bug 1672023 - Remove excluded files from black.yml
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052

Depends on D94045
2020-10-26 18:21:44 +00:00
Ricky Stewart
31b8ca9716 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
Dorel Luca
b959dcf2b1 Backed out 2 changesets (bug 1664053) for Browser-chrome failures. CLOSED TREE
Backed out changeset 7ead316c420d (bug 1664053)
Backed out changeset 7ae93e1c8b86 (bug 1664053)
2020-10-26 20:08:38 +02:00
Gijs Kruitbosch
efd63d908a Bug 1673341 - fix menu bar toggling to persist the correct state, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D94729
2020-10-26 14:52:56 +00:00
Micah Tigley
2171053b5c Bug 1664053 - Show 'Other Bookmarks' folder in bookmarks toolbar. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D93698
2020-10-22 02:04:24 +00:00
Chris H-C
f645197790 Bug 1673346 - Don't init FOG if not MOZ_GLEAN r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D94738
2020-10-26 15:27:04 +00:00
Mark Banner
3a529700c9 Bug 699844 - Remove the live bookmark migrator as it is not needed now. r=mak,markh
Differential Revision: https://phabricator.services.mozilla.com/D93314
2020-10-26 12:32:52 +00:00
Daisuke Akatsuka
e31e1f90f1 Bug 1641287: Focus on browser after keyup. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D92561
2020-10-26 05:30:44 +00:00
Jared Wein
64176c986d Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers,marionette-reviewers,whimboo
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-26 02:32:07 +00:00
Harry Twyford
45ddfb77f0 Bug 1667766 - Part 2 - Restyle URL heuristic results as search results when cycling through one-offs. r=adw
This patch replaces the heuristic's icon, title, and action text when cycling through the one-offs. One problem is that the underlying result is still of RESULT_TYPE.URL, so picking it would visit its underlying URL. One way to get around this would be to create a new search UrlbarResult and swap it with the heuristic result, or change all the properties of the UrlbarResult so it becomes a search result. These approaches were discussed in review and rejected because they break the design of the QuantumBar. Having the URL result navigate to a SERP when picked would also require a lot of flags and conditionals throughout our navigation logic, which isn't ideal. I settled on promoting search mode when one of these restyled results is picked. I admit that this is a bit of a strange interaction, given that something that looks like a search heuristic result behaves like a keywordoffer, but I think its preferable to us navigating to a URL the user cannot see in the UI. As discussed in review, this result can only be picked by clicking on it. The chance of a user clicking the heuristic result while arrowing through the one-offs is exceedingly slim, so it seems like a decent compromise between UX and engineering effort. It also means selecting the restyled result with click and Enter does the same thing, so it's not completely out of nowhere.

I checked a11y with this patch applied and things are mostly unchanged from a screen reader perspective. Currently, typing the string "moz", alt+arrowing to the first one-off, then selecting it will create announcements like: "m", "o", "z", "Selection replaced. Google (@google), button", "Selection replaced. moz, Search with Google, edit text". The same annoucements are made with this patch applied. Pressing down arrow (not alt) will announce the second result. Arrowing back up to the heuristic will announce the original autofill result, because the original autofill result has been swapped back in. I'll ping Jamie in the bug once this patch is mature.

Differential Revision: https://phabricator.services.mozilla.com/D94338
2020-10-24 02:05:11 +00:00
Harry Twyford
882cdfacce Bug 1667766 - Part 1 - Refactor UrlbarView._on_SelectedOneOffButtonChange and fix one-off selection papercuts. r=adw
This patch fixes two issues:

1. When a history result was autofilled, cycling through the engine one-offs would not change its icon (as expected) and cycling through the local one-offs would change its icon, but only to the history icon. This was because UrlbarView._iconForSearchResult was only checking for the result source and wasn't checking that the result was of search type as well. For consistency, we no longer change the icon when local one-offs are selected (we will change it once we figure out a way to change it for engine one-offs as well). I also renamed this method to _iconForResult to prep for Part 2 of this patch.

2. Typing a string, alt+arrowing through the one-offs, then pressing Enter flickers the heuristic result. This is because the one-off button is deselected, so we restore the original heuristic result. However, the search mode query also fires at the same time and quickly replaces the heuristic result. I added a check to not restore the original heuristic result in this case, eliminating the flicker.

This patch also refactors UrlbarView._on_SelectedOneOffButtonChanged. Previously, the main loop bailed early if a local one-off was selected, thus treating local one-offs as if they were very different from engine one-offs. This new flow handles both local and engine one-offs over the course of the same loop. I think it's a bit easier to read and understand.

Differential Revision: https://phabricator.services.mozilla.com/D94637
2020-10-24 02:05:11 +00:00
Bogdan Tara
612312a64c 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
1420be7fef Bug 1672023 - Remove excluded files from black.yml r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-23 20:40:44 +00:00
Ricky Stewart
065d2eb893 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
Sean Feng
5694719e62 Bug 1518999 - Refactor some performance.getEntries related tests r=mstange
Some tests made some assumptions about the number of returned entries
by performance.getEntries, and these assumptions are not valid
anymore once we added new entries.

Depends on D66463

Differential Revision: https://phabricator.services.mozilla.com/D68645
2020-10-23 19:44:11 +00:00
Harry Twyford
0ea340fef0 Bug 1672533 - Dedupe SERPs in history whose query parameters are a subset of a generated search URL. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D94396
2020-10-23 16:01:42 +00:00
Bogdan Tara
bdcaf74315 Backed out changeset d1c5493f3915 (bug 1465847) for causing leaks CLOSED TREE 2020-10-23 20:13:59 +03:00
Michael Kaply
8ea990d4d0 Bug 1465847 - If a website is blocked via policy, block view source. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D94366
2020-10-23 15:56:34 +00:00
Drew Willcoxon
12761455ab Bug 1672680 - Properly handle non-ASCII spaces in search alias and restriction token searches. r=mak
This fixes all the problems created by bug 1658964 and modifies existing tests
so we check a variety of spaces.

Differential Revision: https://phabricator.services.mozilla.com/D94555
2020-10-23 13:49:20 +00:00
prathiksha
9b84dbd5bd Bug 1671186 - Include event source in telemetry events sent by new tab section menus. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D93748
2020-10-23 15:02:12 +00:00
Andreas Farre
e4556a3316 Bug 1667767 - Expose the BC's HistoryID field through WebIDL. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D92893
2020-10-23 10:07:09 +00:00
smolnar
d50a213ba4 Merge autoland to mozilla-central. a=merge 2020-10-23 12:45:11 +03:00
smolnar
b581b26df4 Backed out changeset 38627c09131d (bug 1671619) for causing crashes (bug 1672560). DONTBUILD a=backout 2020-10-23 12:42:38 +03:00
Drew Willcoxon
2c7f59f04c Bug 1672643 - Do not show form history (search suggestions from history) at all when browser.urlbar.maxHistoricalSearchSuggestions == 0. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D94504
2020-10-22 22:25:12 +00:00
Nihanth Subramanya
477a5cbd58 Bug 1645924 - Test whether we use the right strings if the MVP UI is enabled or not. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94406
2020-10-22 13:01:50 +00:00
Nihanth Subramanya
26cf222d69 Bug 1645924 - Update "Cookies" and "Heads up" strings for cookieBehavior=5 in content blocking prefs. r=prathiksha,fluent-reviewers,preferences-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D92430
2020-10-22 13:03:48 +00:00
Peter Van der Beken
e1af41f7b5 Bug 1672193 - Re-enable some tests that are now succeeding with session history in parent and Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D94120
2020-10-20 17:48:51 +00:00
Mihai Alexandru Michis
dc6c624799 Backed out changeset ba261cf25651 (bug 727668) for causing marionette failures in test_screenshot.py
CLOSED TREE
2020-10-22 06:13:54 +03:00
Dorel Luca
95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Dorel Luca
a16a649fd4 Backed out changeset 94ec15429e21 (bug 1672023) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:43:01 +03:00
Mike Conley
84f955187a Bug 1647757 - Terminate the about:home startup cache worker when experiencing memory-pressure. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D94391
2020-10-21 22:44:50 +00:00
Ricky Stewart
9ba6a781c1 Bug 1672023 - Remove excluded files from black.yml r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-21 21:29:30 +00:00
Ricky Stewart
43baed3c18 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
Mike Conley
535b29c155 Bug 1669733 - Fix an AboutHomeStartupCache log message, and make logging less noisy by default. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D94375
2020-10-21 20:56:22 +00:00
Bernard Igiri
1252c9d1fa Bug 1614465 - Replacing ASRouter calls to MessageChannel with JSWindowActors to eliminate ASRouterFeed r=k88hudson
Patch by Bernard Igiri <bigiri@mozilla.com>

Replacing async events with async method calls that use JSWindowActors to communicate with the parent process.
This will simplify these calls, bring the relevant code into local scope, and eliminate the need for MessageChannel.
Eliminating the MessageChannel dependency allows us to move the ASRouter initialization out of ASRouterFeed and into
JSWindowActors.

Differential Revision: https://phabricator.services.mozilla.com/D71796
2020-10-21 20:04:13 +00:00
Jared Wein
8debd64190 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-21 19:20:20 +00:00
Michael Kaply
78d5535399 Bug 1559181 - Switch about blocking to use new REJECT_POLICY and cleanup tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D93390
2020-10-22 19:36:52 +00:00
Dão Gottwald
953520da5b Bug 1672144 - Sponsored top sites: Make "Our sponsors & your privacy" a direct link to SUMO. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D94098
2020-10-22 16:37:43 +00:00
Scott
fd8ed83ed9 Bug 1665458 - Adding telemetry ping docs for Pocket on save recs. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D94322
2020-10-21 17:53:23 +00:00
Drew Willcoxon
8d5d3b569d Bug 1672146 - Make UrlbarProviderSearchTips deal with the update manager not existing. r=harry
In the bug, Gijs suggests checking `AppConstants.MOZ_UPDATER`, but the stack
shows that `Cc[aContract]` isn't defined, so it seems better to check for that
instead.

I'm not sure how or whether it's even possible to write a test where there's no
updater, so I haven't added one, and in the case where there is an updater,
that's covered by our existing tests of course.

Differential Revision: https://phabricator.services.mozilla.com/D94257
2020-10-21 13:24:12 +00:00