DescriptionDon't touch the prototype chain to get the private script controller.
Prior to this patch, private scripts attempted to get the
"privateScriptController" property off the global object without verifying if
the property actually exists on the global. If the property hasn't been set yet,
this operation could descend into the prototype chain and potentially return
a named property from the WindowProperties object, leading to release asserts
and general confusion.
BUG=668552
Committed: https://crrev.com/c093b7a74ddce32dd3b0e0be60f31becc6ce32f9
Cr-Commit-Position: refs/heads/master@{#434627}
Patch Set 1 : Don't touch the prototype chain to get the private script controller. #Patch Set 2 : Added test. #
Total comments: 3
Patch Set 3 : v8CallBoolean removed. #
Total comments: 3
Patch Set 4 : Use ToChecked(). #
Messages
Total messages: 20 (8 generated)
|