mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1096850 - [e10s] Handle nsIWebProgress::DOMWindowID not being available for remote webProgress notifications r=billm
This commit is contained in:
parent
689636de4a
commit
a89205c8e8
@ -65,11 +65,20 @@ let WebProgressListener = {
|
||||
|
||||
_setupJSON: function setupJSON(aWebProgress, aRequest) {
|
||||
if (aWebProgress) {
|
||||
let domWindowID;
|
||||
try {
|
||||
domWindowID = aWebProgress && aWebProgress.DOMWindowID;
|
||||
} catch (e) {
|
||||
// If nsDocShell::Destroy has already been called, then we'll
|
||||
// get NS_NOINTERFACE when trying to get the DOM window ID.
|
||||
domWindowID = null;
|
||||
}
|
||||
|
||||
aWebProgress = {
|
||||
isTopLevel: aWebProgress.isTopLevel,
|
||||
isLoadingDocument: aWebProgress.isLoadingDocument,
|
||||
loadType: aWebProgress.loadType,
|
||||
DOMWindowID: aWebProgress.DOMWindowID,
|
||||
DOMWindowID: domWindowID
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user