Closed Bug 1620395 Opened 5 years ago Closed 5 years ago

Deprecate Telemetry GeckoView Snapshot support in Firefox 76

Categories

(GeckoView :: General, task, P1)

task

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: KrisWright, Assigned: esawin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview:m76])

Attachments

(1 file, 1 obsolete file)

The thread TelemetryGVIO [1] uses the NS_NewNamedThread method, so it might be possible to move it to the background thread pool.

In an effort to reduce the number of ad-hoc threads in the browser, we want to convert instances of NS_NewNamedThread to use the background thread pool [2] wherever possible. If your thread may block, you can also include the NS_DISPATCH_EVENT_MAY_BLOCK flag.

[1] https://searchfox.org/mozilla-central/rev/c79c0d65a183d9d38676855f455a5c6a7f7dadd3/toolkit/components/telemetry/geckoview/TelemetryGeckoViewPersistence.cpp#522
[2] https://searchfox.org/mozilla-central/rev/91f6c02fcf4c16f78fdc4417f61f192688294066/xpcom/threads/nsThreadUtils.h#1730-1757

This is in the older part of our geckoview support layer. Alessio, do you know if we have current/new products relying on this mechanism? I know Fenix isn't.

Flags: needinfo?(alessio.placitelli)

(In reply to Chris H-C :chutten from comment #1)

This is in the older part of our geckoview support layer. Alessio, do you know if we have current/new products relying on this mechanism? I know Fenix isn't.

No, I don't think we currently have any product using that.

Eugin, are you aware of any modern Mozilla product using GeckoView other than Fenix, Focus, Firefox Reality?

Flags: needinfo?(alessio.placitelli) → needinfo?(esawin)

(In reply to Alessio Placitelli [:Dexter] from comment #2)

(In reply to Chris H-C :chutten from comment #1)

This is in the older part of our geckoview support layer. Alessio, do you know if we have current/new products relying on this mechanism? I know Fenix isn't.

No, I don't think we currently have any product using that.

Eugin, are you aware of any modern Mozilla product using GeckoView other than Fenix, Focus, Firefox Reality?

The only Mozilla product using the snapshot API is Focus.
We can deprecate the API in GV 76, which would remove it in GV 79, at which point we could also remove the Gecko implementation.

Would that be an acceptable time frame for this issue?

Flags: needinfo?(esawin)

Works for me. Does it work for you, :KrisWright?

Flags: needinfo?(kwright)

(In reply to Chris H-C :chutten from comment #4)

Works for me. Does it work for you, :KrisWright?

That sounds great!

Flags: needinfo?(kwright)

Alrighty, retitling to be about the deprecation.

Eugen, what does "deprecate" mean to you? NS_WARNING? Notices in the documentation? Or is there a specific annotation at a higher level of Focus that we should be looking into as well?

Flags: needinfo?(esawin)
Priority: -- → P2
Summary: Convert the thread 'TelemetryGVIO' to use the background thread pool → Deprecate Telemetry GeckoView Snapshot support in Firefox 76
Blocks: 1620656

(In reply to Chris H-C :chutten from comment #6)

Alrighty, retitling to be about the deprecation.

Eugen, what does "deprecate" mean to you? NS_WARNING? Notices in the documentation? Or is there a specific annotation at a higher level of Focus that we should be looking into as well?

GV API deprecation works by annotating the API docs and then finally removing the API down the road. We aim at keeping deprecated APIs for 3 versions to allow for a complete train cycle.

Before proceeding, I need to make sure this change is aligned with our priorities for Focus. With that issue cleared, I can land the deprecation annotations and docs and will file a new bug targeting at GV 79 to remove the API and Gecko implementation (depending on the complexity, we can split that into two parts to be assigned to the different teams accordingly).

Assignee: nobody → esawin
Flags: needinfo?(esawin)
Component: Telemetry → General
Product: Toolkit → GeckoView
Priority: P2 → P1
Whiteboard: [geckoview:m76]
Attachment #9132006 - Attachment is obsolete: true
Pushed by esawin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ead0580541ad [1.0] Deprecate GeckoView Snapshot Telemetry API. r=geckoview-reviewers,snorp,agi
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Blocks: 1644447
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: