blink.mojom.SameDocNavigationScreenshotDestinationToken?why not mojo/public/mojom/base/unguessable_token.mojom directly?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
blink.mojom.SameDocNavigationScreenshotDestinationToken?why not mojo/public/mojom/base/unguessable_token.mojom directly?
A few reasons! This ensures you have a compiler error if you pass in the wrong kind of ID, it makes the interface communicate an explicit contract, and this makes the name consistent with the type that consumes it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM
Thanks for the quick fix
Once this lands, let me kick off another CQ job for turning on TreesInViz on android bots
blink.mojom.SameDocNavigationScreenshotDestinationToken?Tzarialwhy not mojo/public/mojom/base/unguessable_token.mojom directly?
A few reasons! This ensures you have a compiler error if you pass in the wrong kind of ID, it makes the interface communicate an explicit contract, and this makes the name consistent with the type that consumes it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: ort...@chromium.org
📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).
IPC reviewer(s): ort...@chromium.org
Reviewer source(s):
ort...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +0 |
layers.SetScreenshotDestinationToken(I think I know why this doesn't work. CompositorFrame's metadata holds a screenshot_destination, but it came from LayerTreeHostImpl, not from LayerTreeImpl. So you need to set it to the host_impl_ instead.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
layers.SetScreenshotDestinationToken(I think I know why this doesn't work. CompositorFrame's metadata holds a screenshot_destination, but it came from LayerTreeHostImpl, not from LayerTreeImpl. So you need to set it to the host_impl_ instead.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (auto token = tree.TakeScreenshotDestinationToken(); !token.is_empty()) {I think you also need to take it from the LayerTreeHostImpl because the LayerTreeImpl's token is already taken.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (auto token = tree.TakeScreenshotDestinationToken(); !token.is_empty()) {I think you also need to take it from the LayerTreeHostImpl because the LayerTreeImpl's token is already taken.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
layers.SetScreenshotDestinationToken(I think I know why this doesn't work. CompositorFrame's metadata holds a screenshot_destination, but it came from LayerTreeHostImpl, not from LayerTreeImpl. So you need to set it to the host_impl_ instead.
Done, sent your CL to the trybots
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[TreesInViz] Propagate screenshot_destination_token to Viz
When TreesInViz is enabled, same-document navigation screenshots fail
because the `screenshot_destination_token` is not propagated from the
client side to the Viz-side `LayerTreeHostImpl`.
Normally, `CommitComplete()` transfers this token from `LayerTreeImpl`
to `LayerTreeHostImpl`. In TreesInViz mode, updates are applied directly
to the active tree via `LayerContextImpl`, bypassing `CommitComplete()`.
As a result, the generated compositor frame metadata lacked the
destination token, meaning the copy output request was never triggered
and screenshot tests timed out.
This CL: 1. Adds `screenshot_destination` to
`viz::mojom::LayerTreeUpdate`. 2. Populates it in
`VizLayerContext::UpdateDisplayTreeFrom`. 3. Adds
`SetScreenshotDestinationToken` to `LayerTreeHostImpl`. 4. Consumes the
token in `LayerContextImpl::DoUpdateDisplayTree` and
sets it on the `LayerTreeHostImpl`.
This fixes timeouts in BackForwardTransitionAnimationManagerBrowserTest
subframe transitions on Android when TreesInViz is enabled.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |