Closed Bug 954339 Opened 11 years ago Closed 7 years ago

Show full versions of shortened URLs in tooltips

Categories

(Instantbird Graveyard :: Conversation, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: aleth, Unassigned)

Details

*** Original post on bio 906 at 2011-07-09 18:36:00 UTC *** Twitter's website has the nice feature that you can see the ultimate destination of shortened URLs as a tooltip. Of course in principle it would be possible to follow any shortened URL and immediately replace it with its expanded version, but that's probably quite an overhead compared to the tooltip on-demand solution.
*** Original post on bio 906 at 2011-07-09 18:43:07 UTC *** (In bug 954326 (bio 893) comment #0) > It's also sad that this doesn't resolve all URLs (it only resolves t.co URLs). > The twitter.com website uses an undocumented (private?) > https://api.twitter.com/1/urls/resolve.json call to resolve other URLs. Note: if we can't use the twitter API (or another "trusted" API) for that, the only way to resolve the URL is to do an HTTP request on each of the received URLs to see if they return a redirection to another URL. I don't think this is acceptable, as it reveals your IP.
*** Original post on bio 906 at 2011-07-09 18:44:10 UTC *** Or we would need to add a list of trusted shortened URL providers that are safe to resolve (tinyurl, bit.ly, ...).
*** Original post on bio 906 at 2011-07-09 19:46:45 UTC *** Twitter itself only seems to resolve URLs from some internally trusted list of providers. I had indeed assumed there was an API for this (otherwise not much is gained compared to just clicking the link, as you point out in #1).
*** Original post on bio 906 at 2011-10-21 02:23:00 UTC *** (In reply to comment #1) > (In bug 954326 (bio 893) comment #0) > > > It's also sad that this doesn't resolve all URLs (it only resolves t.co URLs). > > The twitter.com website uses an undocumented (private?) > > https://api.twitter.com/1/urls/resolve.json call to resolve other URLs. > > > Note: if we can't use the twitter API (or another "trusted" API) for that, the > only way to resolve the URL is to do an HTTP request on each of the received > URLs to see if they return a redirection to another URL. I don't think this is > acceptable, as it reveals your IP. Note that we can't use the Twitter API (or at least I can't figure out how to use it). I tried to find a library to resolve shortened URLs using their own APIs, but nothing popped up. I'm in favor of having a method that, given a URL, checks if it's in our set of URLs that can be resolved and then attempts to resolve it using an API. If it's unknown we just leave it as is. If we were to do it this way, I'd think we should implement it across all protocols, not just as part of the Twitter protocol (people post shortened links often now).
Status: UNCONFIRMED → NEW
Ever confirmed: true
On the behalf of Florian: Closing bugs related to the Instantbird UI as WONTFIX, as the development of the standalone chat client Instantbird has stopped. Instantbird users are encouraged to migrate to Thunderbird. The user interface of instant messaging in Thunderbird will feel familiar, as the Thunderbird IM support started as a fork of Instantbird.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.