[PDF.js] Add Nimbus mechanism to control hiding previous PDF toolbar based on secret settings
Categories
(GeckoView :: PDF Viewer, task)
Tracking
(Not tracked)
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.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
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.
| Assignee | ||
Comment 2•3 months ago
|
||
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.)
| Assignee | ||
Comment 3•1 month ago
|
||
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.
Description
•