mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out Neil's patch from bug 419452 due to a Txul regression.
This commit is contained in:
parent
84548acb75
commit
0387d900f7
@ -2992,7 +2992,6 @@ nsXULDocument::ResumeWalk()
|
||||
if (! count)
|
||||
break;
|
||||
|
||||
nsCOMPtr<nsIURI> overlayURI = mCurrentPrototype->GetURI();
|
||||
nsCOMPtr<nsIURI> uri = mUnloadedOverlays[count-1];
|
||||
mUnloadedOverlays.RemoveObjectAt(count-1);
|
||||
|
||||
@ -3006,21 +3005,8 @@ nsXULDocument::ResumeWalk()
|
||||
continue;
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
if (shouldReturn) {
|
||||
if (mOverlayLoadObservers.IsInitialized()) {
|
||||
nsIObserver *obs = mOverlayLoadObservers.GetWeak(overlayURI);
|
||||
if (obs) {
|
||||
// This overlay has an unloaded overlay, so it will never
|
||||
// notify. The best we can do is to notify for the unloaded
|
||||
// overlay instead, assuming nobody is already notifiable
|
||||
// for it. Note that this will confuse the observer.
|
||||
if (!mOverlayLoadObservers.GetWeak(uri))
|
||||
mOverlayLoadObservers.Put(uri, obs);
|
||||
mOverlayLoadObservers.Remove(overlayURI);
|
||||
}
|
||||
}
|
||||
if (shouldReturn)
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
// If we get here, there is nothing left for us to walk. The content
|
||||
|
Loading…
Reference in New Issue
Block a user