| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Check if |window.internals| and |window.internals.runtimeFlags.AudioWorklet| | 2 * Check if |window.internals| and |window.internals.runtimeFlags.AudioWorklet| |
| 3 * are available. | 3 * are available. |
| 4 * | 4 * |
| 5 * The content_shell driven by run-webkit-tests.py is supposed to enable all the | 5 * The content_shell driven by run-webkit-tests.py is supposed to enable all the |
| 6 * experimental web platform features. The flags are exposed via | 6 * experimental web platform features. The flags are exposed via |
| 7 * |internals.runtimeFlag|. | 7 * |internals.runtimeFlag|. |
| 8 * | 8 * |
| 9 * See: https://www.chromium.org/blink/runtime-enabled-features | 9 * See: https://www.chromium.org/blink/runtime-enabled-features |
| 10 * | 10 * |
| 11 * @return {Boolean} | 11 * @return {Boolean} |
| 12 */ | 12 */ |
| 13 function isAudioWorkletEnabled() { | 13 function isAudioWorkletEnabled() { |
| 14 return { | 14 return { |
| 15 onContentShell: Boolean(window.internals) && | 15 onContentShell: Boolean(window.internals) && |
| 16 Boolean(window.internals.runtimeFlags.audioWorkletEnabled), | 16 Boolean(window.internals.runtimeFlags.audioWorkletEnabled), |
| 17 onBrowser: Boolean(window.Worklet) && Boolean(window.audioWorklet) | 17 onBrowser: Boolean(window.Worklet) && Boolean(window.audioWorklet) |
| 18 }; | 18 }; |
| 19 } | 19 } |
| OLD | NEW |