Closed Bug 1840658 Opened 1 year ago Closed 1 year ago

Check or Add Exposure Event for PDF Toolbar Experiment

Categories

(GeckoView :: PDF Viewer, task, P1)

All
Android
task

Tracking

(firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

Details

(Whiteboard: [geckoview:m116?][geckoview:m117][geckoview:m118][fxdroid][foundation])

Attachments

(1 file)

We need to setup an exposure event for the PDF.js Toolbar experiment to know what users encountered the feature.

Docs:

Assignee: nobody → ohall
Severity: -- → N/A
Component: PDF Viewer → Experimentation and Telemetry
Priority: -- → P2
Product: GeckoView → Fenix
Whiteboard: [geckoview:m116?][geckoview:m117][fxdroid][foundation]

After chatting with :royang:,

I think we will need to record an exposure event around here in PDF.js for both the Download and Open in App features similar to this example.

(I'm still researching what needs to occur. Moving this back to the viewer component, since it looks like we will need to do work on that side.)

Component: Experimentation and Telemetry → PDF Viewer
Product: Fenix → GeckoView
Priority: P2 → P1

I think we might only need one exposure event after onViewerIsUsed.

Early testing seems to indicate that using the Gecko call of NimbusFeatures.pdfjs.recordExposureEvent(); might not work and we will need to create a workaround. Will find out more during Nimbus office hours.

Confirmed that we will need to setup an API similar to onGetNimbusFeature (GV side and Fenix side) to send an exposure event for Android from the Gecko side.

Depends on: 1843592

Olivia - do you know if this is landing for 117? Looking at the notes - it sounds like we want to ping James Hugman as a reviewer.

That looks like the last step to launch this experiment https://experimenter.services.mozilla.com/nimbus/android-pdf-new-capabilities-experiment/edit/overview (since that passed QA!)

Flags: needinfo?(ohall)
Depends on: 1845824

Hi Shell, thanks for reaching out! This will be landing a little late in 118 and has a few dependencies that we will need to land first.

  • Bug 1843592 - Adds a runtime ExperimentDelegate to communicate between Fenix and GeckoView
  • Bug 1845824 - Adds a way for the GeckoView JS side to communicate with the Java ExperimentDelegate
    • I have a patch locally I'm finishing the tests up on, hope to land early 118
  • Bug 1845824 (this bug) - Will connect the work from bug 1845824 into the PDF code to send the exposure event

Good news is that the ExperimentDelegate background work will be helpful for GeckoView-side mobile experiments in the future and we won't have to set it up for the next experiment!

Flags: needinfo?(ohall)
Whiteboard: [geckoview:m116?][geckoview:m117][fxdroid][foundation] → [geckoview:m116?][geckoview:m117][geckoview:m118][fxdroid][foundation]

Connects the new ExperimentDelegate to the GeckoViewPdfjsParent for
getting Nimbus features and sending exposure events. Sends an exposure
event when the PDF is loaded.

Depends on D184841

See Also: → 1847115
Pushed by ohall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a892cc5b6a61 Add Exposure Event for PDF Toolbar Experiment r=geckoview-reviewers,calixte,owlish,tthibaud
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: