(In reply to Edgar Chen [:edgar] from comment #7) > Okay, although the content in system clipboard is different, but Gecko still returns an empty string for `getData('text/html');`, so it looks like the widget code is handling the conversion. From the Web API point of view, our behavior is actually the same as Safari’s. Error, the `getData('text/html');` do return a empty string, but the `DataTransfer.types` doesn't contain `text/html` on Safari, so I believe this is the root cause. I need to check other platform as well.
Bug 1967510 Comment 8 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Edgar Chen [:edgar] from comment #7) > Okay, although the content in system clipboard is different, but Gecko still returns an empty string for `getData('text/html');`, so it looks like the widget code is handling the conversion. From the Web API point of view, our behavior is actually the same as Safari’s. ~~Error, the `getData('text/html');` do return a empty string, but the `DataTransfer.types` doesn't contain `text/html` on Safari, so I believe this is the root cause. I need to check other platform as well.~~ (I made some mistake, please ignore this comment)