Bug 180969

Summary: Don't convert pasted content to use blob URL in WebKit1
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=178947
Attachments:
Description Flags
Restores the old behavior wenson_hsieh: review+

Description Ryosuke Niwa 2017-12-19 01:51:06 PST
Turns out there are some WebKit1 clients that depend on the URL of the pasted content
being differentiable between file & http URLs. In addition, https://webkit.org/b/178947
makes it impossible to retrieve the file contents right now.

Restore the behavior prior to https://trac.webkit.org/changeset/223440 in WebKit1 to unbreak these clients.
Comment 1 Ryosuke Niwa 2017-12-19 14:18:51 PST
Created attachment 329823 [details]
Restores the old behavior
Comment 2 Ryosuke Niwa 2017-12-19 14:30:53 PST
<rdar://problem/36019793>
Comment 3 Wenson Hsieh 2017-12-19 14:41:46 PST
Comment on attachment 329823 [details]
Restores the old behavior

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

> Tools/TestWebKitAPI/Tests/WebKitLegacy/mac/AccessingPastedImage.mm:125
> +    destinationWebView.get().frameLoadDelegate = delegate.get();

Nit - we usually write using bracket notation (as [destinationWebView setFrameLoadDelegate:]), instead of using get() on the RetainPtr (ditto for the other places in this file)
Comment 4 Ryosuke Niwa 2017-12-19 15:08:45 PST
(In reply to Wenson Hsieh from comment #3)
> Comment on attachment 329823 [details]
> Restores the old behavior
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=329823&action=review
> 
> > Tools/TestWebKitAPI/Tests/WebKitLegacy/mac/AccessingPastedImage.mm:125
> > +    destinationWebView.get().frameLoadDelegate = delegate.get();
> 
> Nit - we usually write using bracket notation (as [destinationWebView
> setFrameLoadDelegate:]), instead of using get() on the RetainPtr (ditto for
> the other places in this file)

Fixed.

Thanks for the review.
Comment 5 Ryosuke Niwa 2017-12-19 16:07:34 PST
Committed r226156: <https://trac.webkit.org/changeset/226156>