commit | 19765bd888949485b1e7ee2892b6502b1a653025 | [log] [tgz] |
---|---|---|
author | Reilly Grant <reillyg@chromium.org> | Tue Oct 10 20:27:35 2017 |
committer | Reilly Grant <reillyg@chromium.org> | Tue Oct 10 20:27:35 2017 |
tree | 23e669d8f89ff9533ec24dc2e14701abd1e670dd | |
parent | 6874488eac74d9fc32227be9feed5cc9f4c3affa [diff] |
Convert MediaTrackConstraints to a ScriptValue IDLDictionaries such as MediaTrackConstraints should not be stored on the heap which would happen when binding one as a parameter to a callback. This change converts the object to a ScriptValue ahead of time. This is fine because the value will be passed to a ScriptPromiseResolver that will converted it to a V8 value if it isn't already. Bug: 759457 Change-Id: I3009a0f7711cc264aeaae07a36c18a6db8c915c8 Reviewed-on: https://chromium-review.googlesource.com/701358 Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#507177}(cherry picked from commit 84ca1ee18bbc32f3cb035d071e8271e064dfd4d7) Reviewed-on: https://chromium-review.googlesource.com/710173 Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/branch-heads/3202@{#642} Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .