WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
192570
[iOS] Support dropping contact card data (public.vcard) in editable content
https://bugs.webkit.org/show_bug.cgi?id=192570
Summary
[iOS] Support dropping contact card data (public.vcard) in editable content
Wenson Hsieh
Reported
2018-12-10 14:55:03 PST
<
rdar://problem/35626913
>
Attachments
First pass
(27.42 KB, patch)
2018-12-11 15:53 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Try to fix macOS builds
(27.44 KB, patch)
2018-12-11 16:17 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Fix 32-bit macOS build
(27.92 KB, patch)
2018-12-11 16:48 PST
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Patch for landing
(28.14 KB, patch)
2018-12-13 14:47 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2018-12-11 12:14:13 PST
For added context, our current behavior when dropping a vCard in both rich and plain editable elements is that we dump the entire contents of the vCard as plain text :( The desired behavior is probably: • If there is a URL accompanying the vCard, dropping into a rich contenteditable with attachments enabled should produce a link and an attachment element, and dropping into a rich contenteditable without attachments should insert just a link. • If there is no URL accompanying the vCard, dropping into a rich contenteditable area should insert an attachment element, and dropping into a rich contenteditable without attachments enabled should do nothing. • If there is a URL accompanying the vCard, dropping into a plain contenteditable should insert the URL. • If there is no URL accompanying the vCard, dropping into a plain contenteditable should do nothing.
Wenson Hsieh
Comment 2
2018-12-11 15:53:26 PST
Created
attachment 357080
[details]
First pass
Wenson Hsieh
Comment 3
2018-12-11 16:17:03 PST
Created
attachment 357084
[details]
Try to fix macOS builds
Wenson Hsieh
Comment 4
2018-12-11 16:48:22 PST
Created
attachment 357085
[details]
Fix 32-bit macOS build
Tim Horton
Comment 5
2018-12-13 13:11:52 PST
Comment on
attachment 357085
[details]
Fix 32-bit macOS build View in context:
https://bugs.webkit.org/attachment.cgi?id=357085&action=review
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:28 > +#if WK_API_ENABLED && !PLATFORM(WATCHOS) && !PLATFORM(TVOS)
isn't this just PLATFORM(IOS) now? WK_API_ENABLED is always true there, and that excludes watch and tv
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:1851 > + [contact setFamilyName:@"Bitdiddle"];
🤨
Tim Horton
Comment 6
2018-12-13 13:13:08 PST
(In reply to Tim Horton from
comment #5
)
> Comment on
attachment 357085
[details]
> Fix 32-bit macOS build > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=357085&action=review
> > > Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:28 > > +#if WK_API_ENABLED && !PLATFORM(WATCHOS) && !PLATFORM(TVOS) > > isn't this just PLATFORM(IOS) now? > > WK_API_ENABLED is always true there, and that excludes watch and tv
OH you want mac too. OK so (PLATFORM(MAC) || PLATFORM(IOS)) && WK_API_ENABLED
> > Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:1851 > > + [contact setFamilyName:@"Bitdiddle"]; > > 🤨
Wenson Hsieh
Comment 7
2018-12-13 13:31:52 PST
Comment on
attachment 357085
[details]
Fix 32-bit macOS build View in context:
https://bugs.webkit.org/attachment.cgi?id=357085&action=review
>>> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:28 >>> +#if WK_API_ENABLED && !PLATFORM(WATCHOS) && !PLATFORM(TVOS) >> >> isn't this just PLATFORM(IOS) now? >> >> WK_API_ENABLED is always true there, and that excludes watch and tv > > OH you want mac too. OK so (PLATFORM(MAC) || PLATFORM(IOS)) && WK_API_ENABLED
Sounds good! Changed to (PLATFORM(MAC) || PLATFORM(IOS)) && WK_API_ENABLED
>>> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:1851 >>> + [contact setFamilyName:@"Bitdiddle"]; >> >> 🤨 > >
Heh, I do like my SICP names. Changed to a more generic "Foo Bar"
Wenson Hsieh
Comment 8
2018-12-13 14:47:48 PST
Created
attachment 357258
[details]
Patch for landing
WebKit Commit Bot
Comment 9
2018-12-13 15:25:29 PST
Comment on
attachment 357258
[details]
Patch for landing Clearing flags on attachment: 357258 Committed
r239184
: <
https://trac.webkit.org/changeset/239184
>
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