Bug 87339 - There are too many poorly named functions to create a fragment from markup
Summary: There are too many poorly named functions to create a fragment from markup
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks: 87454
  Show dependency treegraph
 
Reported: 2012-05-23 21:34 PDT by Ryosuke Niwa
Modified: 2012-05-24 21:05 PDT (History)
12 users (show)

See Also:


Attachments
Cleanup (16.83 KB, patch)
2012-05-23 21:50 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Fixed build (16.84 KB, patch)
2012-05-23 23:00 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-04 (606.63 KB, application/zip)
2012-05-24 00:00 PDT, WebKit Review Bot
no flags Details
Archive of layout-test-results from ec2-cr-linux-02 (488.61 KB, application/zip)
2012-05-24 01:07 PDT, WebKit Review Bot
no flags Details
Fixed a bug (16.75 KB, patch)
2012-05-24 01:13 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Fixed Qt build (20.58 KB, patch)
2012-05-24 09:56 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2012-05-23 21:34:39 PDT
Range::createDocumentFragmentForElement, createFragmentFromSource (one in markup.cpp and another one in XSLTProcessor.cpp), and HTMLElement::insertAdjacentHTML all have very similar code, and the different between createDocumentFragmentForElement and two versions of createFragmentFromSource is not clear at all from function names.
Comment 1 Ryosuke Niwa 2012-05-23 21:50:20 PDT
Created attachment 143727 [details]
Cleanup
Comment 2 Gustavo Noronha (kov) 2012-05-23 22:07:08 PDT
Comment on attachment 143727 [details]
Cleanup

Attachment 143727 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/12799051
Comment 3 WebKit Review Bot 2012-05-23 22:07:45 PDT
Comment on attachment 143727 [details]
Cleanup

Attachment 143727 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12792080
Comment 4 Build Bot 2012-05-23 22:12:15 PDT
Comment on attachment 143727 [details]
Cleanup

Attachment 143727 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/12807008
Comment 5 Build Bot 2012-05-23 22:20:08 PDT
Comment on attachment 143727 [details]
Cleanup

Attachment 143727 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12805037
Comment 6 Ryosuke Niwa 2012-05-23 23:00:13 PDT
Created attachment 143736 [details]
Fixed build
Comment 7 WebKit Review Bot 2012-05-24 00:00:52 PDT
Comment on attachment 143736 [details]
Fixed build

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

New failing tests:
fast/dom/insertAdjacentHTML-DocumentFragment-crash.html
fast/dynamic/insertAdjacentHTML.html
fast/dom/HTMLElement/insertAdjacentHTML-errors.html
Comment 8 WebKit Review Bot 2012-05-24 00:00:58 PDT
Created attachment 143748 [details]
Archive of layout-test-results from ec2-cr-linux-04

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-04  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 9 WebKit Review Bot 2012-05-24 01:07:18 PDT
Comment on attachment 143736 [details]
Fixed build

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

New failing tests:
fast/dom/insertAdjacentHTML-DocumentFragment-crash.html
fast/dynamic/insertAdjacentHTML.html
fast/dom/HTMLElement/insertAdjacentHTML-errors.html
Comment 10 WebKit Review Bot 2012-05-24 01:07:22 PDT
Created attachment 143754 [details]
Archive of layout-test-results from ec2-cr-linux-02

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-02  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 11 Ryosuke Niwa 2012-05-24 01:13:11 PDT
Created attachment 143755 [details]
Fixed a bug
Comment 12 Early Warning System Bot 2012-05-24 01:27:57 PDT
Comment on attachment 143755 [details]
Fixed a bug

Attachment 143755 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/12792125
Comment 13 Early Warning System Bot 2012-05-24 01:38:08 PDT
Comment on attachment 143755 [details]
Fixed a bug

Attachment 143755 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/12799101
Comment 14 Eric Seidel (no email) 2012-05-24 09:01:55 PDT
Comment on attachment 143755 [details]
Fixed a bug

Qt doesn't like you.
Comment 15 Ryosuke Niwa 2012-05-24 09:56:56 PDT
Created attachment 143844 [details]
Fixed Qt build
Comment 16 Eric Seidel (no email) 2012-05-24 13:40:30 PDT
Comment on attachment 143844 [details]
Fixed Qt build

Thanks!
Comment 17 WebKit Review Bot 2012-05-24 14:15:37 PDT
Comment on attachment 143844 [details]
Fixed Qt build

Clearing flags on attachment: 143844

Committed r118414: <http://trac.webkit.org/changeset/118414>
Comment 18 WebKit Review Bot 2012-05-24 14:15:43 PDT
All reviewed patches have been landed.  Closing bug.
Comment 19 Darin Adler 2012-05-24 14:44:45 PDT
Comment on attachment 143844 [details]
Fixed Qt build

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

> Source/WebCore/editing/markup.h:56
> +    PassRefPtr<DocumentFragment> createContextualFragment(const String&, Element*,  FragmentScriptingPermission);

I noticed an extra space after a comma here.

> Source/WebCore/html/HTMLElement.cpp:581
> +    ExceptionCode ignoredEc = 0; // FIXME: We should propagate a syntax error exception out here.

Should be ignoredEC.
Comment 20 Ryosuke Niwa 2012-05-24 21:05:45 PDT
Comment on attachment 143844 [details]
Fixed Qt build

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

>> Source/WebCore/editing/markup.h:56
>> +    PassRefPtr<DocumentFragment> createContextualFragment(const String&, Element*,  FragmentScriptingPermission);
> 
> I noticed an extra space after a comma here.

Fixing it in https://bugs.webkit.org/show_bug.cgi?id=87454.

>> Source/WebCore/html/HTMLElement.cpp:581
>> +    ExceptionCode ignoredEc = 0; // FIXME: We should propagate a syntax error exception out here.
> 
> Should be ignoredEC.

Ditto.