preventDefault on a non-document target with passive listener doesn't log |
|||||
Issue descriptionAn error should be reported to the console. The code loads the current target and tries to convert it to a LocalDOMWindow which will only do an upcast if the object is of the right type. We should load the dom window from the event path instead.
,
Apr 21 2016
,
Apr 21 2016
Your change meets the bar and is auto-approved for M51 (branch: 2704)
,
Apr 21 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/15ffa10a8f58ea73838f2ca12a1dd57517102633 commit 15ffa10a8f58ea73838f2ca12a1dd57517102633 Author: Dave Tapuska <dtapuska@chromium.org> Date: Thu Apr 21 15:35:16 2016 Report passive prevent defaulted event listeners correctly to the console. Previously only document level listeners would be reported to the console that were preventDefaulted. Load the LocalDOMWindow from the event path instead. BUG= 604743 Review URL: https://codereview.chromium.org/1897953004 Cr-Commit-Position: refs/heads/master@{#388240} (cherry picked from commit c55f4ccbd722aa7eaa4e94309661e10d128ae098) Review URL: https://codereview.chromium.org/1904103002 . Cr-Commit-Position: refs/branch-heads/2704@{#163} Cr-Branched-From: 6e53600def8f60d8c632fadc70d7c1939ccea347-refs/heads/master@{#386251} [modify] https://crrev.com/15ffa10a8f58ea73838f2ca12a1dd57517102633/third_party/WebKit/Source/core/events/Event.cpp
,
Apr 21 2016
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by bugdroid1@chromium.org
, Apr 19 2016