Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Issue 15179010: Regression: Event#stopPropagation() does not halt bubbling for webkitTransitionEnd (Closed)

Created:
7 years, 7 months ago by darktears
Modified:
7 years, 7 months ago
CC:
blink-reviews, shans, eae+blinkwatch, dstockwell, dglazkov+blink, adamk+blink_chromium.org, Steve Block
Visibility:
Public.

Description

Regression: Event#stopPropagation() does not halt bubbling for webkitTransitionEnd If we create a prefixed event to dispatch it (in the case we have only prefixed event listeners in client's code) then we need to make sure to keep it in sync with the original unprefixed event after it has been dispatched. While being dispatched the event can be modified by client's code and when propagated back to outer elements, attributes were not updated. This patch changes the old design of creating a separate event for the prefixed case and now change the type of the event (so the name) before dispatching it, keeping the attributes if changed and then rename it back to unprefixed when the dispatching is finished. I've added three tests to cover the problem. It's a backport of my own WebKit patch reviewed by Darin Adler : https://bugs.webkit.org/show_bug.cgi?id=115656 BUG=238379 R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150573

Patch Set 1 #

Patch Set 2 : correct upload #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -16 lines) Patch
A LayoutTests/transitions/transition-end-event-prefixed-01.html View 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/transitions/transition-end-event-prefixed-01-expected.txt View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/transitions/transition-end-event-prefixed-02.html View 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/transitions/transition-end-event-prefixed-02-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/transitions/transition-end-event-prefixed-03.html View 1 chunk +75 lines, -0 lines 0 comments Download
A LayoutTests/transitions/transition-end-event-prefixed-03-expected.txt View 1 chunk +22 lines, -0 lines 0 comments Download
M Source/core/dom/Event.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/EventTarget.cpp View 2 chunks +6 lines, -16 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
darktears
7 years, 7 months ago (2013-05-16 20:54:28 UTC) #1
abarth-chromium
LGTM https://codereview.chromium.org/15179010/diff/2001/Source/core/dom/EventTarget.cpp File Source/core/dom/EventTarget.cpp (right): https://codereview.chromium.org/15179010/diff/2001/Source/core/dom/EventTarget.cpp#newcode195 Source/core/dom/EventTarget.cpp:195: event->setType(unprefixedTypeName); Woah
7 years, 7 months ago (2013-05-16 21:11:56 UTC) #2
abarth-chromium
This has some crazy web-visible behavior... In particular JavaScript can see the type changing during ...
7 years, 7 months ago (2013-05-16 21:12:31 UTC) #3
darktears
On 2013/05/16 21:12:31, abarth wrote: > This has some crazy web-visible behavior... In particular JavaScript ...
7 years, 7 months ago (2013-05-16 21:25:37 UTC) #4
abarth-chromium
On 2013/05/16 21:25:37, darktears wrote: > On 2013/05/16 21:12:31, abarth wrote: > > This has ...
7 years, 7 months ago (2013-05-16 21:30:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexis.menard@intel.com/15179010/2001
7 years, 7 months ago (2013-05-17 01:39:37 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=8442
7 years, 7 months ago (2013-05-17 02:41:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexis.menard@intel.com/15179010/2001
7 years, 7 months ago (2013-05-17 11:34:02 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=8532
7 years, 7 months ago (2013-05-17 12:10:00 UTC) #9
darktears
7 years, 7 months ago (2013-05-17 12:27:03 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 manually as r150573 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698