Skip to content

Commit 10c9193

Browse files
Android plugin experiment (duckduckgo#3434)
* Add plugin change experiment * Move into being an experiment * Lint fix * Use add for patches as safer and simpler
1 parent f8e6f16 commit 10c9193

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

overrides/android-override.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,6 +2509,71 @@
25092509
]
25102510
}
25112511
}
2512+
},
2513+
"apiManipulation": {
2514+
"readme": "Example config for apiManipulation to set navigator.plugins to return PDF viewer plugins",
2515+
"state": "enabled",
2516+
"exceptions": [],
2517+
"settings": {
2518+
"apiChanges": {},
2519+
"conditionalChanges": [
2520+
{
2521+
"condition": { "experiment": { "experimentName": "contentScopeExperiment0", "cohort": "treatment" } },
2522+
"patchSettings": [
2523+
{
2524+
"op": "add",
2525+
"path": "/apiChanges/Navigator.prototype.plugins",
2526+
"value": {
2527+
"type": "descriptor",
2528+
"getterValue": {
2529+
"type": "array",
2530+
"value": [
2531+
{
2532+
"name": "PDF Viewer",
2533+
"filename": "internal-pdf-viewer",
2534+
"description": "Portable Document Format"
2535+
},
2536+
{
2537+
"name": "Chrome PDF Viewer",
2538+
"filename": "internal-pdf-viewer",
2539+
"description": "Portable Document Format"
2540+
},
2541+
{
2542+
"name": "Chromium PDF Viewer",
2543+
"filename": "internal-pdf-viewer",
2544+
"description": "Portable Document Format"
2545+
},
2546+
{
2547+
"name": "Microsoft Edge PDF Viewer",
2548+
"filename": "internal-pdf-viewer",
2549+
"description": "Portable Document Format"
2550+
},
2551+
{
2552+
"name": "WebKit built-in PDF",
2553+
"filename": "internal-pdf-viewer",
2554+
"description": "Portable Document Format"
2555+
}
2556+
]
2557+
}
2558+
}
2559+
}
2560+
]
2561+
}
2562+
]
2563+
}
2564+
},
2565+
"contentScopeExperiments": {
2566+
"state": "enabled",
2567+
"features": {
2568+
"contentScopeExperiment0": {
2569+
"state": "enabled",
2570+
"minSupportedVersion": 52410000,
2571+
"cohorts": [
2572+
{ "name": "control", "weight": 1 },
2573+
{ "name": "treatment", "weight": 1 }
2574+
]
2575+
}
2576+
}
25122577
}
25132578
},
25142579
"unprotectedTemporary": [],

0 commit comments

Comments
 (0)