Closed Bug 1903609 Opened 1 year ago Closed 1 year ago

Fix usercharacteristics metrics that break on Fenix

Categories

(Core :: Privacy: Anti-Tracking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: fkilic, Assigned: fkilic)

Details

Attachments

(6 files)

Some data collection functions (screen properties and pointer event) crash Fenix and some don't finish/resolve (content page)

The previous implementaion used PointerEvent but that was being built from PointerEventHandler::InitPointerEventFrom(Mouse|Touch). The PointerEvent doesn't include the original event, so calling AsTouchEvent() caused failure. We now capture a widget event instead. It may seem like we lost some data, but actually those values were init'ed to 0. Now we collect only data that actually exists.

Times out data collections after 5 minutes. I changed all the functions to async to allow awaiting them. I also made FiraSans optional and fail silently if it doesn't exists i.e. on android it doesn't exists. This doesn't resolve Android data collection issue though, for some reason page service never resolves. I'll try to investigate it.

So far, pointer event and content page issue is resolved. Only screen properties is left.

Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/00f2e924c9f2 Reimplement pointer info to capture WidgetEvents. r=timhuang https://hg.mozilla.org/integration/autoland/rev/962fe23bb97a Timeout data collections in JS files. r=timhuang https://hg.mozilla.org/integration/autoland/rev/e3a3c98b34fd Move actor registration to UserCharacteristicsPageService.sys.mjs. r=timhuang https://hg.mozilla.org/integration/autoland/rev/8303598ec6b0 Skip ICEFoundations in automation. r=timhuang https://hg.mozilla.org/integration/autoland/rev/a93ca984ca88 Skip unavailable screen properties until we find an alternative. r=timhuang

Backed out for causing multiple failures.


  • Push with failures - build bustages
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/gfx/gl/GLContextProviderWGL.cpp(475,8): error: no viable conversion from 'mozilla::CastableTypedEnumResult<CreateContextFlags>' to 'bool'


Severity: -- → S3
Priority: -- → P3
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/acc3b15d2526 Reimplement pointer info to capture WidgetEvents. r=timhuang https://hg.mozilla.org/integration/autoland/rev/fc2913442ba9 Timeout data collections in JS files. r=timhuang https://hg.mozilla.org/integration/autoland/rev/1c555df47814 Move actor registration to UserCharacteristicsPageService.sys.mjs. r=timhuang https://hg.mozilla.org/integration/autoland/rev/a7cc58231fc9 Skip ICEFoundations in automation. r=timhuang https://hg.mozilla.org/integration/autoland/rev/0021392947f7 Skip unavailable screen properties until we find an alternative. r=timhuang https://hg.mozilla.org/integration/autoland/rev/86784dda5c3d Collect screen info. r=timhuang

Backed out for causing mochitests failures in browser_usercharacteristics.js.

Flags: needinfo?(fkilic)

I have no idea why the timeout would happen since we didn't get them on try branch. I'll take a look into it. Thank you!

Flags: needinfo?(fkilic)
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0f8422a76c6c Reimplement pointer info to capture WidgetEvents. r=timhuang https://hg.mozilla.org/integration/autoland/rev/3cea8e813f4c Timeout data collections in JS files. r=timhuang https://hg.mozilla.org/integration/autoland/rev/e137cf3d18d1 Move actor registration to UserCharacteristicsPageService.sys.mjs. r=timhuang https://hg.mozilla.org/integration/autoland/rev/c5b7a066c350 Skip ICEFoundations in automation. r=timhuang https://hg.mozilla.org/integration/autoland/rev/72fed4ba1558 Skip unavailable screen properties until we find an alternative. r=timhuang https://hg.mozilla.org/integration/autoland/rev/0320eea43d38 Collect screen info. r=timhuang
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: