mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
3894d095f8
commit
b95888c47f
@ -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});
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user