mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 873661 - Wait both browserloadend and process-created event. r=fabrice
This commit is contained in:
parent
6352a8f61d
commit
0b553107b1
@ -49,13 +49,13 @@ function runTest() {
|
||||
// Note that this is the process corresponding to the /inner/ iframe. The
|
||||
// outer iframe runs in-process (because it has remote=false).
|
||||
var childID = null;
|
||||
expectOnlyOneProcessCreated().then(function(chid) {
|
||||
childID = chid;
|
||||
return Promise.all(
|
||||
[expectPriorityChange(childID, 'FOREGROUND'),
|
||||
expectMozbrowserEvent(iframe, 'loadend')]
|
||||
);
|
||||
}).then(function() {
|
||||
Promise.all(
|
||||
[expectOnlyOneProcessCreated().then(function(child) {
|
||||
childID = child;
|
||||
return expectPriorityChange(childID, 'FOREGROUND');
|
||||
}),
|
||||
expectMozbrowserEvent(iframe, 'loadend')]
|
||||
).then(function() {
|
||||
// Send the outer iframe into the background. This should change the
|
||||
// priority of the inner frame's process to BACKGROUND.
|
||||
var p = expectPriorityChange(childID, 'BACKGROUND');
|
||||
|
Loading…
Reference in New Issue
Block a user