diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-19 03:10:36 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-19 03:10:36 +0000 |
commit | b3e3595a9ddcfdf897a6ddf2adbc80e20f5f36d6 (patch) | |
tree | 366ee27f041a9005ee38ba19b44c2480c123517c /ppapi/c | |
parent | a7735e3463b17b20634ab326e4f1f0ebeb38fb9c (diff) | |
download | chromium_src-b3e3595a9ddcfdf897a6ddf2adbc80e20f5f36d6.zip chromium_src-b3e3595a9ddcfdf897a6ddf2adbc80e20f5f36d6.tar.gz chromium_src-b3e3595a9ddcfdf897a6ddf2adbc80e20f5f36d6.tar.bz2 |
Don't send PP_Vars/V8 values with cycles across PostMessage
This prevents PP_Vars/V8 values with cycles being transmitted across PostMessage. An undefined value will be sent instead and an error will be logged to the console.
BUG=236958
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207040
Review URL: https://chromiumcodereview.appspot.com/16140011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/ppb_messaging.h | 6 | ||||
-rw-r--r-- | ppapi/c/ppp_messaging.h | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/ppapi/c/ppb_messaging.h b/ppapi/c/ppb_messaging.h index 404a11c..06e31205 100644 --- a/ppapi/c/ppb_messaging.h +++ b/ppapi/c/ppb_messaging.h @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -/* From ppb_messaging.idl modified Mon May 20 15:31:07 2013. */ +/* From ppb_messaging.idl modified Wed Jun 5 10:32:59 2013. */ #ifndef PPAPI_C_PPB_MESSAGING_H_ #define PPAPI_C_PPB_MESSAGING_H_ @@ -50,8 +50,8 @@ struct PPB_Messaging_1_0 { * JavaScript. * * When passing array or dictionary <code>PP_Var</code>s, the entire reference - * graph will be converted and transferred, including reference cycles if they - * exist. + * graph will be converted and transferred. If the reference graph has cycles, + * the message will not be sent and an error will be logged to the console. * * Listeners for message events in JavaScript code will receive an object * conforming to the HTML 5 <code>MessageEvent</code> interface. diff --git a/ppapi/c/ppp_messaging.h b/ppapi/c/ppp_messaging.h index b2e1f3c..28d40d6 100644 --- a/ppapi/c/ppp_messaging.h +++ b/ppapi/c/ppp_messaging.h @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -/* From ppp_messaging.idl modified Tue May 21 09:01:17 2013. */ +/* From ppp_messaging.idl modified Wed Jun 5 10:32:43 2013. */ #ifndef PPAPI_C_PPP_MESSAGING_H_ #define PPAPI_C_PPP_MESSAGING_H_ @@ -52,10 +52,9 @@ struct PPP_Messaging_1_0 { * * When converting JavaScript arrays, any object properties whose name * is not an array index are ignored. When passing arrays and objects, the - * entire reference graph will be converted and transferred, including - * reference cycles if they exist. Since <code>PP_Var</code>s are ref-counted, - * the author of the plugin must take care if they expect to receive vars with - * cycles. Cycles must be manually broken to correctly release the vars. + * entire reference graph will be converted and transferred. If the reference + * graph has cycles, the message will not be sent and an error will be logged + * to the console. * * The following JavaScript code invokes <code>HandleMessage</code>, passing * the module instance on which it was invoked, with <code>message</code> |