RESOLVED FIXED 149348
Drop support for legacy EntityReference DOM Node type
https://bugs.webkit.org/show_bug.cgi?id=149348
Summary Drop support for legacy EntityReference DOM Node type
Chris Dumez
Reported 2015-09-18 11:52:23 PDT
Attachments
WIP Patch (120.47 KB, patch)
2015-09-18 12:26 PDT, Chris Dumez
no flags
Archive of layout-test-results from ews102 for mac-mavericks (295.40 KB, application/zip)
2015-09-18 13:06 PDT, Build Bot
no flags
Patch (427.67 KB, patch)
2015-09-18 13:07 PDT, Chris Dumez
no flags
Patch (435.85 KB, patch)
2015-09-18 13:11 PDT, Chris Dumez
no flags
Patch (438.25 KB, patch)
2015-09-18 13:37 PDT, Chris Dumez
no flags
Patch (438.92 KB, patch)
2015-09-18 15:50 PDT, Chris Dumez
no flags
Patch (439.11 KB, patch)
2015-09-18 15:53 PDT, Chris Dumez
no flags
Patch (441.39 KB, patch)
2015-09-18 18:24 PDT, Chris Dumez
no flags
Patch (441.38 KB, patch)
2015-09-19 17:01 PDT, Chris Dumez
no flags
Patch (439.94 KB, patch)
2015-09-21 09:13 PDT, Chris Dumez
no flags
Patch (439.10 KB, patch)
2015-09-21 09:37 PDT, Chris Dumez
no flags
Patch (438.64 KB, patch)
2015-09-21 10:45 PDT, Chris Dumez
no flags
Patch (439.10 KB, patch)
2015-09-21 11:31 PDT, Chris Dumez
no flags
Patch (439.87 KB, patch)
2015-09-21 15:00 PDT, Chris Dumez
no flags
Patch (441.11 KB, patch)
2015-09-21 19:29 PDT, Michael Catanzaro
no flags
Chris Dumez
Comment 1 2015-09-18 11:56:27 PDT
This is not supported in Internet Explorer either: https://msdn.microsoft.com/library/ff974819(v=vs.85).aspx (Remarks section)
Chris Dumez
Comment 2 2015-09-18 12:26:11 PDT
Created attachment 261509 [details] WIP Patch
WebKit Commit Bot
Comment 3 2015-09-18 12:28:36 PDT
Attachment 261509 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 4 2015-09-18 13:06:32 PDT
Comment on attachment 261509 [details] WIP Patch Attachment 261509 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/183983 Number of test failures exceeded the failure limit.
Build Bot
Comment 5 2015-09-18 13:06:37 PDT
Created attachment 261511 [details] Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Chris Dumez
Comment 6 2015-09-18 13:07:12 PDT
WebKit Commit Bot
Comment 7 2015-09-18 13:10:46 PDT
Attachment 261512 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] ERROR: Source/WebCore/ChangeLog:21: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] ERROR: Source/WebCore/ChangeLog:22: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] Total errors found: 3 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 8 2015-09-18 13:11:26 PDT
WebKit Commit Bot
Comment 9 2015-09-18 13:15:25 PDT
Attachment 261515 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 10 2015-09-18 13:37:57 PDT
WebKit Commit Bot
Comment 11 2015-09-18 13:42:43 PDT
Attachment 261519 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 12 2015-09-18 15:35:33 PDT
Comment on attachment 261519 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261519&action=review > Source/WebCore/dom/Document.idl:99 > - [ObjCLegacyUnnamedParameters, RaisesException, NewObject] NodeIterator createNodeIterator(Node root, > +#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C > + [ObjCLegacyUnnamedParameters, RaisesException] NodeIterator createNodeIterator(Node root, Why are you removing NewObject? > Source/WebCore/dom/Document.idl:103 > - [ObjCLegacyUnnamedParameters, RaisesException, NewObject] TreeWalker createTreeWalker(Node root, > + [ObjCLegacyUnnamedParameters, RaisesException] TreeWalker createTreeWalker(Node root, Ditto. > Source/WebCore/dom/EntityReference.h:29 > +class EntityReference : public ContainerNode { This is no longer final??
Chris Dumez
Comment 13 2015-09-18 15:50:03 PDT
Chris Dumez
Comment 14 2015-09-18 15:53:56 PDT
WebKit Commit Bot
Comment 15 2015-09-18 15:59:58 PDT
Attachment 261534 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 16 2015-09-18 16:00:58 PDT
Comment on attachment 261519 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261519&action=review >> Source/WebCore/dom/Document.idl:99 >> + [ObjCLegacyUnnamedParameters, RaisesException] NodeIterator createNodeIterator(Node root, > > Why are you removing NewObject? [NewObject] has no effect on ObjC bindings, only JS ones. >> Source/WebCore/dom/EntityReference.h:29 >> +class EntityReference : public ContainerNode { > > This is no longer final?? It can no longer be final because it is abstract.
Chris Dumez
Comment 17 2015-09-18 16:03:24 PDT
Still working on getting GTK and Windows building...
Chris Dumez
Comment 18 2015-09-18 18:24:02 PDT
WebKit Commit Bot
Comment 19 2015-09-18 18:28:48 PDT
Attachment 261553 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 20 2015-09-19 16:57:56 PDT
Will try again to fix the GTK build.
Chris Dumez
Comment 21 2015-09-19 17:01:13 PDT
WebKit Commit Bot
Comment 22 2015-09-19 17:04:41 PDT
Attachment 261592 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 23 2015-09-21 00:26:10 PDT
Comment on attachment 261592 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261592&action=review > Source/WebCore/bindings/gobject/webkitdom.symbols:-71 > -WebKitDOMEntityReference* webkit_dom_document_create_entity_reference(WebKitDOMDocument*, const gchar*, GError**) This is not correct, it breaks the API. I'm quite busy today, but I'll try to find some time to provide a proper fix. If you are in a hurry, feel free to land any patch that doesn't break the build and I'll fix the API in a follow up when I find the time. Thanks again for trying to keep GTK port working :-)
Chris Dumez
Comment 24 2015-09-21 09:07:15 PDT
(In reply to comment #23) > Comment on attachment 261592 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=261592&action=review > > > Source/WebCore/bindings/gobject/webkitdom.symbols:-71 > > -WebKitDOMEntityReference* webkit_dom_document_create_entity_reference(WebKitDOMDocument*, const gchar*, GError**) > > This is not correct, it breaks the API. I'm quite busy today, but I'll try > to find some time to provide a proper fix. If you are in a hurry, feel free > to land any patch that doesn't break the build and I'll fix the API in a > follow up when I find the time. Thanks again for trying to keep GTK port > working :-) I see. I wrongly assumed it was OK to alter the generated GObject API as long as it made sense. I will upload another iteration that attempts to keep the corresponding GObject API, like I did not ObjC.
Chris Dumez
Comment 25 2015-09-21 09:13:55 PDT
WebKit Commit Bot
Comment 26 2015-09-21 09:17:41 PDT
Attachment 261659 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Michael Catanzaro
Comment 27 2015-09-21 09:20:09 PDT
Thanks a bunch for helping. The API is divided into stable and unstable portions. If it's stable API, it can be deprecated but we have to keep it functional. Unstable API like WebKitDOMHTMLMediaElement requires defining WEBKIT_DOM_USE_UNSTABLE_API to get the declarations, is completely undocumented, and can be broken willy-nilly. The stable API is documented here: http://webkitgtk.org/reference/webkitdomgtk/stable/index-all.html
Chris Dumez
Comment 28 2015-09-21 09:37:49 PDT
WebKit Commit Bot
Comment 29 2015-09-21 09:41:31 PDT
Attachment 261661 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 30 2015-09-21 09:49:34 PDT
(In reply to comment #27) > Thanks a bunch for helping. The API is divided into stable and unstable > portions. If it's stable API, it can be deprecated but we have to keep it > functional. Well, not necessarily functional, if the implementation is removed from WebCore we can keep the function in the API, mark it a deprecated, leave it as a no-op and maybe show a warning to let the user know the function is a no-op because it has been removed from the DOM spec.
Carlos Garcia Campos
Comment 31 2015-09-21 09:51:05 PDT
Chris, I won't have time until Thursday, so don't worry about GTK+ port as long as it builds, I'll fix any API break on Thursday. Thanks again.
Chris Dumez
Comment 32 2015-09-21 09:51:57 PDT
(In reply to comment #31) > Chris, I won't have time until Thursday, so don't worry about GTK+ port as > long as it builds, I'll fix any API break on Thursday. Thanks again. Well, as you can see it doesn't anymore and I have no idea why :)
Chris Dumez
Comment 33 2015-09-21 10:45:15 PDT
WebKit Commit Bot
Comment 34 2015-09-21 10:49:21 PDT
Attachment 261663 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 35 2015-09-21 11:31:33 PDT
WebKit Commit Bot
Comment 36 2015-09-21 11:36:02 PDT
Attachment 261668 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 37 2015-09-21 15:00:05 PDT
WebKit Commit Bot
Comment 38 2015-09-21 15:04:14 PDT
Attachment 261688 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Michael Catanzaro
Comment 39 2015-09-21 19:29:39 PDT
Chris Dumez
Comment 40 2015-09-21 19:32:58 PDT
Comment on attachment 261716 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261716&action=review > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:293 > + # FIXME: This is skipped because I don't know how to fix the build any better way. Thanks for the help Michael! It was hard to get this building without being able to build the GTK port locally.
WebKit Commit Bot
Comment 41 2015-09-21 19:33:03 PDT
Attachment 261716 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Node.h:136: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 1 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Michael Catanzaro
Comment 42 2015-09-21 19:43:37 PDT
I was watching the GTK EWS take upwards of an hour to process your patches, and realized that was just not going to work. :( Anyway, I don't know how to fix this properly either, but after a few tries, I added this in SkipFunction in CodeGeneratorGObject.pm: # FIXME: This is skipped because I don't know how to fix the build any better way. # https://bugs.webkit.org/show_bug.cgi?id=149348 if ($functionName eq "webkit_dom_document_create_entity_reference") { return 1; } And now the build works for me. I will have to bully Carlos into doing some DOM bindings training, because right now our bus factor is 1.
WebKit Commit Bot
Comment 43 2015-09-22 10:17:35 PDT
Comment on attachment 261716 [details] Patch Clearing flags on attachment: 261716 Committed r190120: <http://trac.webkit.org/changeset/190120>
WebKit Commit Bot
Comment 44 2015-09-22 10:17:42 PDT
All reviewed patches have been landed. Closing bug.
Carlos Garcia Campos
Comment 45 2015-09-24 03:19:18 PDT
(In reply to comment #42) > I was watching the GTK EWS take upwards of an hour to process your patches, > and realized that was just not going to work. :( > > Anyway, I don't know how to fix this properly either, but after a few tries, > I added this in SkipFunction in CodeGeneratorGObject.pm: > > # FIXME: This is skipped because I don't know how to fix the build any > better way. > # https://bugs.webkit.org/show_bug.cgi?id=149348 > if ($functionName eq "webkit_dom_document_create_entity_reference") { > return 1; > } > > And now the build works for me. I will have to bully Carlos into doing some > DOM bindings training, because right now our bus factor is 1. Proper fix landed in r190199
Chris Dumez
Comment 46 2015-09-24 09:09:06 PDT
(In reply to comment #45) > (In reply to comment #42) > > I was watching the GTK EWS take upwards of an hour to process your patches, > > and realized that was just not going to work. :( > > > > Anyway, I don't know how to fix this properly either, but after a few tries, > > I added this in SkipFunction in CodeGeneratorGObject.pm: > > > > # FIXME: This is skipped because I don't know how to fix the build any > > better way. > > # https://bugs.webkit.org/show_bug.cgi?id=149348 > > if ($functionName eq "webkit_dom_document_create_entity_reference") { > > return 1; > > } > > > > And now the build works for me. I will have to bully Carlos into doing some > > DOM bindings training, because right now our bus factor is 1. > > Proper fix landed in r190199 Thanks a lot Carlos!
Radar WebKit Bug Importer
Comment 47 2015-09-28 11:44:34 PDT
Note You need to log in before you can comment on or make changes to this bug.