Closed Bug 497384 Opened 16 years ago Closed 11 years ago

facebook.com - chat and other notifications in "taskbar" not working due to user agent sniffing

Categories

(Web Compatibility :: Site Reports, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: justdave, Assigned: ishermandom+bugs)

References

()

Details

Was noticing when my wife is using Facebook in 3.0.10 on her computer that notifications pop up in a small box in the lower right corner as they happen, in addition to the little red number balloon show up on on the notification icon. Neither of those things happen in Shiretoko; I don't get the popup notifications at all, and the red number balloon doesn't show up unless I reload the page.
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: 3.5 Branch → 1.9.1 Branch
Is there anything in the error console? Why do we think this is a JS engine bug?
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1pre) Gecko/20090607 Shiretoko/3.5pre Chat doesn't show up for me as well. Works on trunk, maybe fixed on a recent push to branch? Getting this on the blocking radar...
Flags: blocking1.9.1?
OS: Mac OS X → All
Hardware: x86 → All
(In reply to comment #1) > Is there anything in the error console? Why do we think this is a JS engine > bug? Sorry mid-aired :( . I can't think of anything else that would break this, the chat box shows up briefly, then disappears, so I assumed if there were any errors the page was consuming them, I'll try to get something more concrete...
The chat list shows as offline, and gets hidden via the id #presence.buddy_list_hidden.presence_error #buddy_list_tab . The notifications thing is hard to repro, it's a timing thing, you need to get one while you're in facebook... /me pulls and rebuilds
Using latest branch nightly I get: - notifications of new chat messages (thing changes colour, little balloon) - notifications bubble exists on first load I have my UA string manually set to 3.0.x, though, so perhaps this is UA-sniffing?
facebook is notorious for bad user-agent sniffing. I've complained multiple times. Wouldn't surprise me if it is indeed broken user-agent checks.
Actually, now that you mention it, chat hasn't been showing up for me for the last week or two. Didn't complain about that because I like it that way. I'm logged into Facebook Chat from Adium, so the duplicate chat window in my browser just gets in the way. I thought maybe they got smart and realized if I was connecting from Adium I wouldn't also want it in my browser.
And to clarify, the notification icon shows up fine on initial page load, I'm talking about notifications that happen after you already have the page open. If you leave the page open, periodically you get the "Show XX new posts" at the top that you can click to show the new posts that have happened since you opened the page. At the same time that shows up, the notification icon would also show up if you had new notifications in that time. That's what doesn't happen. I have to reload the page to get the notification icon. My wife also gets a rounded-corner gray background popup in the lower right corner with the text of the notification if there was only one (she's using 3.0.10). I don't get those at all.
Just confirmed on latest 191: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1pre) Gecko/20090610 Shiretoko/3.5pre All this doesn't happen on trunk.
Blech, it's a ua sniffing thing. general.useragent.override "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10" makes all these issues go away, afaict. Please confirm.
Dave: not sure that the Notifications use case that you're talking about is actually designed the way you think. I only sometimes see "instant" notifications, they usually require page reloads or some form of navigation event. I don't think they're sitting on a timer getting updates every N seconds.
(In reply to comment #10) > Blech, it's a ua sniffing thing. > > general.useragent.override "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; > rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10" > > makes all these issues go away, afaict. Please confirm. Confirmed. I just set my useragent to claim to be 3.0.10 and I now get popup notifications when the status comment is made (yes, it does indeed work that way, it's on a timer checking for them), including the little popup notification div with the text of it. In fact, my recent chat with Beltzner popped up, so they're breaking chat based on UserAgent, too. Wonderful.
Assignee: general → english-us
Component: JavaScript Engine → English US
Flags: blocking1.9.1?
Product: Core → Tech Evangelism
QA Contact: general → english-us
Version: 1.9.1 Branch → unspecified
Add this to the litany of other Facebook UA bugs...
Blocks: geckoisgecko
Summary: New notifications don't show up until you reload the page in Shiretoko (but show up right away in 3.0.10) → facebook.com - New notifications don't show up until you reload the page in Shiretoko (but show up right away in 3.0.10)
I couldn't find a facebook bug report on this. Is there one? (http://bugs.developers.facebook.com/)
Do they work with the user agent set to 3.5? Want to know if this is an issue we need to resolve with them before launch.
Flags: blocking-firefox3.5?
Summary: facebook.com - New notifications don't show up until you reload the page in Shiretoko (but show up right away in 3.0.10) → facebook.com - chat and other notifications in "taskbar" not working due to user agent sniffing
OK, confirmed... taking the default useragent string and doing s/Shiretoko/Firefox/ on it does indeed result in things working properly, so if the browser claims to be Firefox 3.5 it'll actually work. They're just being mean to the Shiretoko branding.
(In reply to comment #16) > They're just being > mean to the Shiretoko branding. s/the Shiretoko branding/any Gecko browser that does not include the word "Firefox" in the UA string, including Seamonkey, older versions of Camino, any prerelease Firefox, etc. With all the ex-Mozillans over there at Facebook, you'd think this wouldn't be an issue any more. Yet it continues to be an issue again and again and again. When is this going to stop?
Chris, Reed: please avoid from excessive kvetching in bugs. Perhaps you should ensure that the issue is indeed on file as David asked in comment 14
Flags: blocking-firefox3.5? → blocking-firefox3.5-
(In reply to comment #18) > Chris, Reed: please avoid from excessive kvetching in bugs. Perhaps you should > ensure that the issue is indeed on file as David asked in comment 14 facebook does not have a public bug database, and issues filed in the bugzilla instance mentioned in comment #14 will only get marked as invalid.
I'll concur with Reed, there's nowhere to file bugs on the public website in their Bugzilla, only for the various developer APIs.
This issue was reported and discussed recently on the mozillaZine forums: http://forums.mozillazine.org/viewtopic.php?f=40&t=575091&sid=0fcd917ff49ee7b1e51c13701297c715
Ilya said he could take this.
Assignee: english-us → ishermandom+bugs
I think this issue has been fixed, at least partially. I haven't tested chat, but the notifications balloon/popup has been working for me for a few weeks now. Unfortunately, there is now a new Seamonkey-specifc problem; namely, Facebook doesn't allow users to post status updates any more.
In case anyone is curious, a bug report has been filed for the status update problem. See Bug 519995.
The notifications popup has never been particularly broken in Camino, but the chat thing is still busted. See bug 430436. The status update problem is a dupe of bug 516842.
Blocks: 530273
What I can see with current builds is that the chat is working fine in nightly builds now. But the box are not served for builds which user agent string contains MozillaDeveloperPreview.
Does this means that next Firefox alpha 3 developer preview won't be able to use Facebook chat?
I would say yes. I don't think that Facebook will change anything here in the near future.
Is this bug still valid? Facebook recently completely revamped their user interface. I haven't noticed any problems with it when using Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100206 SUSE/2.0.3-6.1 SeaMonkey/2.0.3.
I there are no problems with other versions of Firefox (3.5 and 3.6) , only problem is with Developer Preview. Chat works normally on 3.7a3pre.
Can alpha 3 not to contain MozillaDeveloperPreview beacuse of FB chat issue? Because it's forcing us to move on pre-alpha builds if we want to use chat.
(In reply to comment #35) > Can alpha 3 not to contain MozillaDeveloperPreview beacuse of FB chat issue? That's about as valid as asking the UA string to be identical to IE's. In other words, no, modifying the UA string to fix other people's bugs is not something we want to encourage.
Facebook seems to have updated their UA detection recently. Is this still a problem for anyone who was originally seeing it? It works for me using a recent Camino nightly with the "like Firefox" portion of the UA string removed.
I'm seeing this with Firefox 4 nightlies and betas. It works fine with the same account and on the same network in Firefox 3.6 and other browsers (e.g. Chrome).
I see this with 15.0.1 release
Status: NEW → RESOLVED
Closed: 11 years ago
Component: English US → Desktop
Resolution: --- → FIXED
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.