Closed Bug 416272 Opened 16 years ago Closed 15 years ago

SHOWFOR does not detect OS with other browsers

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cilias, Assigned: paulc)

References

()

Details

(Whiteboard: sumo_only showfor)

Attachments

(1 file, 1 obsolete file)

Using either IE or Safari, go to an article using the OS selector (e.g. <http://support.mozilla.com/kb/AUS+Update+XML+File+Malformed+200>). There is no OS selected, and all content is shown.

IE traffic makes up roughly 25% of sumo sessions.
Summary: SHOWFOR does detect OS with other browsers → SHOWFOR does not detect OS with other browsers
What is the default view when no OS is selected?
When no OS is selected, everything is shown.

"In the Location Bar, type https://addons.mozilla.org and press EnterReturn."

"Right-clickHold down the Ctrl key while you click..."
Eww.. Nelson, can we default to Windows if no OS is detected?
The problem is that navigator.oscpu does not work in those browsers.

I have made changes to default to windows/fx2 if no firefox is used.

Jason, do you know the detection method for Safari, or some other way? The relevant file is js/wikiplugin_showfor.js

Dupe of 413667 (or other way around)?
I don't think so. Bug 413667 is a Forums bug about browser detection when using <http://support.mozilla.com/tiki-view_forum.php?locale=en-US&forumId=1&openpost=1> (I think). This bug is about OS detection in SHOWFOR.
Assignee: nelson → smirkingsisyphus
Target Milestone: --- → 1.3
Can someone confirm this is still an issue?
This is still an issue on Safari/Mac.
WRM on IE8/Vista.
s/WRM/WFM :-)
This is also an issue with Safari and Chrome on Vista.
Attached patch patch, v1 (obsolete) — Splinter Review
Thanks for the links and pointers. This works like a charm with Konqueror, Firefox, and IE 6 :)
Assignee: smirkingsisyphus → paul.craciunoiu
Attachment #393081 - Flags: review?(smirkingsisyphus)
Attachment #393081 - Flags: review?(laura)
Attachment #393081 - Flags: review?(laura) → review+
Comment on attachment 393081 [details] [diff] [review]
patch, v1

Why do we have a special case for iphones?
Attached patch patch, v2Splinter Review
My bad. I sort of just skipped over it cause it was in the quirksmode script :)
Attachment #393081 - Attachment is obsolete: true
Attachment #394111 - Flags: review?(laura)
Attachment #393081 - Flags: review?(smirkingsisyphus)
Attachment #394111 - Flags: review?(laura) → review+
r49048 / r49049
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Bringing in the big guns (mozwebqa); I could use a lot of help testing this, guys :-)
(In reply to comment #17)
> Bringing in the big guns (mozwebqa); I could use a lot of help testing this,
> guys :-)

Testable here: http://support-stage.mozilla.org/en-US/kb/AUS+Update+XML+File+Malformed+200.
OK, honestly, I tested with my iPhone and its version of Safari, and it selects "Windows"; bizarre.  (Cleared my cookies, so it's not from really unlikely previous iPhone testing.)

Don't know that we care enough to special-case it to even fix this, given comment 14, but I'll leave that up to others.

Vishal and I have tested the gamut of browers and it's looking good to us.
The iPhone part was removed... So, that's why :)
(In reply to comment #20)
> The iPhone part was removed... So, that's why :)

Originally I thought you put it in "Just because (tm)", but I now realize you actually tested with it -- silly me :-)

Verified FIXED!
Status: RESOLVED → VERIFIED
Whiteboard: sumo_only showfor
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: