Fixes crash in chrome.automation
After https://chromium-review.googlesource.com/c/chromium/src/+/2424854 we slightly changed some of the enum key literals e.g. activedecsendantchanged to activeDescendantChanged. This undercovered an issue where methods like chrome.automation.AutomationNode.prototype.addEventListener appear to receive no validation. Callers can do |node.addEventListener(undefined)| and reach the native bindings. This change is a quick fix to make it so we don't crash. R=dmazzoni@chromium.org AX-Relnotes: n/a Fixed: 1132662 Change-Id: Idf4effeb29a6974df6d2d0a933f157c3aed705ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2433997 Commit-Queue: David Tseng <dtseng@chromium.org> Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#811495}
Showing
Please register or sign in to comment