Closed
Bug 1103104
Opened 10 years ago
Closed 10 years ago
support title for twitter share
Categories
(Firefox Graveyard :: SocialAPI, defect)
Tracking
(firefox39 fixed)
RESOLVED
FIXED
Firefox 39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
References
Details
Attachments
(1 file, 1 obsolete file)
1.10 KB,
patch
|
mixedpuppy
:
review+
|
Details | Diff | Splinter Review |
Due to the way some providers have both title and text support in share, and twitter only has text support, text is only inserted into twitter share if the user has selected some text in the page. Should examine providing page title if there is no text selection, but need to be careful to not duplicate title/text for other providers. Something like this might work:
if selection-argument in shareurl and
title-argument not in shareurl and no selection
selection = title
Assignee | ||
Comment 1•10 years ago
|
||
This change would be in OpenGraphBuilder.generateEndpointURL in Social.jsm. Need to add something like:
if (p[1] == "text" && "%{title}".indexOf(queryString) < 0) {
if (!pageData.text && pageData.title)
query["text"] = pageData.title;
}
Comment 3•10 years ago
|
||
Can this be a good first / mentored bug with you as a mentor, Shane? :-)
Flags: needinfo?(mixedpuppy)
Comment 4•10 years ago
|
||
I'm wondering if the code from Fennec could be used?
Comment 5•10 years ago
|
||
Very annoying the missing of the title page in the tweet :-/
Assignee | ||
Comment 6•10 years ago
|
||
Assignee: nobody → mixedpuppy
Flags: needinfo?(mixedpuppy)
Attachment #8574965 -
Flags: review?(gijskruitbosch+bugs)
Comment 7•10 years ago
|
||
Comment on attachment 8574965 [details] [diff] [review]
support title in text fields for share providers
Review of attachment 8574965 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/modules/Social.jsm
@@ +520,5 @@
> }
> });
> + // if the url template doesn't have title and no text was provided, add the title as the text.
> + if (!query.text && !query.title && pageData.title) {
> + query["text"] = pageData.title;
Nit: query.text =
Attachment #8574965 -
Flags: review?(gijskruitbosch+bugs) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8574965 -
Attachment is obsolete: true
Attachment #8575335 -
Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•