Closed
Bug 833207
Opened 13 years ago
Closed 9 years ago
Social callbacks are made when panel/chat loads the error page.
Categories
(Firefox Graveyard :: SocialAPI, defect)
Firefox Graveyard
SocialAPI
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: markh, Unassigned)
References
Details
If a provider attempts to create a panel or chat window, and the panel load fails causing about:socialerror to be displayed, the provider-specified callback is still made. This callback will then fail as the provider will be expecting their content rather than about:socialerror.
Updated•13 years ago
|
Comment 1•13 years ago
|
||
I thought about returning null if provider.errorState was set. The problem is that would leave the flyout "orphaned", though I'm not sure that is really a problem. Essentially, the provider would not be able to close the flyout, or the chat window, programmatically.
| Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #1)
> I thought about returning null if provider.errorState was set. The problem
> is that would leave the flyout "orphaned", though I'm not sure that is
> really a problem. Essentially, the provider would not be able to close the
> flyout, or the chat window, programmatically.
I believe that the flyout is "orphaned" regardless - even if we decided to keep making the callback, the fact we fail to inject any mozSocial stuff, including the trick to allow window.close(), means there is nothing they could do with the window anyway.
Comment 3•13 years ago
|
||
(In reply to Mark Hammond (:markh) from comment #2)
> (In reply to Shane Caraveo (:mixedpuppy) from comment #1)
> > I thought about returning null if provider.errorState was set. The problem
> > is that would leave the flyout "orphaned", though I'm not sure that is
> > really a problem. Essentially, the provider would not be able to close the
> > flyout, or the chat window, programmatically.
>
> I believe that the flyout is "orphaned" regardless - even if we decided to
> keep making the callback, the fact we fail to inject any mozSocial stuff,
> including the trick to allow window.close(), means there is nothing they
> could do with the window anyway.
Then we need to either not make the callback, or send null as the param on the callback.
| Reporter | ||
Comment 4•13 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #3)
> (In reply to Mark Hammond (:markh) from comment #2)
> > (In reply to Shane Caraveo (:mixedpuppy) from comment #1)
> > > I thought about returning null if provider.errorState was set. The problem
> > > is that would leave the flyout "orphaned", though I'm not sure that is
> > > really a problem. Essentially, the provider would not be able to close the
> > > flyout, or the chat window, programmatically.
> >
> > I believe that the flyout is "orphaned" regardless - even if we decided to
> > keep making the callback, the fact we fail to inject any mozSocial stuff,
> > including the trick to allow window.close(), means there is nothing they
> > could do with the window anyway.
>
> Then we need to either not make the callback, or send null as the param on
> the callback.
Right - I thought you were saying that sending null or not making the callback had the downside of leaving the flyout orphaned. I was pointing out that it is orphaned regardless.
IMO, we should not make the callback. This leaves us open in the future to automatically "fixing" the error (eg, detecting the network came up), reloading the originally requested URL and making the callback at that point.
Comment 5•13 years ago
|
||
(In reply to Mark Hammond (:markh) from comment #4)
> Right - I thought you were saying that sending null or not making the
> callback had the downside of leaving the flyout orphaned. I was pointing
> out that it is orphaned regardless.
I was, I didn't really think about it much since I was working on the main patch.
> IMO, we should not make the callback. This leaves us open in the future to
> automatically "fixing" the error (eg, detecting the network came up),
> reloading the originally requested URL and making the callback at that point.
Passing null back would let the provider know there was an error, that's the only reason I was thinking it might be useful.
Comment 6•9 years ago
|
||
deprecation in fx51
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•