Automatically detect plugins and user-agent in Live Chat

RESOLVED FIXED in 1.0.2

Status

--
enhancement
RESOLVED FIXED
10 years ago
6 years ago

People

(Reporter: zzxc, Assigned: zzxc)

Tracking

unspecified
1.0.2

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

10 years ago
Live Chat needs an automated field that to contain all installed plugins, similar to the detection used in the forum.  This will save time by eliminating the need to ask about plugins when the user is chatting from Firefox.

Updated

10 years ago
Target Milestone: 1.1 → 1.0
(Assignee)

Comment 1

10 years ago
Created attachment 371811 [details] [diff] [review]
Add detection script for form fields

This adds a script to detect user-agent, Firefox version, operating system, and enabled plugins on the "new chat" page.  For these added fields to work, they must first be added through the Openfire admin panel.  The detection code here is based on the code used in the forum, expanded to detect the Fastpath form elements.
Attachment #371811 - Flags: review?(laura)
(Assignee)

Updated

10 years ago
Target Milestone: 1.0 → 1.0.2
Comment on attachment 371811 [details] [diff] [review]
Add detection script for form fields

The plugins stuff is fine.  The user-agent parts doesn't cover a lot of options - can you pass it through with some input filtering rather than a case?  I note for example that Shiretoko and Seamonkey are not listed.
And by "case" I mean "switch".
(Assignee)

Comment 4

10 years ago
Created attachment 372631 [details] [diff] [review]
Improve Firefox version detection

A list of product names and versions is needed since this script has to fill out a <select> element.  3.1b3, 3.5.x, 3.5b4, etc all have to match either "Firefox 3.5" or "Firefox 3.5 beta".  If another product or version is in use, the user will simply have to select from a list.  (eg. Seamonkey or a non-Mozilla browser)

I cleaned up the detection routine to extract the product name and use a switch for currently known names, including Shiretoko.  This will need to be updated for future releases once they are announced.
Attachment #371811 - Attachment is obsolete: true
Attachment #372631 - Flags: review?(laura)
Attachment #371811 - Flags: review?(laura)

Updated

10 years ago
Attachment #372631 - Flags: review?(laura) → review+
(Assignee)

Comment 5

10 years ago
fixed r24447
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
Component: Chat → Chat
Product: support.mozilla.org → support.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.