Closed
Bug 949487
Opened 11 years ago
Closed 11 years ago
Harden the AppWindowManager against app that gets insta-killed
Categories
(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: etienne, Assigned: etienne)
References
Details
Attachments
(1 file)
Found this one thanks to nuwa :)
I was getting and |appterminated| between the moment we send the |appcreated| and the moment in |AppWindowManager._updateActiveApp()|.
I know, crazy.
But still worth checking that the app |isRunning()| otherwise we end up with a bad |displayedApp".
Assignee | ||
Updated•11 years ago
|
Summary: Hardened the AppWindowManager against app that gets insta-killed → Harden the AppWindowManager against app that gets insta-killed
Assignee | ||
Updated•11 years ago
|
Blocks: window-management
Comment 2•11 years ago
|
||
OOPS I didn't read the description...
So you know what happens.
So let's try to check the nextApp in switchApp is running or not. If not, just skip the switch!
Comment 3•11 years ago
|
||
Maybe:
AppWindow.prototype.isDead() = function() {
return this._killed;
};
I also love if we have AppWindow.isAlive() ;)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → etienne
Updated•11 years ago
|
Depends on: app-window-manager
Assignee | ||
Comment 4•11 years ago
|
||
I was tempted to go the |isAlive| route, but for our case here |isDead| is way more expressive :)
I was able to confirm that this patch fixes the issue by reflashing a broken gecko on my device.
Attachment #8347346 -
Flags: review?(alive)
Comment 5•11 years ago
|
||
Comment on attachment 8347346 [details] [review]
Gaia PR
r+ and look forward to the day we actually need isActive() comes.
Attachment #8347346 -
Flags: review?(alive) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•