Closed
Bug 853759
Opened 12 years ago
Closed 12 years ago
[activities] fire postError when unloading the app before we have fired anything
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:leo+, firefox23 wontfix, firefox24 wontfix, firefox25 fixed, b2g18+ fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix, b2g-v1.1hd fixed)
People
(Reporter: alive, Assigned: fabrice)
References
Details
(Whiteboard: [LeoVB+])
Attachments
(1 file, 2 obsolete files)
2.81 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #846850 +++
See bug 846850.
This bug is to do postError when an activity is removed/unloaded if it never do postError/postSuccess before it's removed.
With this, any app in gaia doesn't need to watch visibility state to do postError by theyself, which is a very confusing behavior in multiple activities case.
Fabrice, if you could take this I'd appreciate.
Reporter | ||
Updated•12 years ago
|
Comment 1•12 years ago
|
||
(In reply to Alive Kuo [:alive] from comment #0)
Hi Fabrice,
Would you be able to reply to the comment above?
Thanks!
Flags: needinfo?(fabrice)
Assignee | ||
Comment 2•12 years ago
|
||
I just had no time to look at this, sorry.
Flags: needinfo?(fabrice)
Reporter | ||
Comment 3•12 years ago
|
||
Let's find someone else to help.
Assignee: fabrice → nobody
blocking-b2g: --- → leo?
Comment 4•12 years ago
|
||
Hi Alive,
Does this bug still block 846262, which looks pretty bad but already resolved fixed?
If this bug doesnt block 846262, what user impact does this bug itself have on the user?
Comment 5•12 years ago
|
||
My understanding is with this fixed, apps could be aware of events when other apps are removed/changed. Please correct me if I am wrong. In this case, it looks like if there have some strong relationship/activities between 2 apps, and one of them is removed, another may not know that, and it might cause some problems, am I right?
Reporter | ||
Comment 6•12 years ago
|
||
This blocks bug 846850 and bug 846850 blocks bug 880588.
Bug 846262 is just a workaround because of this root cause. The correct way is to do bug 880588.
Without this, the app who creates the activity needs to postError by themselves, which is an incorrect behavior, and therefore system couldn't do bug 880588 - set the visibility on inline activities correctly. We couldn't avoid to remove all inline activities to prevent bug 846262 happens.
Assignee | ||
Comment 7•12 years ago
|
||
I'm not sure this covers all the uses cases, but this patch makes sure that when a window is closed, we fire a postError() with a "ActivityCanceled" message if nothing was sent before.
Assignee: nobody → fabrice
Attachment #763016 -
Flags: review?
Comment 8•12 years ago
|
||
Triage - per comment 6 and 880588 is a blocker for partner.
blocking-b2g: leo? → leo+
Reporter | ||
Comment 9•12 years ago
|
||
I'd tested this patch. It works fine for me. \O/
Comment 10•12 years ago
|
||
Mounir, would you mind finishing this bug off while Fabrice is out? leo+ blocker :)
Flags: needinfo?(mounir)
Comment 11•12 years ago
|
||
After discussing with Andrew it seems that this bug isn't particularly urgent and it can wait for Fabrice to be back from vacations. Given that he already worked on this, the cost of context switch isn't worth it.
Flags: needinfo?(mounir)
Assignee | ||
Comment 12•12 years ago
|
||
Attachment #763016 -
Attachment is obsolete: true
Attachment #763016 -
Flags: review?
Attachment #769717 -
Flags: review?(21)
Comment 13•12 years ago
|
||
r+ if you use inner-window-destroyed instead of an event.
Assignee | ||
Comment 14•12 years ago
|
||
Now using inner-window-destroyed.
Attachment #769717 -
Attachment is obsolete: true
Attachment #769717 -
Flags: review?(21)
Attachment #770883 -
Flags: review?(21)
Attachment #770883 -
Flags: review?(21) → review+
Assignee | ||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 17•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-b2g-v1.1hd:
--- → affected
status-firefox23:
--- → wontfix
status-firefox24:
--- → wontfix
status-firefox25:
--- → fixed
Target Milestone: --- → 1.1 QE4 (15jul)
Comment 18•12 years ago
|
||
Comment 19•12 years ago
|
||
This patch broke web activities in Gaia per bug 892708 and bug 892573.
Can someone confirm my analysis and if I'm right, back this patch out to get the smoke tests passing again?
Flags: needinfo?(21)
Comment 20•12 years ago
|
||
Apparently we now know this was not the bug that caused the regression.
Flags: needinfo?(21)
Updated•12 years ago
|
Whiteboard: [LeoVB+]
Comment 21•12 years ago
|
||
Can you please provide steps to verify this fix? - so that we can perform blackbox testing
You need to log in
before you can comment on or make changes to this bug.
Description
•