mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 842476: Work around leak resulting from exception that happens during unload by propagating only the prompts we expect and not the later ones. r=jlebar
Make this test less sensitive to the timing of its own unloading by passing on only the expected messages and not any messages that occur during unloading. Such messages might cause exceptions (e.g., "'TypeError: can't access dead object' when calling method: [nsIPrompt::alert]"), and those exceptions might in turn trigger leaks in nsXPConnect that last until shutdown because we store the most recent exception from a call to an XPCWrappedJS on the XPCJSRuntime through shutdown (rather than reporting it, as we probably should, and then freeing it), leaking the window.
This commit is contained in:
parent
786670aa37
commit
bd3e5c86b6
@ -21,7 +21,7 @@ function handlePrompt(e) {
|
||||
|
||||
alert('parent:ready');
|
||||
}
|
||||
else if (numPrompts > 3) {
|
||||
else if (numPrompts == 4 || numPrompts == 5) {
|
||||
alert(e.detail.message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user