WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173636
[iOS DnD] [WK2] Add drag-and-drop release logging around WKContentView
https://bugs.webkit.org/show_bug.cgi?id=173636
Summary
[iOS DnD] [WK2] Add drag-and-drop release logging around WKContentView
Wenson Hsieh
Reported
2017-06-20 21:10:15 PDT
Adding RELEASE_LOGs to key points in the drag-and-drop lifecycle will make sysdiagnoses actually contain useful information for debugging.
Attachments
Patch
(11.04 KB, patch)
2017-06-20 21:13 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Add logging in one more spot.
(11.44 KB, patch)
2017-06-20 23:08 PDT
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Patch for landing
(11.42 KB, patch)
2017-06-21 11:15 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2017-06-20 21:13:38 PDT
Created
attachment 313484
[details]
Patch
Wenson Hsieh
Comment 2
2017-06-20 23:08:39 PDT
Created
attachment 313493
[details]
Add logging in one more spot.
Tim Horton
Comment 3
2017-06-21 10:57:30 PDT
Comment on
attachment 313493
[details]
Add logging in one more spot. View in context:
https://bugs.webkit.org/attachment.cgi?id=313493&action=review
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:4518 > + RELEASE_LOG(DragAndDrop, "Drag session failed: %p (no draggable content at %s)", session, NSStringFromCGPoint(dragOrigin).UTF8String);
Building an NSString just to print things? Why not just print the components?
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:4531 > + RELEASE_LOG(DragAndDrop, "Drag session requested: %p at element bounds: %s", session, NSStringFromCGRect(state.elementBounds).UTF8String);
And again
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:4721 > + RELEASE_LOG(DragAndDrop, "Loaded data at %tu files", fileURLs.count);
*at*?
Wenson Hsieh
Comment 4
2017-06-21 11:00:19 PDT
Comment on
attachment 313493
[details]
Add logging in one more spot. View in context:
https://bugs.webkit.org/attachment.cgi?id=313493&action=review
Thanks!
>> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:4518 >> + RELEASE_LOG(DragAndDrop, "Drag session failed: %p (no draggable content at %s)", session, NSStringFromCGPoint(dragOrigin).UTF8String); > > Building an NSString just to print things? Why not just print the components?
Sounds good -- I'll log the CGPoint x/y directly.
>> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:4531 >> + RELEASE_LOG(DragAndDrop, "Drag session requested: %p at element bounds: %s", session, NSStringFromCGRect(state.elementBounds).UTF8String); > > And again
👍
>> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:4721 >> + RELEASE_LOG(DragAndDrop, "Loaded data at %tu files", fileURLs.count); > > *at*?
I suppose "into" would be more fitting here -- fixed.
Wenson Hsieh
Comment 5
2017-06-21 11:15:08 PDT
Created
attachment 313534
[details]
Patch for landing
WebKit Commit Bot
Comment 6
2017-06-21 11:54:48 PDT
Comment on
attachment 313534
[details]
Patch for landing Clearing flags on attachment: 313534 Committed
r218642
: <
http://trac.webkit.org/changeset/218642
>
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