Twitter ‘characters remaining’ count wrong for http: links

UNCONFIRMED
Unassigned

Status

()

Firefox
SocialAPI
UNCONFIRMED
2 years ago
2 years ago

People

(Reporter: Smylers, Unassigned)

Tracking

43 Branch
Points:
---

Firefox Tracking Flags

(platform-rel -)

Details

(Whiteboard: [platform-rel-Twitter])

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151110092951

Steps to reproduce:

Go to an http: (not https:) page.
Click on the paper aeroplane to share a link to it.
Select Twitter as the service.
Edit the message, leaving the URL to the current page in it, until the count of characters remaining reaches 0.
Press the ‘Tweet’ button.


Actual results:

The message doesn't Tweet, instead yielding the error message:

  Your Tweet was over 140 characters. You'll have to be more clever.


Expected results:

The counter should have displayed -1 rather than 0, because the Tweet was a character too long; all the way through it was incorrectly indicating that I had 1 more character remaining than I actually had.

This is because on October 19th Twitter changed to making all t.co links use https:. The ‘s’ adds a character to the shortened URL, meaning there's 1 less character available for the message than before then, when http: URLs were shortened to http://t.co URLS. Specifically, any link now use up 23 characters out of a Tweet, whereas previously http: links only used up 22.

(Links to https: pages are unaffected, because they already used https://t.co short links, and Firefox correctly accounts for them using up 23 characters.)

Details of Twitter's change:
http://venturebeat.com/2015/09/17/twitter-links-will-move-to-https-on-october-1-non-https-sites-may-see-10-drop-in-referral-traffic/
https://twittercommunity.com/t/moving-t-co-to-https-only-for-new-links/52380
(Reporter)

Updated

2 years ago
Component: Untriaged → SocialAPI
Whiteboard: [platform-rel-Twitter]

Updated

2 years ago
platform-rel: --- → ?

Updated

2 years ago
platform-rel: ? → -
You need to log in before you can comment on or make changes to this bug.