commit | 42bd05a2bf4260f500687a2457d01e298033f2bb | [log] [tgz] |
---|---|---|
author | yukishiino <yukishiino@chromium.org> | Mon Jun 15 08:17:08 2015 |
committer | Commit bot <commit-bot@chromium.org> | Mon Jun 15 08:18:10 2015 |
tree | 72aa49aee9c975aadf3357cbdf574e8f48fdd32b | |
parent | a6f36d3831549f8fc8b7e77649fc2a5200eaf80e [diff] |
blink:bindings: Passes the global context instead of |this| in JS. |this| in JS (args.Holder() in C++ code) is not a reliable object. User script can pass any object as |this|. So we shouldn't use it as creation context when calling Blink APIs to create a new DOM wrapper. We should instead use the current context where the user script is running as creation context. BUG=497507 Review URL: https://codereview.chromium.org/1174343003 Cr-Commit-Position: refs/heads/master@{#334366}