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

Unified Diff: extensions/renderer/safe_builtins.cc

Issue 2892253002: Fix for GuestView exposure through shift(). (Closed)
Patch Set: Removed WeakPtr from this patch. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/guest_view/guest_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/safe_builtins.cc
diff --git a/extensions/renderer/safe_builtins.cc b/extensions/renderer/safe_builtins.cc
index f4e1f0f832e0b1f61bb748bd89984062543dd050..ff315b9c13034dc80deacd1839e238ed50b87128 100644
--- a/extensions/renderer/safe_builtins.cc
+++ b/extensions/renderer/safe_builtins.cc
@@ -76,7 +76,8 @@ const char kScript[] =
" ['apply', 'bind', 'call']);\n"
"saveBuiltin(Array,\n"
" ['concat', 'forEach', 'indexOf', 'join', 'push', 'slice',\n"
- " 'splice', 'map', 'filter', 'unshift', 'pop', 'reverse'],\n"
+ " 'splice', 'map', 'filter', 'shift', 'unshift', 'pop',\n"
+ " 'reverse'],\n"
" ['from', 'isArray']);\n"
"saveBuiltin(String,\n"
" ['indexOf', 'slice', 'split', 'substr', 'toUpperCase',\n"
« no previous file with comments | « extensions/renderer/resources/guest_view/guest_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698