Bug 844323 - Follow-up: Fix typo in BrowserElementChildPreload that was breaking bg --> fg transitions in childVisibilityChanged. r=khuey

Also modify the test so it catches this mistake.
This commit is contained in:
Justin Lebar 2013-04-29 14:56:53 -04:00
parent 3894d095f8
commit b95888c47f
2 changed files with 5 additions and 1 deletions

View File

@ -698,7 +698,7 @@ BrowserElementChild.prototype = {
var visible = this._forcedVisible && this._ownerVisible;
if (docShell.isActive !== visible) {
docShell.isActive = visible;
sendAsyncMsg('visibility-change', {visibility: visible});
sendAsyncMsg('visibility-change', {visible: visible});
}
},

View File

@ -61,6 +61,10 @@ function runTest() {
var p = expectPriorityChange(childID, 'BACKGROUND');
iframe.setVisible(false);
return p;
}).then(function() {
var p = expectPriorityChange(childID, 'FOREGROUND');
iframe.setVisible(true);
return p;
}).then(SimpleTest.finish);
document.body.appendChild(iframe);