WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
196511
Cursor count badge reverts to Zero during Drag & Drop of multiple items
https://bugs.webkit.org/show_bug.cgi?id=196511
Summary
Cursor count badge reverts to Zero during Drag & Drop of multiple items
Timothy Hatcher
Reported
2019-04-02 15:41:44 PDT
When you drag & drop multiple files to iCloud Drive or a text field, the mouse cursor gives a Zero (0) file count, regardless of the number of files you have. <
rdar://problem/34373187
>
Attachments
Patch
(2.30 KB, patch)
2019-04-02 15:43 PDT
,
Timothy Hatcher
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2019-04-02 15:43:19 PDT
Created
attachment 366545
[details]
Patch
Daniel Bates
Comment 2
2019-04-02 19:58:23 PDT
Comment on
attachment 366545
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=366545&action=review
Bade is UI. So, likely no way to test.
> Source/WebCore/page/DragController.cpp:-464 > - m_numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1;
I can’t help but wonder, why? Why did we do this? I so want to understand the comment, but it is broken English. Could this be a platform/port-specific hack? Windows? GTK? If so, need to move hack. <—- not cq’ing because of this
Timothy Hatcher
Comment 3
2019-04-02 20:19:57 PDT
Comment on
attachment 366545
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=366545&action=review
>> Source/WebCore/page/DragController.cpp:-464 >> - m_numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1; > > I can’t help but wonder, why? Why did we do this? I so want to understand the comment, but it is broken English. Could this be a platform/port-specific hack? Windows? GTK? If so, need to move hack. <—- not cq’ing because of this
This was added by Jon Lee 7 years ago. It was to provide more info to the user what might happen when the drag moves over elements in the page. I think it just wasn’t fully thought out.
https://trac.webkit.org/changeset/99108/webkit
WebKit Commit Bot
Comment 4
2019-04-02 20:46:42 PDT
Comment on
attachment 366545
[details]
Patch Clearing flags on attachment: 366545 Committed
r243785
: <
https://trac.webkit.org/changeset/243785
>
WebKit Commit Bot
Comment 5
2019-04-02 20:46:44 PDT
All reviewed patches have been landed. Closing bug.
Wenson Hsieh
Comment 6
2019-04-02 20:59:37 PDT
Comment on
attachment 366545
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=366545&action=review
>>> Source/WebCore/page/DragController.cpp:-464 >>> - m_numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1; >> >> I can’t help but wonder, why? Why did we do this? I so want to understand the comment, but it is broken English. Could this be a platform/port-specific hack? Windows? GTK? If so, need to move hack. <—- not cq’ing because of this > > This was added by Jon Lee 7 years ago. It was to provide more info to the user what might happen when the drag moves over elements in the page. I think it just wasn’t fully thought out. > >
https://trac.webkit.org/changeset/99108/webkit
We should ensure that dragging multiple files over a regular input type=file does not cause the drop to occur.
Wenson Hsieh
Comment 7
2019-04-02 21:00:12 PDT
(In reply to Wenson Hsieh from
comment #6
)
> Comment on
attachment 366545
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=366545&action=review
> > >>> Source/WebCore/page/DragController.cpp:-464 > >>> - m_numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1; > >> > >> I can’t help but wonder, why? Why did we do this? I so want to understand the comment, but it is broken English. Could this be a platform/port-specific hack? Windows? GTK? If so, need to move hack. <—- not cq’ing because of this > > > > This was added by Jon Lee 7 years ago. It was to provide more info to the user what might happen when the drag moves over elements in the page. I think it just wasn’t fully thought out. > > > >
https://trac.webkit.org/changeset/99108/webkit
> > We should ensure that dragging multiple files over a regular input type=file > does not cause the drop to occur.
(Regular file input, as opposed to an <input type=file multiple>)
Wenson Hsieh
Comment 8
2019-04-02 21:10:57 PDT
(In reply to Wenson Hsieh from
comment #7
)
> (In reply to Wenson Hsieh from
comment #6
) > > Comment on
attachment 366545
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=366545&action=review
> > > > >>> Source/WebCore/page/DragController.cpp:-464 > > >>> - m_numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1; > > >> > > >> I can’t help but wonder, why? Why did we do this? I so want to understand the comment, but it is broken English. Could this be a platform/port-specific hack? Windows? GTK? If so, need to move hack. <—- not cq’ing because of this > > > > > > This was added by Jon Lee 7 years ago. It was to provide more info to the user what might happen when the drag moves over elements in the page. I think it just wasn’t fully thought out. > > > > > >
https://trac.webkit.org/changeset/99108/webkit
> > > > We should ensure that dragging multiple files over a regular input type=file > > does not cause the drop to occur. > > (Regular file input, as opposed to an <input type=file multiple>)
Oh sorry, I misread the branch. The change looks right — I can't think of any reason why we wouldn't want to update m_numberOfItemsToBeAccepted when dragging a single file, when we're not dropping over a file input.
Timothy Hatcher
Comment 9
2019-04-02 21:25:04 PDT
Comment on
attachment 366545
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=366545&action=review
>>>>>> Source/WebCore/page/DragController.cpp:-464 >>>>>> - m_numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1; >>>>> >>>>> I can’t help but wonder, why? Why did we do this? I so want to understand the comment, but it is broken English. Could this be a platform/port-specific hack? Windows? GTK? If so, need to move hack. <—- not cq’ing because of this >>>> >>>> This was added by Jon Lee 7 years ago. It was to provide more info to the user what might happen when the drag moves over elements in the page. I think it just wasn’t fully thought out. >>>> >>>>
https://trac.webkit.org/changeset/99108/webkit
>>> >>> We should ensure that dragging multiple files over a regular input type=file does not cause the drop to occur. >> >> (Regular file input, as opposed to an <input type=file multiple>) > > Oh sorry, I misread the branch. The change looks right — I can't think of any reason why we wouldn't want to update m_numberOfItemsToBeAccepted when dragging a single file, when we're not dropping over a file input.
Yep, the if (m_fileInputElementUnderMouse) block handles that.
Alexey Proskuryakov
Comment 10
2019-04-03 10:24:51 PDT
Is this the same as
bug 181081
?
Timothy Hatcher
Comment 11
2019-04-03 11:32:01 PDT
***
Bug 181081
has been marked as a duplicate of this bug. ***
Timothy Hatcher
Comment 12
2019-04-03 11:36:04 PDT
(In reply to Alexey Proskuryakov from
comment #10
)
> Is this the same as
bug 181081
?
Yes.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug