Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 1843803002: [Extensions] Add an access check before executing native code in the renderer (Closed)

Created:
4 years, 8 months ago by Devlin
Modified:
4 years, 8 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, asargent_no_longer_on_chrome, lazyboy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Add an access check before executing native code in the renderer Sometimes things can intercept bindings. Check access before doing anything. This is a first step that just adds it for the test API. BUG=598165 Committed: https://crrev.com/cbad917fdd9651eb9afd723a81c9d2ab437ce03d Cr-Commit-Position: refs/heads/master@{#384614}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
M extensions/renderer/object_backed_native_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/object_backed_native_handler.cc View 1 5 chunks +34 lines, -1 line 0 comments Download
M extensions/renderer/script_context.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M extensions/renderer/user_gestures_native_handler.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Devlin
See the bug for more context, but I'm curious what you think. https://codereview.chromium.org/1843803002/diff/20001/extensions/renderer/object_backed_native_handler.cc File extensions/renderer/object_backed_native_handler.cc ...
4 years, 8 months ago (2016-03-30 22:02:28 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1843803002/diff/20001/extensions/renderer/object_backed_native_handler.cc File extensions/renderer/object_backed_native_handler.cc (right): https://codereview.chromium.org/1843803002/diff/20001/extensions/renderer/object_backed_native_handler.cc#newcode64 extensions/renderer/object_backed_native_handler.cc:64: if (content::WorkerThread::GetCurrentId() == 0) { why is this check ...
4 years, 8 months ago (2016-03-31 15:13:50 UTC) #5
Devlin
https://codereview.chromium.org/1843803002/diff/20001/extensions/renderer/object_backed_native_handler.cc File extensions/renderer/object_backed_native_handler.cc (right): https://codereview.chromium.org/1843803002/diff/20001/extensions/renderer/object_backed_native_handler.cc#newcode64 extensions/renderer/object_backed_native_handler.cc:64: if (content::WorkerThread::GetCurrentId() == 0) { On 2016/03/31 15:13:50, jochen ...
4 years, 8 months ago (2016-03-31 16:38:08 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-01 08:44:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843803002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843803002/40001
4 years, 8 months ago (2016-04-01 16:24:57 UTC) #9
Devlin
+asargent@, lazyboy@ fyi
4 years, 8 months ago (2016-04-01 16:25:06 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 8 months ago (2016-04-01 17:15:00 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 17:16:00 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cbad917fdd9651eb9afd723a81c9d2ab437ce03d
Cr-Commit-Position: refs/heads/master@{#384614}

Powered by Google App Engine
This is Rietveld 408576698