Closed Bug 815041 Opened 12 years ago Closed 12 years ago

[Social API] social.ambient-notification requires the contentPanel parameter

Categories

(Firefox Graveyard :: SocialAPI, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 791615

People

(Reporter: andyjpn, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4 Steps to reproduce: I sent the social.ambient-notification message from a worker without the contentPanel parameter. Actual results: https://github.com/mozilla/socialapi-dev/blob/develop/docs/socialAPI.md The document above says that the contentPanel parameter for the social.ambient-notification message is optional but the notification button made by the message without the param opens a panel with an error message, "Nightly is unable to connect with [sidebar name] right now." Expected results: I expect that sending the social.ambient-notification message without the contentPanel param makes the notification button unclickable.
Component: Untriaged → SocialAPI
Right now the "ambient notification" code assumes that you'll want to open a panel. What would you like your button to do instead, when clicked?
Status: UNCONFIRMED → NEW
Ever confirmed: true
See also bug 791615, which calls for a way a provider can request an icon be removed.
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #1) > Right now the "ambient notification" code assumes that you'll want to open a > panel. Does the fact mean the contentPanel parameter is mandatory? If so, I'm ok but perhaps you should modify socialAPI.md. > What would you like your button to do instead, when clicked? I'd like the button just to ignore mouse-clicking when there is no information to notify.
(In reply to Mark Hammond (:markh) from comment #2) > See also bug 791615, which calls for a way a provider can request an icon be > removed. Thanks, the issue also accords with my hope.
I modified socialAPI.md even though we are trying to move this info to the wiki. We do need to do more in the way of docs :( Based on comment 4, I'll close this as a dupe.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
OK, thanks.
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.