RESOLVED FIXED 180969
Don't convert pasted content to use blob URL in WebKit1
https://bugs.webkit.org/show_bug.cgi?id=180969
Summary Don't convert pasted content to use blob URL in WebKit1
Ryosuke Niwa
Reported 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.
Attachments
Restores the old behavior (19.71 KB, patch)
2017-12-19 14:18 PST, Ryosuke Niwa
wenson_hsieh: review+
Ryosuke Niwa
Comment 1 2017-12-19 14:18:51 PST
Created attachment 329823 [details] Restores the old behavior
Ryosuke Niwa
Comment 2 2017-12-19 14:30:53 PST
Wenson Hsieh
Comment 3 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)
Ryosuke Niwa
Comment 4 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.
Ryosuke Niwa
Comment 5 2017-12-19 16:07:34 PST
Note You need to log in before you can comment on or make changes to this bug.