|
2509 | 2509 | ] |
2510 | 2510 | } |
2511 | 2511 | } |
| 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 | + } |
2512 | 2577 | } |
2513 | 2578 | }, |
2514 | 2579 | "unprotectedTemporary": [], |
|
0 commit comments