validate FrameSinkId and reset FrameSinkId::client_id in CompositorFrameSinkSupport |
|||||||
Issue descriptionWhen CompositorFrameSinkSupport receives the HitTestRegion, it needs to: 1. Validate the FrameSinkId in the data to verify that the client is allowed to submit hit-test data for that region (FrameSinkManagerImpl knows the whole hierarchy). 2. Reset the FrameSinkId::client_id part if it's not valid (i.e. has a value of 0). Clients don't know their real client_id so CompositorFrameSinkSupport should be responsible to set it to the real one (it has frame_sink_id_).
,
Aug 29 2017
Requiring all client-ids to be non-zero sounds reasonable to me.
,
Aug 29 2017
Sg, basically +1 to every client's client_id (i.e. WS 1, WM 2, ...)? If everyone agrees, I can file another bug and make the change in WS. Right now only display-root and wm-display-root are created by WS and they don't receive events (right?) so there shouldn't be confusion in CompositorFrameSinkSupport tho?
,
Aug 29 2017
This is inconsistent with what content does, and so I worry about having two different code paths here. 0 client ID means "browser process" in non-mus which happens to also work because that's the only place where we use aura in non-mus. This keeps code consistent between Mus and non-Mus by leaving it at 0.
,
Aug 29 2017
Right. None of the other clients would actually refer to the frame sinks for the ws, either in CompositorFrame or HitTestData. But if you print out the id, it would not be obvious whether this is a real fs id, or an fs id that still needs to be fixed/updated. So the purpose here would be to make it easier (or less confusing) when debugging.
,
Aug 29 2017
I think we are taking about the client id assigned to clients by the window server. This shouldn't affect content.
,
Aug 29 2017
None of the other clients see the windows with a client id == 0. But if you're referring to code in mus, then ya, that code sees client id == 0. It shouldn't be a problem to updated that, but will mean a bunch of id changes to tests.
,
Nov 8 2017
Migrating from Internals>Viz to Internals>Services>Viz.
,
Feb 26 2018
,
Apr 24 2018
Migrating Proj-Mustash-Mus to components Internals>Services>WindowService and Internals>Services>Ash
,
Aug 14
,
Aug 15
Cleaning up old Proj-Mustash labels. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by kylec...@chromium.org
, Aug 29 2017