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

Issue 555583003: Always use the caller's context in PepperTryCatchV8 (Closed)

Created:
6 years, 3 months ago by raymes
Modified:
6 years, 3 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Always use the caller's context in PepperTryCatchV8 This removes the DCHECK from PepperTryCatch which checks that the current context is equal to the plugin context. This assumption is not always true. In particular, if we call into the plugin directly from another frame (which is in the same origin) the current context will differ. The same is true for background scripts. This should be ok; we should always use the calling context so as to not leak v8 objects across contexts. BUG=412062 Committed: https://crrev.com/1630477a5ebc6cfab27704b54ca89a76a3036c6a Cr-Commit-Position: refs/heads/master@{#294291}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M content/renderer/pepper/pepper_try_catch.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
raymes
6 years, 3 months ago (2014-09-09 03:43:51 UTC) #2
dmichael (off chromium)
tl;dr: I think what we want is to just assume there's a context. In places ...
6 years, 3 months ago (2014-09-09 21:38:06 UTC) #3
raymes
I sort of understand - thanks for the explanation :) PTAL at the updated patch. ...
6 years, 3 months ago (2014-09-09 23:29:58 UTC) #4
raymes
Actually after thinking about it some more I'm not completely sure it's an issue. I ...
6 years, 3 months ago (2014-09-09 23:54:37 UTC) #5
raymes
+abarth for his thoughts on this
6 years, 3 months ago (2014-09-10 00:29:43 UTC) #7
raymes
+jochen as well in case he gets to it before abarth
6 years, 3 months ago (2014-09-10 05:43:30 UTC) #9
jochen (gone - plz use gerrit)
lgtm
6 years, 3 months ago (2014-09-10 07:37:30 UTC) #10
dmichael (off chromium)
lgtm
6 years, 3 months ago (2014-09-10 15:55:34 UTC) #11
dmichael (off chromium)
On 2014/09/09 23:54:37, raymes wrote: > Actually after thinking about it some more I'm not ...
6 years, 3 months ago (2014-09-10 16:22:46 UTC) #12
dmichael (off chromium)
I updated the subject and description; hope that's OK. Edit as desired, but I realized ...
6 years, 3 months ago (2014-09-10 17:13:56 UTC) #13
raymes
On 2014/09/10 17:13:56, dmichael wrote: > I updated the subject and description; hope that's OK. ...
6 years, 3 months ago (2014-09-11 00:08:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/555583003/40001
6 years, 3 months ago (2014-09-11 00:13:39 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 83d055ac1aee6eb1d4f79976d4b18d940d1cdff7
6 years, 3 months ago (2014-09-11 01:54:03 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 03:09:06 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1630477a5ebc6cfab27704b54ca89a76a3036c6a
Cr-Commit-Position: refs/heads/master@{#294291}

Powered by Google App Engine
This is Rietveld 408576698