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

Issue 600553002: PPAPI: Disallow blocking callbacks while handling a blocking message (Closed)

Created:
6 years, 3 months ago by dmichael (off chromium)
Modified:
6 years, 3 months ago
Reviewers:
teravest
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, binji+watch_chromium.org, noelallen1, tzik, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, teravest+watch_chromium.org, yusukes+watch_chromium.org, raymes+watch_chromium.org, nfullagar1, piman+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PPAPI: Disallow blocking callbacks while handling a blocking message This makes it so that the plugin can not use blocking completion callbacks while servicing HandleBlockingMessage. This is to discourage leaving JavaScript hung while doing long-running things (e.g. file IO). (Of course, the plugin can get around this by bouncing to another thread; but I think this adds a useful guideline/deterrent.) BUG=415351 Committed: https://crrev.com/44b96754c1e11929fd7d1dc8ed36880d80476372 Cr-Commit-Position: refs/heads/master@{#296422}

Patch Set 1 #

Total comments: 1

Patch Set 2 : try to improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -4 lines) Patch
M mojo/examples/pepper_container_app/mojo_ppapi_globals.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/api/pp_errors.idl View 1 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/c/pp_errors.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M ppapi/proxy/message_handler.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_message_loop_proxy.h View 4 chunks +9 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_message_loop_proxy.cc View 3 chunks +8 lines, -2 lines 0 comments Download
M ppapi/shared_impl/ppb_message_loop_shared.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/tests/test_message_handler.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M ppapi/thunk/enter.cc View 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
dmichael (off chromium)
6 years, 3 months ago (2014-09-23 20:17:16 UTC) #2
teravest
Some more reasoning in the commit description would be nice. The logic here looks fine, ...
6 years, 3 months ago (2014-09-23 20:23:01 UTC) #3
dmichael (off chromium)
6 years, 3 months ago (2014-09-23 21:44:56 UTC) #4
dmichael (off chromium)
comments addressed, PTAL
6 years, 3 months ago (2014-09-23 21:48:35 UTC) #5
teravest
lgtm
6 years, 3 months ago (2014-09-23 23:13:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600553002/20001
6 years, 3 months ago (2014-09-23 23:22:32 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device/builds/17726) ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/12486)
6 years, 3 months ago (2014-09-24 00:01:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600553002/20001
6 years, 3 months ago (2014-09-24 15:28:50 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 6ec110bb944a6484ea69b8a5ea8099cbd1eb7002
6 years, 3 months ago (2014-09-24 15:41:21 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 15:42:11 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/44b96754c1e11929fd7d1dc8ed36880d80476372
Cr-Commit-Position: refs/heads/master@{#296422}

Powered by Google App Engine
This is Rietveld 408576698