|
|
Created:
4 years, 6 months ago by rjkroege Modified:
4 years, 6 months ago CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd StructTraits for AcceleratedWidget instances.
Provide StructTraits for sending AcceleratedWidgets between
processes.
BUG=620927
Committed: https://crrev.com/4c267402a084f4873c3fbbaa79443f19960a7ef2
Cr-Commit-Position: refs/heads/master@{#401742}
Patch Set 1 #Patch Set 2 : fix build #Patch Set 3 : fix build #
Total comments: 1
Patch Set 4 : formatting #Patch Set 5 : review comments #
Messages
Total messages: 48 (23 generated)
The CQ bit was checked by rjkroege@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2071163002/1
rjkroege@chromium.org changed reviewers: + rockot@chromium.org
Per discussion the other day. PTAL.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...)
The CQ bit was checked by rjkroege@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2071163002/20001
lgtm but nitty nit for the description: they are struct traits, not a struct trait. StructTraits<T> is a set of traits for type T
Description was changed from ========== Add a struct trait for AcceleratedWidget instances. Provide a struct-trait implementation for sending AcceleratedWidgets between processes. BUG=620927 ========== to ========== Add a struct trait for AcceleratedWidget instances. Provide a struct-trait implementation for sending AcceleratedWidgets between processes. BUG=620927 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
Description was changed from ========== Add a struct trait for AcceleratedWidget instances. Provide a struct-trait implementation for sending AcceleratedWidgets between processes. BUG=620927 ========== to ========== Add StructTraits for AcceleratedWidget instances. Provide a struct-trait implementation for sending AcceleratedWidgets between processes. BUG=620927 ==========
The CQ bit was checked by rjkroege@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2071163002/40001
Description was changed from ========== Add StructTraits for AcceleratedWidget instances. Provide a struct-trait implementation for sending AcceleratedWidgets between processes. BUG=620927 ========== to ========== Add StructTraits for AcceleratedWidget instances. Provide StructTraits for sending AcceleratedWidgets between processes. BUG=620927 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
rjkroege@chromium.org changed reviewers: + sadrul@chromium.org
rjkroege@chromium.org changed reviewers: + tsepez@chromium.org - sadrul@chromium.org
rjkroege@chromium.org changed reviewers: + sadrul@chromium.org
+tsepez@ for security review. +sadrul@ for general OWNERS
lgtm
rjkroege@chromium.org changed reviewers: + dcheng@chromium.org - tsepez@chromium.org
ptal
rjkroege@chromium.org changed reviewers: - dcheng@chromium.org
rjkroege@chromium.org changed reviewers: + dcheng@chromium.org
Do we have existing examples of code today that has to send HWNDs or other window handles over IPC? Mainly I'm just curious if there's any implications to randomly trusting the handle is valid.
I was able to find one example though there may be others: https://cs.chromium.org/chromium/src/chrome/common/chrome_utility_messages.h?..., which uses https://cs.chromium.org/chromium/src/ipc/ipc_message_utils.h?rcl=0&l=1027 because of https://cs.chromium.org/chromium/src/ipc/ipc_message_utils.h?rcl=0&l=630 On Tue, Jun 21, 2016 at 1:59 PM, <dcheng@chromium.org> wrote: > Do we have existing examples of code today that has to send HWNDs or other > window handles over IPC? Mainly I'm just curious if there's any > implications to > randomly trusting the handle is valid. > > https://codereview.chromium.org/2071163002/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
On 2016/06/21 20:59:25, dcheng wrote: > Do we have existing examples of code today that has to send HWNDs or other > window handles over IPC? Mainly I'm just curious if there's any implications to > randomly trusting the handle is valid. FWIW: all the uses of the traits here are sending a handle from a more trusted to a less trusted process.
On 2016/06/21 21:24:50, rjkroege wrote: > On 2016/06/21 20:59:25, dcheng wrote: > > Do we have existing examples of code today that has to send HWNDs or other > > window handles over IPC? Mainly I'm just curious if there's any implications > to > > randomly trusting the handle is valid. > > FWIW: all the uses of the traits here are sending a handle from a more trusted > to a less trusted process. I should clarify. There are no uses of this code currently in tree. In a forthcoming CL, the mojo interface using this trait will only be calls from a more trusted to a less trusted process.
lgtm
https://codereview.chromium.org/2071163002/diff/40001/ui/gfx/mojo/accelerated... File ui/gfx/mojo/accelerated_widget_struct_traits.h (right): https://codereview.chromium.org/2071163002/diff/40001/ui/gfx/mojo/accelerated... ui/gfx/mojo/accelerated_widget_struct_traits.h:17: return uint64_t(widget); Nit: static_cast here and below rather than using a function-style cast.
The CQ bit was checked by rjkroege@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rockot@chromium.org, sadrul@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2071163002/#ps60001 (title: "formatting")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2071163002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...)
The CQ bit was checked by rjkroege@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rockot@chromium.org, sadrul@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2071163002/#ps80001 (title: "review comments")
On 2016/06/22 14:18:08, dcheng wrote: > https://codereview.chromium.org/2071163002/diff/40001/ui/gfx/mojo/accelerated... > File ui/gfx/mojo/accelerated_widget_struct_traits.h (right): > > https://codereview.chromium.org/2071163002/diff/40001/ui/gfx/mojo/accelerated... > ui/gfx/mojo/accelerated_widget_struct_traits.h:17: return uint64_t(widget); > Nit: static_cast here and below rather than using a function-style cast. Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2071163002/80001
Message was sent while issue was closed.
Description was changed from ========== Add StructTraits for AcceleratedWidget instances. Provide StructTraits for sending AcceleratedWidgets between processes. BUG=620927 ========== to ========== Add StructTraits for AcceleratedWidget instances. Provide StructTraits for sending AcceleratedWidgets between processes. BUG=620927 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Add StructTraits for AcceleratedWidget instances. Provide StructTraits for sending AcceleratedWidgets between processes. BUG=620927 ========== to ========== Add StructTraits for AcceleratedWidget instances. Provide StructTraits for sending AcceleratedWidgets between processes. BUG=620927 Committed: https://crrev.com/4c267402a084f4873c3fbbaa79443f19960a7ef2 Cr-Commit-Position: refs/heads/master@{#401742} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/4c267402a084f4873c3fbbaa79443f19960a7ef2 Cr-Commit-Position: refs/heads/master@{#401742} |