Closed Bug 1103104 Opened 10 years ago Closed 10 years ago

support title for twitter share

Categories

(Firefox Graveyard :: SocialAPI, defect)

32 Branch
x86
macOS
defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

Details

Attachments

(1 file, 1 obsolete file)

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
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; }
Can this be a good first / mentored bug with you as a mentor, Shane? :-)
Flags: needinfo?(mixedpuppy)
I'm wondering if the code from Fennec could be used?
Very annoying the missing of the title page in the tweet :-/
Assignee: nobody → mixedpuppy
Flags: needinfo?(mixedpuppy)
Attachment #8574965 - Flags: review?(gijskruitbosch+bugs)
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+
Attachment #8574965 - Attachment is obsolete: true
Attachment #8575335 - Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: