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

Unified Diff: chrome/renderer/extensions/safe_builtins.cc

Issue 120733003: Feature detection-friendly restrictions for packaged apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback. Created 6 years, 11 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 | « no previous file | chrome/renderer/resources/extensions/platform_app.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/safe_builtins.cc
diff --git a/chrome/renderer/extensions/safe_builtins.cc b/chrome/renderer/extensions/safe_builtins.cc
index 5ba46a34cfa12c4a14b558a37eb7da551a2143a7..62bd8700bb8652779e614bb8ae67cfb62a1b4295 100644
--- a/chrome/renderer/extensions/safe_builtins.cc
+++ b/chrome/renderer/extensions/safe_builtins.cc
@@ -66,7 +66,8 @@ const char kScript[] =
"// Save only what is needed to make tests that override builtins pass.\n"
"saveBuiltin(Object,\n"
" ['hasOwnProperty'],\n"
- " ['getPrototypeOf', 'keys']);\n"
+ " ['defineProperty', 'getOwnPropertyDescriptor',\n"
+ " 'getPrototypeOf', 'keys']);\n"
"saveBuiltin(Function,\n"
" ['apply', 'bind', 'call']);\n"
"saveBuiltin(Array,\n"
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/platform_app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698