RESOLVED INVALID 179031
Add some WebKitAdditions extension points to WebCore
https://bugs.webkit.org/show_bug.cgi?id=179031
Summary Add some WebKitAdditions extension points to WebCore
Daniel Bates
Reported 2017-10-30 14:58:43 PDT
Add some WebKitAdditions extension points to WebCore.
Attachments
Patch (12.30 KB, patch)
2017-10-30 20:03 PDT, Daniel Bates
darin: review+
Radar WebKit Bug Importer
Comment 1 2017-10-30 14:59:32 PDT
Daniel Bates
Comment 2 2017-10-30 20:03:40 PDT
Created attachment 325415 [details] Patch With regards to the processing of the HTML tag names .in files I debated between teaching make_names.pl to accept multiple --tag files and having DerivedSources.make concatenate all the .in files before generating the HTML tag names. This patch takes the latter approach. I chose this approach because the former would require solving how makes_names.pl would handle more than one namespace, namespacePrefix, namespaceURI, and fallbackJSInterfaceName keys (as each .in file could define them). Maybe it would be sufficient to error out if all the specified files did not have the same values for these keys? Maybe make_names.pl should have command line options to specify values for these keys and then assume all --tag files use the same namespace? For now I opted to avoid these questions and concatenate the existing html/HTMLTagNames.in and any additional .in files (in that order) before passing to make_names.pl as I'm unclear how useful and long lasting this extension point is/will be. Let me know if it would be better to fix up makes_names.pl and ideas for solving the concatenation order/multiple namespace issue.
Daniel Bates
Comment 3 2017-10-30 20:05:15 PDT
(In reply to Daniel Bates from comment #2) > Created attachment 325415 [details] > Patch > > With regards to the processing of the HTML tag names .in files I debated > between teaching make_names.pl to accept multiple --tag files and having > DerivedSources.make concatenate all the .in files before generating the HTML > tag names. This patch takes the latter approach. I chose this approach > because the former would require solving how makes_names.pl would handle > more than one namespace, namespacePrefix, namespaceURI, and > fallbackJSInterfaceName keys (as each .in file could define them). Maybe it > would be sufficient to error out if all the specified files did not have the > same values for these keys? Maybe make_names.pl should have command line > options to specify values for these keys and then assume all --tag files use > the same namespace? For now I opted to avoid these questions and concatenate > the existing html/HTMLTagNames.in and any additional .in files (in that > order) before passing to make_names.pl as I'm unclear how useful and long > lasting this extension point is/will be. Let me know if it would be better > to fix up makes_names.pl and ideas for solving the concatenation > order/multiple namespace issue. s|makes_names.pl|Source/WebCore/dom/make_names.pl|g
Daniel Bates
Comment 4 2017-11-17 16:19:09 PST
As it turns out it is no longer necessary to make these changes.
Note You need to log in before you can comment on or make changes to this bug.