Closed
Bug 899908
Opened 11 years ago
Closed 11 years ago
Remove support for reloading the worker for a social provider.
Categories
(Firefox Graveyard :: SocialAPI, defect)
Firefox Graveyard
SocialAPI
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: markh, Assigned: markh)
References
Details
Attachments
(1 file)
19.20 KB,
patch
|
mixedpuppy
:
review+
|
Details | Diff | Splinter Review |
We currently allow a worker to send us a message to force a reload of a worker, and we go to lengths to reconnect all ports etc so the reload is seamless from the POV of the provider's sidebar etc. This was added explicitly at the request of Facebook to work around issues in their code.
The problem with this is that it's probably impossible (without dedicated support for this by the platform) to implement with real workers. Shane and I agreed a good approach might be:
a) initially "whitelist" this feature so it is only available for use by Facebook, thus preventing other providers from relying on it.
b) change the implementation so that it completely reloads the entire provider (ie, reloading the sidebar etc too, as if the provider was starting for the first time). This means no need to reconnect etc.
I guess if (b) was done quickly enough we needn't do (a).
Assignee | ||
Comment 1•11 years ago
|
||
With this patch, a social.reload-worker message reloads the entire provider. There is no longer a "reload()" method on the worker. This removes *alot* of relatively hairy code, which ya gotta love :)
Comment 2•11 years ago
|
||
Comment on attachment 801975 [details] [diff] [review]
0001-Bug-899908-remove-ability-for-a-social-worker-to-rel.patch
nice! run a try?
Attachment #801975 -
Flags: review?(mixedpuppy) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Comment 4•11 years ago
|
||
Old try looks like it was before a dependent bug actually landed.
New green try at https://tbpl.mozilla.org/?tree=Try&rev=f1aee90c7fe3
https://tbpl.mozilla.org/?tree=Try&rev=f1aee90c7fe3
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•