Bug 107319

Summary: Allow construction of unprefixed transition DOM events.
Product: WebKit Reporter: Alexis Menard (darktears) <menard>
Component: DOMAssignee: Alexis Menard (darktears) <menard>
Status: RESOLVED FIXED    
Severity: Normal CC: 7raivis, abarth, buildbot, dglazkov, dino, gyuyoung.kim, ojan.autocc, peter+ews, rakuco, rniwa, simon.fraser, webkit.review.bot
Priority: P2 Keywords: WebExposed
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 93136    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Alexis Menard (darktears) 2013-01-18 13:24:22 PST
Allow construction of unprefixed transition DOM events.
Comment 1 Alexis Menard (darktears) 2013-01-18 13:34:07 PST
Created attachment 183535 [details]
Patch
Comment 2 WebKit Review Bot 2013-01-18 13:56:09 PST
Comment on attachment 183535 [details]
Patch

Attachment 183535 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/15941812
Comment 3 Build Bot 2013-01-18 14:30:16 PST
Comment on attachment 183535 [details]
Patch

Attachment 183535 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://queues.webkit.org/results/15946592

New failing tests:
fast/dom/constructed-objects-prototypes.html
Comment 4 Peter Beverloo (cr-android ews) 2013-01-18 15:41:15 PST
Comment on attachment 183535 [details]
Patch

Attachment 183535 [details] did not pass cr-android-ews (chromium-android):
Output: http://queues.webkit.org/results/15939813
Comment 5 Build Bot 2013-01-18 17:45:53 PST
Comment on attachment 183535 [details]
Patch

Attachment 183535 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/15945750

New failing tests:
fast/dom/constructed-objects-prototypes.html
Comment 6 Build Bot 2013-01-18 18:50:24 PST
Comment on attachment 183535 [details]
Patch

Attachment 183535 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/15942776

New failing tests:
fast/dom/constructed-objects-prototypes.html
Comment 7 Alexis Menard (darktears) 2013-01-21 03:38:28 PST
Created attachment 183752 [details]
Patch
Comment 8 WebKit Review Bot 2013-01-21 04:46:11 PST
Comment on attachment 183752 [details]
Patch

Attachment 183752 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/15970989
Comment 9 Alexis Menard (darktears) 2013-01-21 05:01:58 PST
Created attachment 183761 [details]
Patch
Comment 10 WebKit Review Bot 2013-01-21 06:37:34 PST
Comment on attachment 183761 [details]
Patch

Attachment 183761 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/16038032

New failing tests:
fast/events/event-creation.html
Comment 11 WebKit Review Bot 2013-01-21 07:35:32 PST
Comment on attachment 183761 [details]
Patch

Attachment 183761 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/16011333

New failing tests:
fast/events/event-creation.html
inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Comment 12 Alexis Menard (darktears) 2013-01-21 12:52:18 PST
Created attachment 183822 [details]
Patch
Comment 13 Dean Jackson 2013-01-22 11:45:47 PST
Comment on attachment 183822 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=183822&action=review

> Source/WebCore/ChangeLog:20
> +        Make possible to construct unprefixed DOM events for transitions.
> +        Unfortunately I have to duplicate the C++ implementation class of the
> +        events (TransitionEvent.h and TransitionEvent.cpp). I can't find a
> +        better way to re-use the WebKitTransitionEvent class to back the
> +        TransitionEvent.idl as our code generators don't allow to have a
> +        different name for the C++ class used in the generated file than the
> +        interface name specified in the IDL file. Unfortunately
> +        https://trac.webkit.org/wiki/WebKitIDL#InterfaceName doesn't help as
> +        it's only a way to unlink the interface name specified in the IDL with
> +        the one exposed in JavaScript. I don't think we should support such a
> +        feature in our code generators as WebKitTransitionEvent class and more
> +        exactly prefixed DOM events for transitions will be removed one day so
> +        this use case will become obselete.

I wonder if we should put a big message in the unprefixed implementation making it clear that any change should be done in both places (as unlikely as this is).
Comment 14 WebKit Review Bot 2013-01-22 12:09:05 PST
Comment on attachment 183822 [details]
Patch

Clearing flags on attachment: 183822

Committed r140448: <http://trac.webkit.org/changeset/140448>
Comment 15 WebKit Review Bot 2013-01-22 12:09:17 PST
All reviewed patches have been landed.  Closing bug.
Comment 16 Alexis Menard (darktears) 2013-01-22 12:28:52 PST
(In reply to comment #13)
> (From update of attachment 183822 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=183822&action=review
> 
> > Source/WebCore/ChangeLog:20
> > +        Make possible to construct unprefixed DOM events for transitions.
> > +        Unfortunately I have to duplicate the C++ implementation class of the
> > +        events (TransitionEvent.h and TransitionEvent.cpp). I can't find a
> > +        better way to re-use the WebKitTransitionEvent class to back the
> > +        TransitionEvent.idl as our code generators don't allow to have a
> > +        different name for the C++ class used in the generated file than the
> > +        interface name specified in the IDL file. Unfortunately
> > +        https://trac.webkit.org/wiki/WebKitIDL#InterfaceName doesn't help as
> > +        it's only a way to unlink the interface name specified in the IDL with
> > +        the one exposed in JavaScript. I don't think we should support such a
> > +        feature in our code generators as WebKitTransitionEvent class and more
> > +        exactly prefixed DOM events for transitions will be removed one day so
> > +        this use case will become obselete.
> 
> I wonder if we should put a big message in the unprefixed implementation making it clear that any change should be done in both places (as unlikely as this is).

We still have the "pseudoElementArg of type DOMString" part of the event attributes which we do not implement. Ok it has an issue coming with it so I'm not sure if we will implement it one day.
Comment 17 Lucas Forschler 2019-02-06 09:18:29 PST
Mass move bugs into the DOM component.