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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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)

RESOLVED FIXED
1.1 QE4 (15jul)
blocking-b2g leo+
Tracking Status
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)

+++ 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.
Blocks: 846850
No longer depends on: 846850
(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)
I just had no time to look at this, sorry.
Flags: needinfo?(fabrice)
Let's find someone else to help.
Assignee: fabrice → nobody
blocking-b2g: --- → leo?
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?
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?
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.
Attached patch patch (obsolete) — Splinter Review
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?
Triage - per comment 6 and 880588 is a blocker for partner.
blocking-b2g: leo? → leo+
I'd tested this patch. It works fine for me. \O/
Mounir, would you mind finishing this bug off while Fabrice is out? leo+ blocker :)
Flags: needinfo?(mounir)
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)
Blocks: 887650
Attached patch patch (obsolete) — Splinter Review
Attachment #763016 - Attachment is obsolete: true
Attachment #763016 - Flags: review?
Attachment #769717 - Flags: review?(21)
r+ if you use inner-window-destroyed instead of an event.
Attached patch patch v2Splinter Review
Now using inner-window-destroyed.
Attachment #769717 - Attachment is obsolete: true
Attachment #769717 - Flags: review?(21)
Attachment #770883 - Flags: review?(21)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 892708
Depends on: 892573
No longer depends on: 892573
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)
No longer depends on: 892708
Apparently we now know this was not the bug that caused the regression.
Flags: needinfo?(21)
Whiteboard: [LeoVB+]
Can you please provide steps to verify this fix? - so that we can perform blackbox testing
Blocks: 898307
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: