Forum Discussion
MissyQ
Aug 19, 2020Bronze Contributor
Announcing a new way to paste URLs, Link format!
Recently, we wanted to dig into how users feel about copying and pasting a URL from their browser. We looked to understand what they do when they copy and paste URLs, as well as the pain points they ...
JaredB81
Oct 15, 2020Iron Contributor
rshupak thank you as always! I was on vacation last week and am still catching up.
When I right-click on the address bar in Canary today (671), I see "Copy" not "Copy link" and the appropriate formats get added to the clipboard when copying.
Can you confirm that you observe the expected behavior in Canary build 671 (or later if you see this post in the next few days)?
Thank you!
rshupak
Oct 15, 2020Iron Contributor
JaredB81 The address bar works in 672 for me. Favorites are still broken but functionality and inconsistent UI.
Favorite in favorite bar: Menu item named "Copy". The following formats generated:
C0C2 HTML Format
C0CE UniformResourceLocatorW
000D Unicode Text
C2D5 chromium/x-bookmark-entries
0010 Locale
0001 Text
0007 OEM Text
C0CE UniformResourceLocatorW
000D Unicode Text
C2D5 chromium/x-bookmark-entries
0010 Locale
0001 Text
0007 OEM Text
Favorite in menu when clicking on a folder in the favorites bar. Menu item named "Copy". The following formats generated:
C0C2 HTML Format
C0CE UniformResourceLocatorW
000D Unicode Text
C2D5 chromium/x-bookmark-entries
0010 Locale
0001 Text
0007 OEM Text
C0CE UniformResourceLocatorW
000D Unicode Text
C2D5 chromium/x-bookmark-entries
0010 Locale
0001 Text
0007 OEM Text
Favorite in menu displayed when clicking favorites button in address bar. Menu item named "Copy link". The following formats generated:
000D Unicode Text
0010 Locale
0001 Text
0007 OEM Text
0010 Locale
0001 Text
0007 OEM Text
Favorite in new favorites sidebar pinned from favorites button in address bar. Menu item named "Copy link". The following formats generated:
000D Unicode Text
0010 Locale
0001 Text
0007 OEM Text
0010 Locale
0001 Text
0007 OEM Text
Favorite in edge://favorites/. Menu item named "Copy link". The following formats generated:
000D Unicode Text
0010 Locale
0001 Text
0007 OEM Text
0010 Locale
0001 Text
0007 OEM Text
There is an address bar bug I did not mention. You can repro by visiting https://techcommunity.microsoft.com/t5/microsoft-edge-insider/ct-p/MicrosoftEdgeInsider. This issue relates to the behavior when selecting a subset of the address bar content. If the selection does not start at the left, only plain text is copied. This is fine. When you select from the left and the selection does not extend to the end of the host name, again, it is text only. To repro the problem, copy exactly "https://techcommunity.microsoft.com/". This will generate the following formats
000D Unicode Text
0010 Locale
0001 Text
0007 OEM Text
C0C2 HTML Format
C2C7 Link Preview Format
C2B9 Titled Hyperlink Format
0010 Locale
0001 Text
0007 OEM Text
C0C2 HTML Format
C2C7 Link Preview Format
C2B9 Titled Hyperlink Format
The Link Preview Format content is the following, formatted for clarity
{
"description": "",
"domain": "microsoft.com",
"favicon_url": "https://c.s-microsoft.com/favicon.ico?v2",
"image_url": "https://cdn.techcommunity.microsoft.com/lithium/TechCommunity-DefaultHero-2.png",
"preferred_format": "text/html;content=titled-hyperlink",
"title": "Home - Microsoft Tech Community",
"type": "website",
"url": "https://techcommunity.microsoft.com/"
}
"description": "",
"domain": "microsoft.com",
"favicon_url": "https://c.s-microsoft.com/favicon.ico?v2",
"image_url": "https://cdn.techcommunity.microsoft.com/lithium/TechCommunity-DefaultHero-2.png",
"preferred_format": "text/html;content=titled-hyperlink",
"title": "Home - Microsoft Tech Community",
"type": "website",
"url": "https://techcommunity.microsoft.com/"
}
The Titled Hyperlink Format content is the following which may be corrupted by this site.
Version:0.9
StartHTML:0000000105
EndHTML:0000000259
StartFragment:0000000141
EndFragment:0000000223
<html>
<body>
<!--StartFragment--><a href="https://techcommunity.microsoft.com/">Home - Microsoft Tech Community</a><!--EndFragment-->
</body>
</html>
StartHTML:0000000105
EndHTML:0000000259
StartFragment:0000000141
EndFragment:0000000223
<html>
<body>
<!--StartFragment--><a href="https://techcommunity.microsoft.com/">Home - Microsoft Tech Community</a><!--EndFragment-->
</body>
</html>
The problem is that the HTML Format content is a single byte of 0x00. I must admit this surprises me since I have always seen HTML Format and Titled Hyperlink Format as identical. If always so, why would generation of one work and the other not. If not always identical, how do they differ?
Rich