After <https://trac.webkit.org/r223440>, we now always deliver sanitized markup if the page asks for "text/html" from a DataTransfer. UIPasteboardTests.DataTransferGetDataWhenPastingPlatformRepresentations writes "public.html" to the UIPasteboard using platform API, and then checks for the value of DataTransfer.getData('text/html') when pasting. After r223440, the requested HTML now contains inline styles, where it was simply the markup string written by the platform before.
<rdar://problem/36041485>
This is very similar to the existing tests PasteHTML.SanitizesHTML (and PasteWebArchive.SanitizesHTML, which is for macOS only). In both cases, we're writing web content to the pasteboard via platform API, and then expecting sanitized markup for "text/html". Both the aforementioned tests are indifferent to specific inline styles captured in the sanitized markup, so this failing test should be updated to match.
Created attachment 332709 [details] Patch
Comment on attachment 332709 [details] Patch Thanks for the review!
Comment on attachment 332709 [details] Patch Clearing flags on attachment: 332709 Committed r227859: <https://trac.webkit.org/changeset/227859>
All reviewed patches have been landed. Closing bug.