Bug 79935

Summary: REGRESSION: <content> element is not HTMLUnknownElement when Shadow DOM API is disabled
Product: WebKit Reporter: Dimitri Glazkov (Google) <dglazkov>
Component: DOMAssignee: Hajime Morrita <morrita>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dominicc, haraken, morrita, shinyak, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jsfiddle.net/dglazkov/dmXVf/
Bug Depends on: 80229, 80237, 80257    
Bug Blocks: 76434    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing none

Dimitri Glazkov (Google)
Reported 2012-02-29 12:53:01 PST
Even when the shadow DOM API is disabled, the <content> element exhibits traits of something other than HTMLUnknownElement: http://jsfiddle.net/dglazkov/dmXVf/
Attachments
Patch (12.76 KB, patch)
2012-03-05 17:28 PST, Hajime Morrita
no flags
Patch (17.82 KB, patch)
2012-03-06 00:44 PST, Hajime Morrita
no flags
Patch (17.85 KB, patch)
2012-03-06 02:03 PST, Hajime Morrita
no flags
Patch for landing (17.92 KB, patch)
2012-03-06 17:04 PST, Hajime Morrita
no flags
Hajime Morrita
Comment 1 2012-03-01 23:29:35 PST
I'm working on this.
Hajime Morrita
Comment 2 2012-03-05 17:28:51 PST
Build Bot
Comment 3 2012-03-05 17:51:22 PST
Build Bot
Comment 4 2012-03-05 18:38:56 PST
Early Warning System Bot
Comment 5 2012-03-05 19:03:19 PST
Gyuyoung Kim
Comment 6 2012-03-05 22:32:41 PST
Hajime Morrita
Comment 7 2012-03-06 00:44:13 PST
Early Warning System Bot
Comment 8 2012-03-06 01:37:45 PST
Build Bot
Comment 9 2012-03-06 01:44:49 PST
Hajime Morrita
Comment 10 2012-03-06 02:03:17 PST
Dimitri Glazkov (Google)
Comment 11 2012-03-06 09:01:13 PST
Comment on attachment 130339 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130339&action=review > Source/WebCore/ChangeLog:9 > + which allows HTMLElementFactory and HTMLElementWrapperFacotry to check RuntimeEnabledFeatures Facotry -> Factory > Source/WebCore/html/HTMLTagNames.in:97 > +shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM, runtimeFeature=shadowDOM Adam already added runtimeConditional flag in http://trac.webkit.org/changeset/106603, so let's use that instead.
Dimitri Glazkov (Google)
Comment 12 2012-03-06 09:01:40 PST
Adam, Haraken -- could you take a look at the generator code?
Adam Barth
Comment 13 2012-03-06 10:55:01 PST
Comment on attachment 130339 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130339&action=review This looks fine. make_names.pl is something of a disaster file, but I haven't worked up the steam to clean it up yet. >> Source/WebCore/html/HTMLTagNames.in:97 >> +shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM, runtimeFeature=shadowDOM > > Adam already added runtimeConditional flag in http://trac.webkit.org/changeset/106603, so let's use that instead. Yeah, I think runtimeConditional is a slightly better name.
Hajime Morrita
Comment 14 2012-03-06 16:10:23 PST
Dimitri, Adam, thanks for taking a look! (In reply to comment #13) > (From update of attachment 130339 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=130339&action=review > > This looks fine. make_names.pl is something of a disaster file, but I haven't worked up the steam to clean it up yet. True. People who don't know perl like me have made such a disaster... > > >> Source/WebCore/html/HTMLTagNames.in:97 > >> +shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM, runtimeFeature=shadowDOM > > > > Adam already added runtimeConditional flag in http://trac.webkit.org/changeset/106603, so let's use that instead. > > Yeah, I think runtimeConditional is a slightly better name. Great! I'll rename it before landing.
Hajime Morrita
Comment 15 2012-03-06 17:04:45 PST
Created attachment 130479 [details] Patch for landing
WebKit Review Bot
Comment 16 2012-03-06 21:29:57 PST
Comment on attachment 130479 [details] Patch for landing Clearing flags on attachment: 130479 Committed r110014: <http://trac.webkit.org/changeset/110014>
WebKit Review Bot
Comment 17 2012-03-06 21:30:03 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.