Closed Bug 2061266 Opened 3 months ago Closed 1 month ago

[PDF.js] Add Nimbus mechanism to control hiding previous PDF toolbar based on secret settings

Categories

(GeckoView :: PDF Viewer, task)

All
Android
task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: olivia, Assigned: olivia)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

Previous toolbar is on the PDF.js side. We need a way to turn it off for changeover purposes.

Summary: Add Gecko Preference to control hiding previous PDF toolbar → [PDF.js] Add Gecko Preference to control hiding previous PDF toolbar
Severity: -- → N/A

I confirmed the old instrumentation still works. Turning that to false will indeed hide the PDF.js toolbar.

We can easily control the toolbar from Nimbus that way for a rollout, but I'm not sure yet about secret settings in a sensible way. Ideally, it would be nice to control the toolbar from secret settings too.

I talked to [:beth] and it makes sense to add some control in NimbusExperimentDelegate that can connect to see if we have a secret setting for this.

So, something like:

if (nimbus.isEnrolledInFeature(feature)) {
  return featureValue;
} else if (hasSecretSettingsValue) {
  return secretSettingsValue;
} else {
  return nimbus.getFeature(feature).value; // this will be the nimbus default
}

We want the secret setting to be the acting default value.

Bug 2061270 should probably be completed before this bug, then, so we have a named secret setting ready. (Pending some of the spikes to confirm a few more things.)

Depends on: 2061504
See Also: → 2061270
Summary: [PDF.js] Add Gecko Preference to control hiding previous PDF toolbar → [PDF.js] Add Nimbus mechanism to control hiding previous PDF toolbar based on secret settings

We're really close to Nightly for this feature, so the secret settings story isn't as important for it now. However, bug 2061504 still would be really valuable as this story is likely to repeat itself next time we need to temporarily control something similar.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.