Commit Graph

70400 Commits

Author SHA1 Message Date
Marco Bonardo
4326222700 Bug 1655363 - Autofill is wrongly fixing up origins in certain cases. r=adw
A poorly thought fixup SQL condition was stripping "www." from the origin in any
case, but when the search string contained "www.".
This ended up stripping too often, for example when typing "w" and matching
against "www.mozilla.org".
Instead, the query should strip "www." from the origin only if it doesn't start
with the search string.

Differential Revision: https://phabricator.services.mozilla.com/D85006
2020-07-27 23:16:00 +00:00
Scott
715fffb251 Bug 1629483 - Newtab card opacity lines overlap fix r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D85034
2020-07-27 21:21:36 +00:00
Lina Cambridge
fa09436f2b Bug 1635662 - Manage the ecosystem client ID in telemetry. r=chutten
This commit adds a new ecosystem client ID to `ClientID.jsm`. It's
handled the same way as a regular telemetry client ID, in that it's a
random UUID that's persisted to disk, and reset together with the
client ID. Unlike the main client ID, we don't cache it in prefs.

Additionally:

* `setClientID` has been renamed to `setCanaryClientIDs`, and
  automatically sets the main and ecosystem client IDs to the canary
  (known) ID. It's no longer possible to set either client ID to a
  specific value, but only test code did this.
* `resetClientID` has been renamed to `removeClientIDs`, and clears
  both client IDs. It no longer returns the new ID; instead, consumers
  should call `getClientID` or `getEcosystemClientID` after.
* The ecosystem client ID is included in the `deletion-ping`.

Differential Revision: https://phabricator.services.mozilla.com/D84233
2020-07-28 01:39:11 +00:00
Drew Willcoxon
8c11ad7677 Bug 1654439 - Part 2: Factor out some urlbar-specific things from SearchOneOffs into UrlbarSearchOneOffs. r=harry
The base class retains the `popup` property, and now the `view` property is
entirely in the subclass. I defined some new methods so that the subclass can
easily customize behavior for a view that's not a popup. I used the name "view"
in these method names to refer to a generic view/panel. I didn't rename `popup`
`view` because the base class still assumes that `popup` is a `menupopup`.

We could/should probably get rid of the "compact" concept and instead specialize
the behavior even further in the subclass, but for simplicity's sake I left that
for now.

Depends on D84784

Differential Revision: https://phabricator.services.mozilla.com/D84785
2020-07-28 02:55:41 +00:00
Drew Willcoxon
99378dda74 Bug 1654439 - Part 1: Move search-one-offs.js into a jsm, add UrlbarSearchOneOffs.jsm. r=harry
This moves search-one-offs.js into a jsm without making any substantive changes,
adds a new subclass in UrlbarSearchOneOffs.jsm, and uses `UrlbarSearchOneOffs`
in `UrlbarView` instead of the base `SearchOneOffs` class. `UrlbarSearchOneOffs`
will be fleshed out in part 2.

Differential Revision: https://phabricator.services.mozilla.com/D84784
2020-07-28 02:54:37 +00:00
Zibi Braniecki
11395cf9ff Bug 1654167 - Add preferences telemetry for Credit Card A/B testing. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D84293
2020-07-28 00:29:50 +00:00
Zibi Braniecki
48beff740e Bug 1653083 - Add doorhanger telemetry for Credit Card A/B testing. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D83723
2020-07-27 22:43:26 +00:00
Adam Roach [:abr]
ab461dd2a4 Bug 1653162: Add telemetry reporting for autofill events. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D83733
2020-07-27 17:33:41 +00:00
Morgan Reschenberg
daf0b1d1dc Bug 1654672: Remove logging for nonexistant zoom scalar. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D85089
2020-07-28 00:03:50 +00:00
Narcis Beleuzu
d2ab5ee1a5 Backed out 2 changesets (bug 1654439) for lint failure on SearchOneOffs.jsm . CLOSED TREE
Backed out changeset c03e14b7c430 (bug 1654439)
Backed out changeset 51b575b0d605 (bug 1654439)
2020-07-28 03:35:15 +03:00
Joel Maher
2f2dc70492 Bug 1654553 - fix browser chrome tests to support Object.is instead of ==. r=gbrown,preferences-reviewers,Gijs,rpl
fix browser chrome tests to support Object.is instead of ==

Differential Revision: https://phabricator.services.mozilla.com/D84539
2020-07-27 17:02:35 +00:00
Drew Willcoxon
b9137c3138 Bug 1654439 - Part 2: Factor out some urlbar-specific things from SearchOneOffs into UrlbarSearchOneOffs. r=harry
The base class retains the `popup` property, and now the `view` property is
entirely in the subclass. I defined some new methods so that the subclass can
easily customize behavior for a view that's not a popup. I used the name "view"
in these method names to refer to a generic view/panel. I didn't rename `popup`
`view` because the base class still assumes that `popup` is a `menupopup`.

We could/should probably get rid of the "compact" concept and instead specialize
the behavior even further in the subclass, but for simplicity's sake I left that
for now.

Depends on D84784

Differential Revision: https://phabricator.services.mozilla.com/D84785
2020-07-27 15:17:35 +00:00
Drew Willcoxon
97c020d1fc Bug 1654439 - Part 1: Move search-one-offs.js into a jsm, add UrlbarSearchOneOffs.jsm. r=harry
This moves search-one-offs.js into a jsm without making any substantive changes,
adds a new subclass in UrlbarSearchOneOffs.jsm, and uses `UrlbarSearchOneOffs`
in `UrlbarView` instead of the base `SearchOneOffs` class. `UrlbarSearchOneOffs`
will be fleshed out in part 2.

Differential Revision: https://phabricator.services.mozilla.com/D84784
2020-07-27 14:55:41 +00:00
Brindusan Cristian
5fd82d4d7d Merge mozilla-central to autoland on a CLOSED TREE 2020-07-27 23:34:59 +03:00
Brindusan Cristian
2d3cb7b452 Merge autoland to mozilla-central. a=merge 2020-07-27 23:31:20 +03:00
Mozilla Releng Treescript
e0a22e8714 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-07-27 17:45:43 +00:00
Mark Banner
10cbdaa642 Bug 1620537 - Fix more ESLint issues raised after upgrading to ESlint 7. r=mossop
There's two issues being fixed here - the first is that no-unused-vars now reports against the last instance of the unused variable. The second is no-dupe-else-if is now on by default.

Depends on D84816

Differential Revision: https://phabricator.services.mozilla.com/D84818
2020-07-24 21:31:24 +00:00
Csoregi Natalia
aa44a640ec Backed out changeset bb8a399944a5 (bug 1635662) for failures on test_client_id.js. CLOSED TREE 2020-07-25 01:47:11 +03:00
Noemi Erli
20a8201c14 Backed out changeset 4e38530aaba0 (bug 1653162) for causing failures in test_autofillFormFields.js CLOSED TREE 2020-07-25 00:57:53 +03:00
Adam Roach [:abr]
bb0f28cfe0 Bug 1653162: Add telemetry reporting for autofill events. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D83733
2020-07-24 20:53:11 +00:00
Lina Cambridge
308c0763a7 Bug 1635662 - Manage the ecosystem client ID in telemetry. r=chutten
This commit adds a new ecosystem client ID to `ClientID.jsm`. It's
handled the same way as a regular telemetry client ID, in that it's a
random UUID that's persisted to disk, and reset together with the
client ID. Unlike the main client ID, we don't cache it in prefs.

Additionally:

* `setClientID` has been renamed to `setCanaryClientIDs`, and
  automatically sets the main and ecosystem client IDs to the canary
  (known) ID. It's no longer possible to set either client ID to a
  specific value, but only test code did this.
* `resetClientID` has been renamed to `removeClientIDs`, and clears
  both client IDs. It no longer returns the new ID; instead, consumers
  should call `getClientID` or `getEcosystemClientID` after.
* The ecosystem client ID is included in the `deletion-ping`.

Differential Revision: https://phabricator.services.mozilla.com/D84233
2020-07-24 20:35:58 +00:00
Nihanth Subramanya
bb8f770917 Bug 1654520 - Concat the networkID to the clientID and SHA256 the result before including in telemetry. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D84859
2020-07-24 20:23:33 +00:00
Nihanth Subramanya
dc37cc06de Bug 1654520 - [DoH] Debounce heuristics; Include networkID and captiveState in heuristics telemetry event. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D84648
2020-07-24 20:23:33 +00:00
Nihanth Subramanya
ee4d71191c Bug 1654714 - [DoH] Group heuristics results into three categories to reduce extra key count in telemetry. r=Gijs,tdsmith
Differential Revision: https://phabricator.services.mozilla.com/D84719
2020-07-24 20:22:25 +00:00
Andrei Oprea
b705cbc95d Bug 1654802 - Add support for header urls in send to device snippet r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D84709
2020-07-24 17:06:58 +00:00
Noemi Erli
8f9b354ff9 Backed out 2 changesets (bug 1653392, bug 1648868) for causing failures in browser_modal_print.js CLOSED TREE
Backed out changeset 7fac5bd02bb3 (bug 1653392)
Backed out changeset 9f8b675f0f6b (bug 1648868)
2020-07-24 20:38:06 +03:00
Dão Gottwald
cfa8eb9c8b Bug 1653932 - Add pref for top site defaults from remote settings. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D84532
2020-07-24 16:41:04 +00:00
Mark Striemer
c30a3a2200 Bug 1648868 - Move modal print UI into a tab modal r=Gijs
This gets the print UI into a tab modal but does so by abusing
SubDialog. This should be migrated to TabDialogBox in bug 1653317.

Differential Revision: https://phabricator.services.mozilla.com/D84244
2020-07-24 15:53:36 +00:00
Andrei Oprea
08df665966 Bug 1644743 - Consolidate Targeting evaluation across Normandy, Experiment Manager and ASRouter r=k88hudson,mythmon,janerik
Differential Revision: https://phabricator.services.mozilla.com/D79967
2020-07-24 15:24:41 +00:00
Mark Banner
231954fd25 Bug 1652832 - Add new search engines locales and updated icons for gmx distributions. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D84601
2020-07-24 16:03:08 +00:00
Andreea Pavel
e8ade27fb1 Backed out changeset bdedb095df0f (bug 1653932) for failing Screenshots.jsm on a CLOSED TREE 2020-07-24 19:02:05 +03:00
Mike Conley
caa4a47fad Bug 1654266 - Make sure the 'Stop Sharing' button in the WebRTC indicator only stops displays, and not mic/camera streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D84574
2020-07-24 15:14:17 +00:00
Mike Conley
ec79b797d6 Bug 1641274 - Default some browser.startup boolean scalars to false instead of undefined. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D84744
2020-07-23 23:44:44 +00:00
Coroiu Cristina
c8b6c9f554 Backed out changeset 47420937d6b1 (bug 1644743) for browser-chrome failures at browser/base/content/test/static/browser_all_files_referenced.js on a CLOSED TREE 2020-07-24 17:42:56 +03:00
Dão Gottwald
ab5f6e6216 Bug 1653932 - Add pref for top site defaults from remote settings. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D84532
2020-07-24 14:13:08 +00:00
Andrei Oprea
bb5054fefb Bug 1644743 - Consolidate Targeting evaluation across Normandy, Experiment Manager and ASRouter r=k88hudson,mythmon,janerik
Differential Revision: https://phabricator.services.mozilla.com/D79967
2020-07-24 12:12:10 +00:00
Sebastian Hengst
ca9407d143 Bug 1279821 - Skip browser_windowStateContainer.js with fission and either debug or Windows. r=kashav DONTBUILD
Test got enabled for these configs in bug 1653674.

Differential Revision: https://phabricator.services.mozilla.com/D84669
2020-07-24 12:11:33 +00:00
Andreea Pavel
737bacd5f2 Backed out changeset f7bb83828578 (bug 1639826) for failing bc at browser_protectionsUI.js on a CLOSED TREE 2020-07-24 15:25:59 +03:00
Marco Bonardo
48d23c80d5 Bug 1654316 - Autofill is not properly considering bookmarked status of origins. r=adw
The old query was picking a random bookmarked status out of the pages in an origin,
depending on the physical position of the origin rows in the table.
The new query uses window functions to partition the data by origin, so it can
query origins just once and sum www and non-www origin's frecency scores before
comparing to the autofill threshold.

Differential Revision: https://phabricator.services.mozilla.com/D84657
2020-07-24 12:01:15 +00:00
Ingrid Buh
132ea835ae Bug 1639826 - Fix hover effects on link texts in the protection panel. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D81309
2020-07-24 10:30:07 +00:00
Kenrick
ad72d219c9 Bug 1587372 - Fix missing render after saving without any changes in about:logins. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D82368
2020-07-24 04:21:35 +00:00
Gijs Kruitbosch
eabaeb4c02 Bug 1652613 - record whether the user switched away from the tab while it was hung, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D84343
2020-07-24 00:55:34 +00:00
Gijs Kruitbosch
02d23145dc Bug 1652613 - record a telemetry event when we show the slow script notification warning, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D83922
2020-07-24 00:50:12 +00:00
Tracy Walker
acc03ec147 Bug 1654348 - Remove obsolete browser_<enginename>.js tests r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D84569
2020-07-23 21:16:48 +00:00
Dorel Luca
54d5f1c9ed Backed out 4 changesets (bug 1652613) for Browser-chrome failures in browser/browser_ProcessHangNotifications.js. CLOSED TREE
Backed out changeset 76b5a5d243d1 (bug 1652613)
Backed out changeset 6f98c9b01920 (bug 1652613)
Backed out changeset 1255237ce2e7 (bug 1652613)
Backed out changeset bdf59854c900 (bug 1652613)
2020-07-24 02:58:22 +03:00
Mihai Alexandru Michis
862a49c505 Bug 1456284 - Disable browser_insecure_form.js on macos for causing permafailures. a=fix
CLOSED TREE
2020-07-24 01:32:57 +03:00
Gijs Kruitbosch
e609c52743 Bug 1652613 - record whether the user switched away from the tab while it was hung, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D84343
2020-07-22 22:28:05 +00:00
Gijs Kruitbosch
f5fc88e2ae Bug 1652613 - record a telemetry event when we show the slow script notification warning, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D83922
2020-07-22 22:28:31 +00:00
Harry Twyford
bc3ea4aef4 Bug 1647915 - Restrict queryContext to search mode when visual indicator is visible. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D83855
2020-07-23 20:01:32 +00:00
Harry Twyford
e0a1235a88 Bug 1653643 - Implement different visual state for the Urlbar search mode indicator when the Urlbar is collapsed. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D84433
2020-07-23 14:11:10 +00:00