graphics binding is registered. On every frame, Blink automatically
populates the camera_sync_tokens list. If the camera is not accessed,Can we not instead prevent this?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
graphics binding is registered. On every frame, Blink automatically
populates the camera_sync_tokens list. If the camera is not accessed,Can we not instead prevent this?
I think the alternative is to validate the camera SyncTokens [on the Blink side](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/xr/xr_session.cc;l=2334;drc=fcc8e2e643f4beab78d87a7a8566f0ed50332666;bpv=1;bpt=1), and not to push any empty SyncTokens into the `camera_sync_tokens` vector in the first place.
Alex, do you prefer this Blink-side solution?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
graphics binding is registered. On every frame, Blink automatically
populates the camera_sync_tokens list. If the camera is not accessed,Mingjing ZhangCan we not instead prevent this?
I think the alternative is to validate the camera SyncTokens [on the Blink side](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/xr/xr_session.cc;l=2334;drc=fcc8e2e643f4beab78d87a7a8566f0ed50332666;bpv=1;bpt=1), and not to push any empty SyncTokens into the `camera_sync_tokens` vector in the first place.
Alex, do you prefer this Blink-side solution?
Yeah, I think it's better to have a well behaved blink send only the tokens we expect
graphics binding is registered. On every frame, Blink automatically
populates the camera_sync_tokens list. If the camera is not accessed,Mingjing ZhangCan we not instead prevent this?
Alexander CooperI think the alternative is to validate the camera SyncTokens [on the Blink side](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/xr/xr_session.cc;l=2334;drc=fcc8e2e643f4beab78d87a7a8566f0ed50332666;bpv=1;bpt=1), and not to push any empty SyncTokens into the `camera_sync_tokens` vector in the first place.
Alex, do you prefer this Blink-side solution?
Yeah, I think it's better to have a well behaved blink send only the tokens we expect
Yeah I agree.
yyonglii@ Thank you for working on this fix. Could you instead move the SyncToken validation to the Blink side? Thanks.