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.
I debugged the page a bit and found that it doesn’t handle the paste event directly, but instead lets the browser handle the paste action.
So I suspect the difference is from the Editor which perhaps our Editor always use the HTML data even if it is empty string, I will do more investigation.
Bug 1967510 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
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.
I debugged the page a bit and found that it doesn’t handle the paste event directly, but instead lets the browser handle the paste action.
So I suspect the difference is from the Editor which perhaps our Editor always use the HTML data even if it is empty string, I will do more investigation.
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.~~
I debugged the page a bit and found that it doesn’t handle the paste event directly, but instead lets the browser handle the paste action.
So I suspect the difference is from the Editor which perhaps our Editor always use the HTML data even if it is empty string, I will do more investigation.
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.
I debugged the page a bit and found that it doesn’t handle the paste event directly, but instead lets the browser handle the paste action.
So I suspect the difference is from the Editor which perhaps our Editor always use the HTML data even if it is empty string, I will do more investigation.
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 on macOS.
I debugged the page a bit and found that it doesn’t handle the paste event directly, but instead lets the browser handle the paste action.
So I suspect the difference is from the Editor which perhaps our Editor always use the HTML data even if it is empty string, I will do more investigation.
----
Edited: Returning an empty string for getData('text/html') is macOS-only behavior, other platforms return whatever data is currently in the system clipboard.