| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
<!DOCTYPE html>Add a brief comment on what this is testing
if (DocumentHasUserExceptionFlag(document))This is used directly in a couple places:
Are both those usages still okay? Should those usages be replaced with an existing boolean helper?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Add a brief comment on what this is testing
Done
if (DocumentHasUserExceptionFlag(document))This is used directly in a couple places:
- https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/webaudio/audio_context.cc;l=1269;drc=3c88b7a724526e59f2603286d0144e5cc9a58905
- https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/speech/speech_synthesis.cc;l=367;drc=926943cad55d11056856e35487b1a0d19af4d579
Are both those usages still okay? Should those usages be replaced with an existing boolean helper?
Oh good catch! The speech synthesis usage is fine since falls back to `IsDocumentAllowedToPlay()` immediately afterwards which contains the same check that was just moved. The AudioContext usage needs to be updated to accommodate the prerendering edge case.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
}Does this need an else to avoid the switch below?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Does this need an else to avoid the switch below?
I believe the lack of an `else` statement here is required to fix b/498258317. Perhaps Hongchan can confirm.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |