Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1124398 - Edge Swipe transitioning between apps will sometimes encounter a black screen when settings app is open r=etienne #28233

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/system/js/app_window.js
Expand Up @@ -930,7 +930,6 @@
this.inError = true;
return;
}
this.isCrashed = true;
// Send event instead of call crash reporter directly.
this.publish('crashed');

Expand All @@ -941,6 +940,7 @@
this.frontWindow.kill();
}
} else {
this.isCrashed = true;
this.kill(evt);
}
};
Expand Down
11 changes: 6 additions & 5 deletions apps/system/test/unit/app_window_test.js
Expand Up @@ -1520,10 +1520,11 @@ suite('system/AppWindow', function() {
assert.isNull(sheets[1].previousWindow);
});

test('Error event', function() {
test('App crashed and suspending is disabled', function() {
var app1 = new AppWindow(fakeAppConfig1);
var stubKill = this.sinon.stub(app1, 'kill');
var stubPublish = this.sinon.stub(app1, 'publish');
AppWindow.SUSPENDING_ENABLED = false;
app1.handleEvent({
type: 'mozbrowsererror',
detail: {
Expand All @@ -1535,8 +1536,8 @@ suite('system/AppWindow', function() {
assert.isTrue(stubPublish.calledWith('crashed'));
});

test('Destroy only the browser when app crashed and ' +
'suspending is enabled',
test('App crashed and suspending is enabled' +
'when app is inactive',
function() {
var apps = openPopups(2);
var app1 = apps[0];
Expand All @@ -1553,13 +1554,13 @@ suite('system/AppWindow', function() {
type: 'fatal'
}
});
assert.isTrue(app1.isCrashed);
assert.isFalse(app1.isCrashed);
assert.isTrue(stubDestroyBrowser.called);
assert.isTrue(stubKill.called);
AppWindow.SUSPENDING_ENABLED = false;
});

test('Kill the app directly even suspending is enabled ' +
test('App crashed and suspending is enabled ' +
'when the app is active',
function() {
var app1 = new AppWindow(fakeAppConfig1);
Expand Down