Chromium Code Reviews
DescriptionDon't trigger Object.prototype setters when generating completions
Autocomplete gets its candidates for completion by running a function in
the context of the page. If we use a plain object to hold results, we'll
end up triggering any setters that the page added to Object.prototype.
Using a prototype-less object avoids this, but a page could still
interfere by replacing Object.create (or Object.getPrototypeOf, String,
Number, Boolean...).
BUG=645328
Committed: https://crrev.com/c1431e19823dc2a0487197185795ffbe20d5a88f
Cr-Commit-Position: refs/heads/master@{#417729}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Literal with __proto__ instead of Object.create() #Messages
Total messages: 14 (5 generated)
|