mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1053458 - Ignore failures sending Browser:Init message (r=felipe)
This commit is contained in:
parent
89077153d8
commit
f6d0cb63f3
@ -434,8 +434,12 @@ let AutoCompletePopup = {
|
||||
}
|
||||
}
|
||||
|
||||
let [initData] = sendSyncMessage("Browser:Init");
|
||||
docShell.useGlobalHistory = initData.useGlobalHistory;
|
||||
if (initData.initPopup) {
|
||||
setTimeout(function() AutoCompletePopup.init(), 0);
|
||||
// We may not get any responses to Browser:Init if the browser element
|
||||
// is torn down too quickly.
|
||||
let initData = sendSyncMessage("Browser:Init");
|
||||
if (initData.length) {
|
||||
docShell.useGlobalHistory = initData[0].useGlobalHistory;
|
||||
if (initData[0].initPopup) {
|
||||
setTimeout(() => AutoCompletePopup.init(), 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user