Bug 168612 - Use the new drag code path when dragging links
Summary: Use the new drag code path when dragging links
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-20 13:20 PST by Anders Carlsson
Modified: 2017-02-21 09:29 PST (History)
4 users (show)

See Also:


Attachments
Patch (11.53 KB, patch)
2017-02-20 13:24 PST, Anders Carlsson
no flags Details | Formatted Diff | Diff
Patch (11.46 KB, patch)
2017-02-20 13:54 PST, Anders Carlsson
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-elcapitan (1.02 MB, application/zip)
2017-02-20 15:00 PST, Build Bot
no flags Details
Archive of layout-test-results from ews112 for mac-elcapitan (2.42 MB, application/zip)
2017-02-20 15:36 PST, Build Bot
no flags Details
Patch (13.24 KB, patch)
2017-02-20 15:48 PST, Anders Carlsson
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2017-02-20 13:20:18 PST
Use the new drag code path when dragging links
Comment 1 Anders Carlsson 2017-02-20 13:24:54 PST
Created attachment 302169 [details]
Patch
Comment 2 Anders Carlsson 2017-02-20 13:54:59 PST
Created attachment 302171 [details]
Patch
Comment 3 WebKit Commit Bot 2017-02-20 13:58:19 PST
Attachment 302171 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/mac/PasteboardWriter.mm:69:  Extra space in capture list.  [whitespace/brackets] [4]
ERROR: Source/WebCore/platform/mac/PasteboardWriter.mm:71:  Extra space in capture list.  [whitespace/brackets] [4]
ERROR: Source/WebCore/platform/mac/PasteboardWriter.mm:73:  Extra space in capture list.  [whitespace/brackets] [4]
Total errors found: 3 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Wenson Hsieh 2017-02-20 14:35:19 PST
Comment on attachment 302171 [details]
Patch

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

> Source/WebCore/platform/PasteboardWriterData.cpp:57
> +void PasteboardWriterData::setURL(URL url)

Could we make this a const URL& or URL&&?

> Source/WebCore/platform/mac/PasteboardWriter.mm:69
> +            [pasteboardItem setPropertyList:@[ cocoaURL.relativeString, baseCocoaURL.absoluteString ] forType:toUTI(NSURLPboardType).get()];

Is there any case where baseCocoaURL.absoluteString can return nil even though baseCocoaURL exists? (same with cocoaURL.relativeString)
Comment 5 Build Bot 2017-02-20 15:00:21 PST
Comment on attachment 302171 [details]
Patch

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

New failing tests:
fast/events/drag-and-drop-link-fast-multiple-times-does-not-crash.html
fast/events/drag-parent-node.html
editing/pasteboard/drop-text-without-selection.html
fast/events/drag-select-when-zoomed-with-header.html
fast/events/drag-and-drop-link-into-focused-contenteditable.html
fast/events/drag-and-drop-link.html
fast/events/dropzone-003.html
fast/events/content-changed-during-drop.html
fast/events/drag-in-frames.html
editing/pasteboard/files-during-page-drags.html
editing/pasteboard/drop-link.html
Comment 6 Build Bot 2017-02-20 15:00:25 PST
Created attachment 302175 [details]
Archive of layout-test-results from ews101 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 7 Build Bot 2017-02-20 15:36:28 PST
Comment on attachment 302171 [details]
Patch

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

New failing tests:
fast/events/shift-drag-selection-on-link-triggers-drag-n-drop.html
fast/events/drag-and-drop-link-fast-multiple-times-does-not-crash.html
fast/events/drag-parent-node.html
editing/pasteboard/drop-text-without-selection.html
fast/events/drag-in-frames.html
fast/events/drag-and-drop-link-into-focused-contenteditable.html
editing/pasteboard/files-during-page-drags.html
fast/events/dropzone-003.html
fast/css/user-drag-none.html
fast/events/content-changed-during-drop.html
fast/events/drag-and-drop-link.html
editing/pasteboard/drop-link.html
Comment 8 Build Bot 2017-02-20 15:36:32 PST
Created attachment 302182 [details]
Archive of layout-test-results from ews112 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 9 Anders Carlsson 2017-02-20 15:48:15 PST
Created attachment 302184 [details]
Patch
Comment 10 WebKit Commit Bot 2017-02-20 15:49:31 PST
Attachment 302184 [details] did not pass style-queue:


ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:222:  No space between ^ and block definition.  [whitespace/brackets] [4]
ERROR: Source/WebCore/platform/mac/PasteboardWriter.mm:70:  Extra space in capture list.  [whitespace/brackets] [4]
ERROR: Source/WebCore/platform/mac/PasteboardWriter.mm:72:  Extra space in capture list.  [whitespace/brackets] [4]
ERROR: Source/WebCore/platform/mac/PasteboardWriter.mm:74:  Extra space in capture list.  [whitespace/brackets] [4]
Total errors found: 4 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Anders Carlsson 2017-02-20 16:10:29 PST
Committed r212681: <http://trac.webkit.org/changeset/212681>
Comment 12 Ryan Haddad 2017-02-21 09:29:10 PST
It looks like this change caused editing/pasteboard/drop-text-events.html and fast/events/dropzone-003.html to fail on WK1:

https://build.webkit.org/results/Apple%20Sierra%20Release%20WK1%20(Tests)/r212713%20(3843)/results.html