Commit eedced79 authored by paulmeyer's avatar paulmeyer Committed by Commit bot

GuestView constants are now frozen (and thus actually constant).

BUG=466136

Review URL: https://codereview.chromium.org/1028503003

Cr-Commit-Position: refs/heads/master@{#321594}
parent 43d8cc4c
......@@ -6,9 +6,9 @@
// Container for the extensionview constants.
var ExtensionViewConstants = {
// Attributes.
ATTRIBUTE_EXTENSION: 'extension',
ATTRIBUTE_SRC: 'src',
};
exports.ExtensionViewConstants = ExtensionViewConstants;
\ No newline at end of file
exports.ExtensionViewConstants = $Object.freeze(ExtensionViewConstants);
......@@ -40,4 +40,4 @@ var WebViewConstants = {
'The permission request for "%1" has been denied.'
};
exports.WebViewConstants = WebViewConstants;
exports.WebViewConstants = $Object.freeze(WebViewConstants);
......@@ -66,8 +66,8 @@ const char kScript[] =
"// Save only what is needed by the extension modules.\n"
"saveBuiltin(Object,\n"
" ['hasOwnProperty'],\n"
" ['create', 'defineProperty', 'getOwnPropertyDescriptor',\n"
" 'getPrototypeOf', 'keys']);\n"
" ['create', 'defineProperty', 'freeze',\n"
" 'getOwnPropertyDescriptor', 'getPrototypeOf', 'keys']);\n"
"saveBuiltin(Function,\n"
" ['apply', 'bind', 'call']);\n"
"saveBuiltin(Array,\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment