WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 181294
[Attachment Support] Support dragging attachment elements out as files on macOS
https://bugs.webkit.org/show_bug.cgi?id=181294
Summary
[Attachment Support] Support dragging attachment elements out as files on macOS
Wenson Hsieh
Reported
2018-01-04 09:25:52 PST
The macOS counterpart to
https://bugs.webkit.org/show_bug.cgi?id=181199
.
Attachments
Patch
(14.62 KB, patch)
2018-01-11 22:54 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Blocked on webkit.org/b/181574
(15.01 KB, patch)
2018-01-11 23:06 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Depends on 188496
(41.22 KB, patch)
2018-08-19 22:05 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Rebase on trunk
(41.25 KB, patch)
2018-08-21 20:36 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Fix 32-bit macOS build
(41.49 KB, patch)
2018-08-21 21:37 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews206 for win-future
(12.78 MB, application/zip)
2018-08-22 09:04 PDT
,
EWS Watchlist
no flags
Details
Fix 32-bit macOS build (2)
(42.57 KB, patch)
2018-08-22 09:09 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Fix OpenSource macOS builds
(42.22 KB, patch)
2018-08-22 09:45 PDT
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Patch for EWS
(41.28 KB, patch)
2018-08-22 13:28 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Patch for EWS
(41.28 KB, patch)
2018-08-22 13:29 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-01-04 09:27:21 PST
<
rdar://problem/36298801
>
Wenson Hsieh
Comment 2
2018-01-11 22:54:32 PST
Created
attachment 331172
[details]
Patch
Wenson Hsieh
Comment 3
2018-01-11 23:06:09 PST
Created
attachment 331175
[details]
Blocked on
webkit.org/b/181574
Wenson Hsieh
Comment 4
2018-08-19 22:05:29 PDT
Created
attachment 347481
[details]
Depends on 188496
Wenson Hsieh
Comment 5
2018-08-21 20:36:33 PDT
Created
attachment 347760
[details]
Rebase on trunk
Wenson Hsieh
Comment 6
2018-08-21 21:37:18 PDT
Created
attachment 347764
[details]
Fix 32-bit macOS build
EWS Watchlist
Comment 7
2018-08-22 09:04:09 PDT
Comment hidden (obsolete)
Comment on
attachment 347764
[details]
Fix 32-bit macOS build
Attachment 347764
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/8944461
New failing tests: http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-video.html
EWS Watchlist
Comment 8
2018-08-22 09:04:20 PDT
Comment hidden (obsolete)
Created
attachment 347800
[details]
Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Wenson Hsieh
Comment 9
2018-08-22 09:09:14 PDT
Created
attachment 347802
[details]
Fix 32-bit macOS build (2)
Wenson Hsieh
Comment 10
2018-08-22 09:45:27 PDT
Created
attachment 347811
[details]
Fix OpenSource macOS builds
Tim Horton
Comment 11
2018-08-22 12:47:05 PDT
Comment on
attachment 347811
[details]
Fix OpenSource macOS builds View in context:
https://bugs.webkit.org/attachment.cgi?id=347811&action=review
> Source/WebCore/editing/cocoa/EditorCocoa.mm:173 > + // On macOS, we currently write the attachment as a web archive; we can't do the same for iOS and remove the platform guard below
s/below/above/?
> Source/WebKit/UIProcess/API/mac/WKView.mm:1096 > +- (NSString *)filePromiseProvider:(NSFilePromiseProvider*)filePromiseProvider fileNameForType:(NSString *)fileType
Stars on the wrong side
> Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:3925 > + return [NSError errorWithDomain:WKErrorDomain code:WKErrorUnknown userInfo:nil]; > +#else > + return [NSError errorWithDomain:@"WebKitErrorDomain" code:1 userInfo:nil];
This is weird. Have we ever done this before?
> Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:4003 > +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
Do we still build back to 10.11? What's up with all of this. Should/can it be a specific HAVE() or USE() instead?
Wenson Hsieh
Comment 12
2018-08-22 13:14:11 PDT
Comment on
attachment 347811
[details]
Fix OpenSource macOS builds View in context:
https://bugs.webkit.org/attachment.cgi?id=347811&action=review
>> Source/WebCore/editing/cocoa/EditorCocoa.mm:173 >> + // On macOS, we currently write the attachment as a web archive; we can't do the same for iOS and remove the platform guard below > > s/below/above/?
Fixed!
>> Source/WebKit/UIProcess/API/mac/WKView.mm:1096 >> +- (NSString *)filePromiseProvider:(NSFilePromiseProvider*)filePromiseProvider fileNameForType:(NSString *)fileType > > Stars on the wrong side
Fixed!
>> Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:3925 >> + return [NSError errorWithDomain:@"WebKitErrorDomain" code:1 userInfo:nil]; > > This is weird. Have we ever done this before?
Good point. The ways in which we handle errors is pretty inconsistent already (some places in WKWebView use [[NSError alloc] init], and other places in attachments code use WKErrorDomain, but with error codes that are not exposed anywhere). I filed <
https://bugs.webkit.org/show_bug.cgi?id=188860
> to clean this up.
>> Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:4003 >> +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 > > Do we still build back to 10.11? What's up with all of this. Should/can it be a specific HAVE() or USE() instead?
You're right! It looks like there are no more El Capitan bots on build.webkit.org, so I should be able to just remove all of these version checks.
Wenson Hsieh
Comment 13
2018-08-22 13:28:01 PDT
Comment hidden (obsolete)
Created
attachment 347835
[details]
Patch for EWS
Wenson Hsieh
Comment 14
2018-08-22 13:29:59 PDT
Created
attachment 347836
[details]
Patch for EWS
WebKit Commit Bot
Comment 15
2018-08-22 14:35:10 PDT
Comment on
attachment 347836
[details]
Patch for EWS Clearing flags on attachment: 347836 Committed
r235202
: <
https://trac.webkit.org/changeset/235202
>
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