Currently, we always replace subresource URLs with blob URLs when reading web content. We want to revert this policy; however, logic to replace DOM elements in the rich fragment with attachments currently depends on us always replacing subresources with blobs. This means we need to decouple logic for replacing attachments from logic that replaces resource URLs in element attributes with blob URLs.
<rdar://problem/36168313>
Created attachment 329972 [details] First pass
Created attachment 329975 [details] Minor adjustments.
Comment on attachment 329975 [details] Minor adjustments. r=me. Thanks for the refactoring!
Comment on attachment 329975 [details] Minor adjustments. Clearing flags on attachment: 329975 Committed r226213: <https://trac.webkit.org/changeset/226213>
All reviewed patches have been landed. Closing bug.