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 @@ ...@@ -6,9 +6,9 @@
// Container for the extensionview constants. // Container for the extensionview constants.
var ExtensionViewConstants = { var ExtensionViewConstants = {
// Attributes.
ATTRIBUTE_EXTENSION: 'extension', ATTRIBUTE_EXTENSION: 'extension',
ATTRIBUTE_SRC: 'src', ATTRIBUTE_SRC: 'src',
}; };
exports.ExtensionViewConstants = ExtensionViewConstants; exports.ExtensionViewConstants = $Object.freeze(ExtensionViewConstants);
\ No newline at end of file
...@@ -40,4 +40,4 @@ var WebViewConstants = { ...@@ -40,4 +40,4 @@ var WebViewConstants = {
'The permission request for "%1" has been denied.' 'The permission request for "%1" has been denied.'
}; };
exports.WebViewConstants = WebViewConstants; exports.WebViewConstants = $Object.freeze(WebViewConstants);
...@@ -66,8 +66,8 @@ const char kScript[] = ...@@ -66,8 +66,8 @@ const char kScript[] =
"// Save only what is needed by the extension modules.\n" "// Save only what is needed by the extension modules.\n"
"saveBuiltin(Object,\n" "saveBuiltin(Object,\n"
" ['hasOwnProperty'],\n" " ['hasOwnProperty'],\n"
" ['create', 'defineProperty', 'getOwnPropertyDescriptor',\n" " ['create', 'defineProperty', 'freeze',\n"
" 'getPrototypeOf', 'keys']);\n" " 'getOwnPropertyDescriptor', 'getPrototypeOf', 'keys']);\n"
"saveBuiltin(Function,\n" "saveBuiltin(Function,\n"
" ['apply', 'bind', 'call']);\n" " ['apply', 'bind', 'call']);\n"
"saveBuiltin(Array,\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